ModeTypes._VAPI_OPERATIONS, ModeTypes.ClusterMode, ModeTypes.Info
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
ModeStub(ApiProvider apiProvider,
StubConfigurationBase config) |
ModeStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
ModeTypes.Info |
get()
Retrieves the current mode of a VCHA cluster.
|
void |
get(AsyncCallback<ModeTypes.Info> asyncCallback)
Retrieves the current mode of a VCHA cluster.
|
void |
get(AsyncCallback<ModeTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Retrieves the current mode of a VCHA cluster.
|
ModeTypes.Info |
get(InvocationConfig invocationConfig)
Retrieves the current mode of a VCHA cluster.
|
java.lang.String |
set_Task(ModeTypes.ClusterMode mode)
Manipulates the mode of a VCHA Cluster.
|
void |
set_Task(ModeTypes.ClusterMode mode,
AsyncCallback<java.lang.String> asyncCallback)
Manipulates the mode of a VCHA Cluster.
|
void |
set_Task(ModeTypes.ClusterMode mode,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Manipulates the mode of a VCHA Cluster.
|
java.lang.String |
set_Task(ModeTypes.ClusterMode mode,
InvocationConfig invocationConfig)
Manipulates the mode of a VCHA Cluster.
|
public ModeStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public ModeStub(ApiProvider apiProvider, StubConfigurationBase config)
public ModeTypes.Info get()
Mode
Synchronous method overload. Result of the invocation will be reported as a method return value.
public ModeTypes.Info get(InvocationConfig invocationConfig)
Mode
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<ModeTypes.Info> asyncCallback)
Mode
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Info structure containing the mode of the the VCHA cluster.
Operation Errors:
NotAllowedInCurrentState
- If the VCHA cluster is not configured.
Unauthorized
- If the user has insufficient privilege to perform the operation. Operation
execution requires the System.Read privilege.
Error
- If any other error occurs.
public void get(AsyncCallback<ModeTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Mode
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:
Info structure containing the mode of the the VCHA cluster.
Operation Errors:
NotAllowedInCurrentState
- If the VCHA cluster is not configured.
Unauthorized
- If the user has insufficient privilege to perform the operation. Operation
execution requires the System.Read privilege.
Error
- If any other error occurs.
public java.lang.String set_Task(ModeTypes.ClusterMode mode)
Mode
VCHA Cluster configuration remains intact in any of the cluster modes.
. This method was added in vSphere API 6.7.1.Synchronous method overload. Result of the invocation is a task identifier which will be returned by this method.
public java.lang.String set_Task(ModeTypes.ClusterMode mode, InvocationConfig invocationConfig)
Mode
VCHA Cluster configuration remains intact in any of the cluster modes.
. This method was added in vSphere API 6.7.1.Synchronous method overload. Result of the invocation is a task
identifier which will be returned by this method.
Use invocationConfig
to specify configuration for this particular invocation.
public void set_Task(ModeTypes.ClusterMode mode, AsyncCallback<java.lang.String> asyncCallback)
Mode
VCHA Cluster configuration remains intact in any of the cluster modes.
. This method was added in vSphere API 6.7.1.Asynchronous method overload. Result of the invocation which is
a task identifier will be reported via the specified asyncCallback
.
Invocation Result:
identifier for the task created by this API invocation
Operation Errors:
Unauthorized
- If the user has insufficient privilege to perform the operation. Operation
execution requires the Global.VCServer privilege.
Error
- If any other error occurs.
public void set_Task(ModeTypes.ClusterMode mode, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
Mode
VCHA Cluster configuration remains intact in any of the cluster modes.
. This method was added in vSphere API 6.7.1.Asynchronous method overload. Result of the invocation which is
a task identifier will be reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
identifier for the task created by this API invocation
Operation Errors:
Unauthorized
- If the user has insufficient privilege to perform the operation. Operation
execution requires the Global.VCServer privilege.
Error
- If any other error occurs.