public interface Policy extends Service, PolicyTypes
Policy
interface provides methods to set/get background check for
the new updates. This interface was added in vSphere API 6.7.PolicyTypes.Config, PolicyTypes.DayOfWeek, PolicyTypes.Info, PolicyTypes.Time
_VAPI_SERVICE_ID
Modifier and Type | Method and Description |
---|---|
PolicyTypes.Info |
get()
Gets the automatic update checking and staging policy.
|
void |
get(AsyncCallback<PolicyTypes.Info> asyncCallback)
Gets the automatic update checking and staging policy.
|
void |
get(AsyncCallback<PolicyTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Gets the automatic update checking and staging policy.
|
PolicyTypes.Info |
get(InvocationConfig invocationConfig)
Gets the automatic update checking and staging policy.
|
void |
set(PolicyTypes.Config policy)
Sets the automatic update checking and staging policy.
|
void |
set(PolicyTypes.Config policy,
AsyncCallback<java.lang.Void> asyncCallback)
Sets the automatic update checking and staging policy.
|
void |
set(PolicyTypes.Config policy,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Sets the automatic update checking and staging policy.
|
void |
set(PolicyTypes.Config policy,
InvocationConfig invocationConfig)
Sets the automatic update checking and staging policy.
|
PolicyTypes.Info get()
Synchronous method overload. Result of the invocation will be reported as a method return value.
Error
- Generic errorUnauthenticated
- session is not authenticatedUnauthorized
- session is not authorized to perform this operationPolicyTypes.Info get(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.Error
- Generic errorUnauthenticated
- session is not authenticatedUnauthorized
- session is not authorized to perform this operationvoid get(AsyncCallback<PolicyTypes.Info> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Structure containing the policy for the appliance update.
Operation Errors:
Error
- Generic error
Unauthenticated
- session is not authenticated
Unauthorized
- session is not authorized to perform this operation
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(AsyncCallback<PolicyTypes.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.
Invocation Result:
Structure containing the policy for the appliance update.
Operation Errors:
Error
- Generic error
Unauthenticated
- session is not authenticated
Unauthorized
- session is not authorized to perform this operation
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void set(PolicyTypes.Config policy)
Synchronous method overload. Result of the invocation will be reported as a method return value.
policy
- Info structure containing the policy for the appliance update.Error
- Generic errorUnauthenticated
- session is not authenticatedUnauthorized
- session is not authorized to perform this operationvoid set(PolicyTypes.Config policy, 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.
policy
- Info structure containing the policy for the appliance update.invocationConfig
- Configuration for the method invocation.Error
- Generic errorUnauthenticated
- session is not authenticatedUnauthorized
- session is not authorized to perform this operationvoid set(PolicyTypes.Config policy, AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- Generic error
Unauthenticated
- session is not authenticated
Unauthorized
- session is not authorized to perform this operation
policy
- Info structure containing the policy for the appliance update.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void set(PolicyTypes.Config policy, 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:
Error
- Generic error
Unauthenticated
- session is not authenticated
Unauthorized
- session is not authorized to perform this operation
policy
- Info structure containing the policy for the appliance update.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.