public class PolicyStub extends com.vmware.vapi.internal.bindings.Stub implements Policy
Policy
API service.
WARNING: Internal class, subject to change in future versions.
PolicyTypes.Config, PolicyTypes.DayOfWeek, PolicyTypes.Info, PolicyTypes.Time
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
PolicyStub(ApiProvider apiProvider,
StubConfigurationBase config) |
PolicyStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
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.
|
public PolicyStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public PolicyStub(ApiProvider apiProvider, StubConfigurationBase config)
public PolicyTypes.Info get()
Policy
Synchronous method overload. Result of the invocation will be reported as a method return value.
public PolicyTypes.Info get(InvocationConfig invocationConfig)
Policy
Synchronous 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(AsyncCallback<PolicyTypes.Info> asyncCallback)
Policy
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
public void get(AsyncCallback<PolicyTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Policy
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
public void set(PolicyTypes.Config policy)
Policy
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void set(PolicyTypes.Config policy, InvocationConfig invocationConfig)
Policy
Synchronous 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 set(PolicyTypes.Config policy, AsyncCallback<java.lang.Void> asyncCallback)
Policy
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
public void set(PolicyTypes.Config policy, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Policy
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