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| 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()
PolicySynchronous method overload. Result of the invocation will be reported as a method return value.
public PolicyTypes.Info get(InvocationConfig invocationConfig)
PolicySynchronous 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)
PolicyAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation 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)
PolicyAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Operation 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)
PolicySynchronous method overload. Result of the invocation will be reported as a method return value.
public void set(PolicyTypes.Config policy, InvocationConfig invocationConfig)
PolicySynchronous 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)
PolicyAsynchronous 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)
PolicyAsynchronous 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