public class DefaultPolicyStub extends com.vmware.vapi.internal.bindings.Stub implements DefaultPolicy
DefaultPolicy
API service.
WARNING: Internal class, subject to change in future versions.
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
DefaultPolicyStub(ApiProvider apiProvider,
StubConfigurationBase config) |
DefaultPolicyStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
get(java.lang.String datastore)
Returns the identifier of the current default storage policy associated with the
specified datastore.
|
void |
get(java.lang.String datastore,
AsyncCallback<java.lang.String> asyncCallback)
Returns the identifier of the current default storage policy associated with the
specified datastore.
|
void |
get(java.lang.String datastore,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Returns the identifier of the current default storage policy associated with the
specified datastore.
|
java.lang.String |
get(java.lang.String datastore,
InvocationConfig invocationConfig)
Returns the identifier of the current default storage policy associated with the
specified datastore.
|
public DefaultPolicyStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public DefaultPolicyStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.lang.String get(java.lang.String datastore)
DefaultPolicy
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface DefaultPolicy
datastore
- Identifier of the datastore for which the default policy is requested.
The parameter must be an identifier for the resource type: Datastore
.com.vmware.vcenter.StoragePolicy
.
this field is null
if there is no default storage policy associated with
the datastore.public java.lang.String get(java.lang.String datastore, InvocationConfig invocationConfig)
DefaultPolicy
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 DefaultPolicy
datastore
- Identifier of the datastore for which the default policy is requested.
The parameter must be an identifier for the resource type: Datastore
.invocationConfig
- Configuration for the method invocation.com.vmware.vcenter.StoragePolicy
.
this field is null
if there is no default storage policy associated with
the datastore.public void get(java.lang.String datastore, AsyncCallback<java.lang.String> asyncCallback)
DefaultPolicy
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Identifier of the default storage policy associated with the specified
datastore.
The return value will be an identifier for the resource type: com.vmware.vcenter.StoragePolicy
.
this field is null
if there is no default storage policy associated with
the datastore.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the specified datastore does not exist.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user is not authenticated.
Unauthorized
- if the user does not have the required priveleges.
get
in interface DefaultPolicy
datastore
- Identifier of the datastore for which the default policy is requested.
The parameter must be an identifier for the resource type: Datastore
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get(java.lang.String datastore, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
DefaultPolicy
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:
Identifier of the default storage policy associated with the specified
datastore.
The return value will be an identifier for the resource type: com.vmware.vcenter.StoragePolicy
.
this field is null
if there is no default storage policy associated with
the datastore.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the specified datastore does not exist.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user is not authenticated.
Unauthorized
- if the user does not have the required priveleges.
get
in interface DefaultPolicy
datastore
- Identifier of the datastore for which the default policy is requested.
The parameter must be an identifier for the resource type: Datastore
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.