public class SchedulesStub extends com.vmware.vapi.internal.bindings.Stub implements Schedules
Schedules
API service.
WARNING: Internal class, subject to change in future versions.
SchedulesTypes.CreateSpec, SchedulesTypes.DayOfWeek, SchedulesTypes.Info, SchedulesTypes.RecurrenceInfo, SchedulesTypes.RetentionInfo, SchedulesTypes.UpdateSpec| Constructor and Description |
|---|
SchedulesStub(ApiProvider apiProvider,
StubConfigurationBase config) |
SchedulesStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
| Modifier and Type | Method and Description |
|---|---|
void |
create(java.lang.String schedule,
SchedulesTypes.CreateSpec spec)
Creates a schedule.
|
void |
create(java.lang.String schedule,
SchedulesTypes.CreateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Creates a schedule.
|
void |
create(java.lang.String schedule,
SchedulesTypes.CreateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Creates a schedule.
|
void |
create(java.lang.String schedule,
SchedulesTypes.CreateSpec spec,
InvocationConfig invocationConfig)
Creates a schedule.
|
void |
delete(java.lang.String schedule)
Deletes an existing schedule.
|
void |
delete(java.lang.String schedule,
AsyncCallback<java.lang.Void> asyncCallback)
Deletes an existing schedule.
|
void |
delete(java.lang.String schedule,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Deletes an existing schedule.
|
void |
delete(java.lang.String schedule,
InvocationConfig invocationConfig)
Deletes an existing schedule.
|
SchedulesTypes.Info |
get(java.lang.String schedule)
Returns an existing schedule information based on id.
|
void |
get(java.lang.String schedule,
AsyncCallback<SchedulesTypes.Info> asyncCallback)
Returns an existing schedule information based on id.
|
void |
get(java.lang.String schedule,
AsyncCallback<SchedulesTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns an existing schedule information based on id.
|
SchedulesTypes.Info |
get(java.lang.String schedule,
InvocationConfig invocationConfig)
Returns an existing schedule information based on id.
|
java.util.Map<java.lang.String,SchedulesTypes.Info> |
list()
Returns a list of existing schedules with details.
|
void |
list(AsyncCallback<java.util.Map<java.lang.String,SchedulesTypes.Info>> asyncCallback)
Returns a list of existing schedules with details.
|
void |
list(AsyncCallback<java.util.Map<java.lang.String,SchedulesTypes.Info>> asyncCallback,
InvocationConfig invocationConfig)
Returns a list of existing schedules with details.
|
java.util.Map<java.lang.String,SchedulesTypes.Info> |
list(InvocationConfig invocationConfig)
Returns a list of existing schedules with details.
|
JobTypes.BackupJobStatus |
run(java.lang.String schedule,
java.lang.String comment)
Initiate backup with the specified schedule.
|
void |
run(java.lang.String schedule,
java.lang.String comment,
AsyncCallback<JobTypes.BackupJobStatus> asyncCallback)
Initiate backup with the specified schedule.
|
void |
run(java.lang.String schedule,
java.lang.String comment,
AsyncCallback<JobTypes.BackupJobStatus> asyncCallback,
InvocationConfig invocationConfig)
Initiate backup with the specified schedule.
|
JobTypes.BackupJobStatus |
run(java.lang.String schedule,
java.lang.String comment,
InvocationConfig invocationConfig)
Initiate backup with the specified schedule.
|
void |
update(java.lang.String schedule,
SchedulesTypes.UpdateSpec spec)
Updates a schedule.
|
void |
update(java.lang.String schedule,
SchedulesTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Updates a schedule.
|
void |
update(java.lang.String schedule,
SchedulesTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Updates a schedule.
|
void |
update(java.lang.String schedule,
SchedulesTypes.UpdateSpec spec,
InvocationConfig invocationConfig)
Updates a schedule.
|
public SchedulesStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public SchedulesStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.util.Map<java.lang.String,SchedulesTypes.Info> list()
SchedulesSynchronous method overload. Result of the invocation will be reported as a method return value.
public java.util.Map<java.lang.String,SchedulesTypes.Info> list(InvocationConfig invocationConfig)
SchedulesSynchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
public void list(AsyncCallback<java.util.Map<java.lang.String,SchedulesTypes.Info>> asyncCallback)
SchedulesAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Result:
Map of schedule id to Info Structure
The key in the return value Map will be an identifier for the
resource type: com.vmware.appliance.recovery.backup.schedule.
Operation Errors:
Error - if any error occurs during the execution of the operation.
public void list(AsyncCallback<java.util.Map<java.lang.String,SchedulesTypes.Info>> asyncCallback, InvocationConfig invocationConfig)
SchedulesAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Operation Result:
Map of schedule id to Info Structure
The key in the return value Map will be an identifier for the
resource type: com.vmware.appliance.recovery.backup.schedule.
Operation Errors:
Error - if any error occurs during the execution of the operation.
public JobTypes.BackupJobStatus run(java.lang.String schedule, java.lang.String comment)
SchedulesSynchronous method overload. Result of the invocation will be reported as a method return value.
run in interface Schedulesschedule - Identifier of the schedule
The parameter must be an identifier for the resource type: com.vmware.appliance.recovery.backup.schedule.comment - field that specifies the description for the backup.
If null the backup will have an empty comment.public JobTypes.BackupJobStatus run(java.lang.String schedule, java.lang.String comment, InvocationConfig invocationConfig)
SchedulesSynchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
run in interface Schedulesschedule - Identifier of the schedule
The parameter must be an identifier for the resource type: com.vmware.appliance.recovery.backup.schedule.comment - field that specifies the description for the backup.
If null the backup will have an empty comment.invocationConfig - Configuration for the method invocation.public void run(java.lang.String schedule,
java.lang.String comment,
AsyncCallback<JobTypes.BackupJobStatus> asyncCallback)
SchedulesAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Result:
BackupJobStatus Structure
Operation Errors:
FeatureInUse - if a backup or restore is already in progress.
NotFound - if schedule associated with id does not exist.
Error - if any error occurs during the execution of the operation.
run in interface Schedulesschedule - Identifier of the schedule
The parameter must be an identifier for the resource type: com.vmware.appliance.recovery.backup.schedule.comment - field that specifies the description for the backup.
If null the backup will have an empty comment.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void run(java.lang.String schedule,
java.lang.String comment,
AsyncCallback<JobTypes.BackupJobStatus> asyncCallback,
InvocationConfig invocationConfig)
SchedulesAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Operation Result:
BackupJobStatus Structure
Operation Errors:
FeatureInUse - if a backup or restore is already in progress.
NotFound - if schedule associated with id does not exist.
Error - if any error occurs during the execution of the operation.
run in interface Schedulesschedule - Identifier of the schedule
The parameter must be an identifier for the resource type: com.vmware.appliance.recovery.backup.schedule.comment - field that specifies the description for the backup.
If null the backup will have an empty comment.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.public SchedulesTypes.Info get(java.lang.String schedule)
SchedulesSynchronous method overload. Result of the invocation will be reported as a method return value.
public SchedulesTypes.Info get(java.lang.String schedule, InvocationConfig invocationConfig)
SchedulesSynchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
public void get(java.lang.String schedule,
AsyncCallback<SchedulesTypes.Info> asyncCallback)
SchedulesAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Result:
Info Structure
Operation Errors:
NotFound - if schedule associated with id does not exist.
Error - if any error occurs during the execution of the operation.
public void get(java.lang.String schedule,
AsyncCallback<SchedulesTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
SchedulesAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Operation Result:
Info Structure
Operation Errors:
NotFound - if schedule associated with id does not exist.
Error - if any error occurs during the execution of the operation.
get in interface Schedulesschedule - Identifier of the schedule
The parameter must be an identifier for the resource type: com.vmware.appliance.recovery.backup.schedule.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.public void create(java.lang.String schedule,
SchedulesTypes.CreateSpec spec)
SchedulesSynchronous method overload. Result of the invocation will be reported as a method return value.
public void create(java.lang.String schedule,
SchedulesTypes.CreateSpec spec,
InvocationConfig invocationConfig)
SchedulesSynchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
public void create(java.lang.String schedule,
SchedulesTypes.CreateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
SchedulesAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Errors:
InvalidArgument - if provided with invalid schedule specification.
AlreadyExists - if the schedule with the given id already exists.
Error - if any error occurs during the execution of the operation.
create in interface Schedulesschedule - Identifier of the schedule
The parameter must be an identifier for the resource type: com.vmware.appliance.recovery.backup.schedule.spec - CreateSpec StructureasyncCallback - Receives the status (progress, result or error) of the operation invocation.public void create(java.lang.String schedule,
SchedulesTypes.CreateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
SchedulesAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Operation Errors:
InvalidArgument - if provided with invalid schedule specification.
AlreadyExists - if the schedule with the given id already exists.
Error - if any error occurs during the execution of the operation.
create in interface Schedulesschedule - Identifier of the schedule
The parameter must be an identifier for the resource type: com.vmware.appliance.recovery.backup.schedule.spec - CreateSpec StructureasyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.public void update(java.lang.String schedule,
SchedulesTypes.UpdateSpec spec)
SchedulesSynchronous method overload. Result of the invocation will be reported as a method return value.
public void update(java.lang.String schedule,
SchedulesTypes.UpdateSpec spec,
InvocationConfig invocationConfig)
SchedulesSynchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
public void update(java.lang.String schedule,
SchedulesTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
SchedulesAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Errors:
InvalidArgument - if provided with invalid schedule specification.
NotFound - if schedule associated with id does not exist.
Error - if any error occurs during the execution of the operation.
update in interface Schedulesschedule - Identifier of the schedule
The parameter must be an identifier for the resource type: com.vmware.appliance.recovery.backup.schedule.spec - UpdateSpec StructureasyncCallback - Receives the status (progress, result or error) of the operation invocation.public void update(java.lang.String schedule,
SchedulesTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
SchedulesAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Operation Errors:
InvalidArgument - if provided with invalid schedule specification.
NotFound - if schedule associated with id does not exist.
Error - if any error occurs during the execution of the operation.
update in interface Schedulesschedule - Identifier of the schedule
The parameter must be an identifier for the resource type: com.vmware.appliance.recovery.backup.schedule.spec - UpdateSpec StructureasyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.public void delete(java.lang.String schedule)
SchedulesSynchronous method overload. Result of the invocation will be reported as a method return value.
public void delete(java.lang.String schedule,
InvocationConfig invocationConfig)
SchedulesSynchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
public void delete(java.lang.String schedule,
AsyncCallback<java.lang.Void> asyncCallback)
SchedulesAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Errors:
NotFound - if schedule associated with id does not exist.
Error - if any error occurs during the execution of the operation.
public void delete(java.lang.String schedule,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
SchedulesAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Operation Errors:
NotFound - if schedule associated with id does not exist.
Error - if any error occurs during the execution of the operation.
delete in interface Schedulesschedule - Identifier of the schedule
The parameter must be an identifier for the resource type: com.vmware.appliance.recovery.backup.schedule.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.