VMware vSphere Automation SDK for .NET 7.0.0.1
vmware::vcenter::datastore::DefaultPolicyStub Class Reference

Remote stub implementation of the DefaultPolicy API service. More...

Inherits vmware::vcenter::datastore::DefaultPolicy.

List of all members.

Public Member Functions

 DefaultPolicyStub (vmware.vapi.core.IApiProvider iApiProvider, vmware.vapi.bindings.TypeConverter typeConverter, vmware.vapi.bindings.IStubConfiguration config)
 DefaultPolicyStub (vmware.vapi.core.IApiProvider iApiProvider, vmware.vapi.bindings.IStubConfiguration config)
string Get (string datastore)
 Returns the identifier of the current default storage policy associated with the specified datastore.
string Get (string datastore, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Returns the identifier of the current default storage policy associated with the specified datastore.
global::System.Threading.Tasks.Task
< string > 
GetAsync (string datastore)
 Returns the identifier of the current default storage policy associated with the specified datastore.
global::System.Threading.Tasks.Task
< string > 
GetAsync (string datastore, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Returns the identifier of the current default storage policy associated with the specified datastore.

Detailed Description

Remote stub implementation of the DefaultPolicy API service.


Constructor & Destructor Documentation

vmware::vcenter::datastore::DefaultPolicyStub::DefaultPolicyStub ( vmware.vapi.core.IApiProvider  iApiProvider,
vmware.vapi.bindings.TypeConverter  typeConverter,
vmware.vapi.bindings.IStubConfiguration  config 
) [inline]
vmware::vcenter::datastore::DefaultPolicyStub::DefaultPolicyStub ( vmware.vapi.core.IApiProvider  iApiProvider,
vmware.vapi.bindings.IStubConfiguration  config 
) [inline]

Member Function Documentation

string vmware::vcenter::datastore::DefaultPolicyStub::Get ( string  datastore) [inline]

Returns the identifier of the current default storage policy associated with the specified datastore.

This method was added in vSphere API 6.7.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the specified datastore does not exist.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user is not authenticated.
vmware.vapi.std.errors.Unauthorizedif the user does not have the required priveleges.
Parameters:
datastoreIdentifier of the datastore for which the default policy is requested. The parameter must be an identifier for the resource type: Datastore .
Returns:
Identifier of the default storage policy associated with the specified datastore. The result 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.

Implements vmware::vcenter::datastore::DefaultPolicy.

string vmware::vcenter::datastore::DefaultPolicyStub::Get ( string  datastore,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
) [inline]

Returns the identifier of the current default storage policy associated with the specified datastore.

This method was added in vSphere API 6.7.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the specified datastore does not exist.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user is not authenticated.
vmware.vapi.std.errors.Unauthorizedif the user does not have the required priveleges.
Parameters:
datastoreIdentifier of the datastore for which the default policy is requested. The parameter must be an identifier for the resource type: Datastore .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
Identifier of the default storage policy associated with the specified datastore. The result 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.

Implements vmware::vcenter::datastore::DefaultPolicy.

global::System.Threading.Tasks.Task<string> vmware::vcenter::datastore::DefaultPolicyStub::GetAsync ( string  datastore) [inline]

Returns the identifier of the current default storage policy associated with the specified datastore.

This method was added in vSphere API 6.7.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the specified datastore does not exist.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user is not authenticated.
vmware.vapi.std.errors.Unauthorizedif the user does not have the required priveleges.
Parameters:
datastoreIdentifier of the datastore for which the default policy is requested. The parameter must be an identifier for the resource type: Datastore .
Returns:
Identifier of the default storage policy associated with the specified datastore. The result 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.

Implements vmware::vcenter::datastore::DefaultPolicy.

global::System.Threading.Tasks.Task<string> vmware::vcenter::datastore::DefaultPolicyStub::GetAsync ( string  datastore,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
) [inline]

Returns the identifier of the current default storage policy associated with the specified datastore.

This method was added in vSphere API 6.7.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the specified datastore does not exist.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user is not authenticated.
vmware.vapi.std.errors.Unauthorizedif the user does not have the required priveleges.
Parameters:
datastoreIdentifier of the datastore for which the default policy is requested. The parameter must be an identifier for the resource type: Datastore .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
Identifier of the default storage policy associated with the specified datastore. The result 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.

Implements vmware::vcenter::datastore::DefaultPolicy.


The documentation for this class was generated from the following file: