public class SyncScheduleStub extends com.vmware.vapi.internal.bindings.Stub implements SyncSchedule
SyncSchedule
API service.
WARNING: Internal class, subject to change in future versions.
SyncScheduleTypes.DayOfWeek, SyncScheduleTypes.Recurrence, SyncScheduleTypes.Schedule, SyncScheduleTypes.Spec
apiProvider, converter, ifaceId, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
SyncScheduleStub(ApiProvider apiProvider,
StubConfigurationBase config) |
SyncScheduleStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
SyncScheduleTypes.Spec |
get()
Returns the currently configured software depot sync schedule.
|
void |
get(AsyncCallback<SyncScheduleTypes.Spec> asyncCallback)
Returns the currently configured software depot sync schedule.
|
void |
get(AsyncCallback<SyncScheduleTypes.Spec> asyncCallback,
InvocationConfig invocationConfig)
Returns the currently configured software depot sync schedule.
|
SyncScheduleTypes.Spec |
get(InvocationConfig invocationConfig)
Returns the currently configured software depot sync schedule.
|
void |
set(SyncScheduleTypes.Spec spec)
Sets the software depot sync schedule.
|
void |
set(SyncScheduleTypes.Spec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Sets the software depot sync schedule.
|
void |
set(SyncScheduleTypes.Spec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Sets the software depot sync schedule.
|
void |
set(SyncScheduleTypes.Spec spec,
InvocationConfig invocationConfig)
Sets the software depot sync schedule.
|
public SyncScheduleStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public SyncScheduleStub(ApiProvider apiProvider, StubConfigurationBase config)
public SyncScheduleTypes.Spec get()
SyncSchedule
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface SyncSchedule
public SyncScheduleTypes.Spec get(InvocationConfig invocationConfig)
SyncSchedule
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
get
in interface SyncSchedule
invocationConfig
- Configuration for the method invocation.public void get(AsyncCallback<SyncScheduleTypes.Spec> asyncCallback)
SyncSchedule
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Currently configured sync schedule.
Operation Errors:
Unauthenticated
- if the caller is not authenticated.
ServiceUnavailable
- If the service is not available.
Error
- If there is some unknown error. The accompanying error message will give more
details about the failure.
Unauthorized
- if you do not have all of the privileges described as follows:
VcIntegrity.lifecycleSettings.Read
. get
in interface SyncSchedule
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get(AsyncCallback<SyncScheduleTypes.Spec> asyncCallback, InvocationConfig invocationConfig)
SyncSchedule
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
Currently configured sync schedule.
Operation Errors:
Unauthenticated
- if the caller is not authenticated.
ServiceUnavailable
- If the service is not available.
Error
- If there is some unknown error. The accompanying error message will give more
details about the failure.
Unauthorized
- if you do not have all of the privileges described as follows:
VcIntegrity.lifecycleSettings.Read
. get
in interface SyncSchedule
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void set(SyncScheduleTypes.Spec spec)
SyncSchedule
Synchronous method overload. Result of the invocation will be reported as a method return value.
set
in interface SyncSchedule
spec
- Information of the software depot sync schedule.
If null
, it will be reset to the default schedule, which is daily at a
random hour chosen when this API is called.public void set(SyncScheduleTypes.Spec spec, InvocationConfig invocationConfig)
SyncSchedule
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
set
in interface SyncSchedule
spec
- Information of the software depot sync schedule.
If null
, it will be reset to the default schedule, which is daily at a
random hour chosen when this API is called.invocationConfig
- Configuration for the method invocation.public void set(SyncScheduleTypes.Spec spec, AsyncCallback<java.lang.Void> asyncCallback)
SyncSchedule
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Unauthenticated
- if the caller is not authenticated.
ServiceUnavailable
- If the service is not available.
InvalidArgument
- If SyncScheduleTypes.Spec.getSchedule()
is
unset while SyncScheduleTypes.Spec.getEnabled()
is set to true
or if any of the values is not within valid range.
Error
- If there is some unknown error. The accompanying error message will give more
details about the failure.
Unauthorized
- if you do not have all of the privileges described as follows:
VcIntegrity.lifecycleSettings.Write
. set
in interface SyncSchedule
spec
- Information of the software depot sync schedule.
If null
, it will be reset to the default schedule, which is daily at a
random hour chosen when this API is called.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void set(SyncScheduleTypes.Spec spec, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
SyncSchedule
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:
Unauthenticated
- if the caller is not authenticated.
ServiceUnavailable
- If the service is not available.
InvalidArgument
- If SyncScheduleTypes.Spec.getSchedule()
is
unset while SyncScheduleTypes.Spec.getEnabled()
is set to true
or if any of the values is not within valid range.
Error
- If there is some unknown error. The accompanying error message will give more
details about the failure.
Unauthorized
- if you do not have all of the privileges described as follows:
VcIntegrity.lifecycleSettings.Write
. set
in interface SyncSchedule
spec
- Information of the software depot sync schedule.
If null
, it will be reset to the default schedule, which is daily at a
random hour chosen when this API is called.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.