public interface Schedules extends Service, SchedulesTypes
Schedules
interface provides methods to be performed to manage
backup schedules. This interface was added in vSphere API 6.7.SchedulesTypes.CreateSpec, SchedulesTypes.DayOfWeek, SchedulesTypes.Info, SchedulesTypes.RecurrenceInfo, SchedulesTypes.RetentionInfo, SchedulesTypes.UpdateSpec
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.
|
java.util.Map<java.lang.String,SchedulesTypes.Info> list()
Synchronous method overload. Result of the invocation will be reported as a method return value.
Map
will be an identifier for the
resource type: com.vmware.appliance.recovery.backup.schedule
.Error
- if any error occurs during the execution of the operation.java.util.Map<java.lang.String,SchedulesTypes.Info> list(InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
invocationConfig
- Configuration for the method invocation.Map
will be an identifier for the
resource type: com.vmware.appliance.recovery.backup.schedule
.Error
- if any error occurs during the execution of the operation.void list(AsyncCallback<java.util.Map<java.lang.String,SchedulesTypes.Info>> asyncCallback)
Asynchronous 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.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void list(AsyncCallback<java.util.Map<java.lang.String,SchedulesTypes.Info>> asyncCallback, InvocationConfig invocationConfig)
Asynchronous 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.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.JobTypes.BackupJobStatus run(java.lang.String schedule, java.lang.String comment)
Synchronous method overload. Result of the invocation will be reported as a method return value.
schedule
- 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.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.JobTypes.BackupJobStatus run(java.lang.String schedule, java.lang.String comment, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
schedule
- 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.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.void run(java.lang.String schedule, java.lang.String comment, AsyncCallback<JobTypes.BackupJobStatus> asyncCallback)
Asynchronous 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.
schedule
- 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.void run(java.lang.String schedule, java.lang.String comment, AsyncCallback<JobTypes.BackupJobStatus> asyncCallback, InvocationConfig invocationConfig)
Asynchronous 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.
schedule
- 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.SchedulesTypes.Info get(java.lang.String schedule)
Synchronous method overload. Result of the invocation will be reported as a method return value.
schedule
- Identifier of the schedule
The parameter must be an identifier for the resource type: com.vmware.appliance.recovery.backup.schedule
.NotFound
- if schedule associated with id does not exist.Error
- if any error occurs during the execution of the operation.SchedulesTypes.Info get(java.lang.String schedule, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
schedule
- Identifier of the schedule
The parameter must be an identifier for the resource type: com.vmware.appliance.recovery.backup.schedule
.invocationConfig
- Configuration for the method invocation.NotFound
- if schedule associated with id does not exist.Error
- if any error occurs during the execution of the operation.void get(java.lang.String schedule, AsyncCallback<SchedulesTypes.Info> asyncCallback)
Asynchronous 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.
schedule
- 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.void get(java.lang.String schedule, AsyncCallback<SchedulesTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Asynchronous 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.
schedule
- 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.void create(java.lang.String schedule, SchedulesTypes.CreateSpec spec)
Synchronous method overload. Result of the invocation will be reported as a method return value.
schedule
- Identifier of the schedule
The parameter must be an identifier for the resource type: com.vmware.appliance.recovery.backup.schedule
.spec
- CreateSpec StructureInvalidArgument
- 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.void create(java.lang.String schedule, SchedulesTypes.CreateSpec spec, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
schedule
- Identifier of the schedule
The parameter must be an identifier for the resource type: com.vmware.appliance.recovery.backup.schedule
.spec
- CreateSpec StructureinvocationConfig
- Configuration for the method invocation.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.void create(java.lang.String schedule, SchedulesTypes.CreateSpec spec, AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous 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.
schedule
- 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.void create(java.lang.String schedule, SchedulesTypes.CreateSpec spec, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Asynchronous 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.
schedule
- 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.void update(java.lang.String schedule, SchedulesTypes.UpdateSpec spec)
Synchronous method overload. Result of the invocation will be reported as a method return value.
schedule
- Identifier of the schedule
The parameter must be an identifier for the resource type: com.vmware.appliance.recovery.backup.schedule
.spec
- UpdateSpec StructureInvalidArgument
- 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.void update(java.lang.String schedule, SchedulesTypes.UpdateSpec spec, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
schedule
- Identifier of the schedule
The parameter must be an identifier for the resource type: com.vmware.appliance.recovery.backup.schedule
.spec
- UpdateSpec StructureinvocationConfig
- Configuration for the method invocation.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.void update(java.lang.String schedule, SchedulesTypes.UpdateSpec spec, AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous 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.
schedule
- 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.void update(java.lang.String schedule, SchedulesTypes.UpdateSpec spec, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Asynchronous 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.
schedule
- 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.void delete(java.lang.String schedule)
Synchronous method overload. Result of the invocation will be reported as a method return value.
void delete(java.lang.String schedule, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
schedule
- Identifier of the schedule
The parameter must be an identifier for the resource type: com.vmware.appliance.recovery.backup.schedule
.invocationConfig
- Configuration for the method invocation.NotFound
- if schedule associated with id does not exist.Error
- if any error occurs during the execution of the operation.void delete(java.lang.String schedule, AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous 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.
schedule
- 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.void delete(java.lang.String schedule, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Asynchronous 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.
schedule
- 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.