public class ProvidersStub extends com.vmware.vapi.internal.bindings.Stub implements Providers
Providers
API service.
WARNING: Internal class, subject to change in future versions.
ProvidersTypes.FilterSpec, ProvidersTypes.Health, ProvidersTypes.Info, ProvidersTypes.NativeProviderInfo, ProvidersTypes.Summary, ProvidersTypes.Type
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
ProvidersStub(ApiProvider apiProvider,
StubConfigurationBase config) |
ProvidersStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
ProvidersTypes.Info |
get(java.lang.String host,
java.lang.String provider)
Get a provider on a host.
|
void |
get(java.lang.String host,
java.lang.String provider,
AsyncCallback<ProvidersTypes.Info> asyncCallback)
Get a provider on a host.
|
void |
get(java.lang.String host,
java.lang.String provider,
AsyncCallback<ProvidersTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Get a provider on a host.
|
ProvidersTypes.Info |
get(java.lang.String host,
java.lang.String provider,
InvocationConfig invocationConfig)
Get a provider on a host.
|
java.util.List<ProvidersTypes.Summary> |
list(java.lang.String host,
ProvidersTypes.FilterSpec filterSpec)
List the available providers on a host.
|
void |
list(java.lang.String host,
ProvidersTypes.FilterSpec filterSpec,
AsyncCallback<java.util.List<ProvidersTypes.Summary>> asyncCallback)
List the available providers on a host.
|
void |
list(java.lang.String host,
ProvidersTypes.FilterSpec filterSpec,
AsyncCallback<java.util.List<ProvidersTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
List the available providers on a host.
|
java.util.List<ProvidersTypes.Summary> |
list(java.lang.String host,
ProvidersTypes.FilterSpec filterSpec,
InvocationConfig invocationConfig)
List the available providers on a host.
|
public ProvidersStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public ProvidersStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.util.List<ProvidersTypes.Summary> list(java.lang.String host, ProvidersTypes.FilterSpec filterSpec)
Providers
Synchronous method overload. Result of the invocation will be reported as a method return value.
list
in interface Providers
host
- Host identifier.
The parameter must be an identifier for the resource type: HostSystem
.filterSpec
- Filter spec.
If null
, the behavior is equivalent to a ProvidersTypes.FilterSpec
with all
properties null
.public java.util.List<ProvidersTypes.Summary> list(java.lang.String host, ProvidersTypes.FilterSpec filterSpec, InvocationConfig invocationConfig)
Providers
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
list
in interface Providers
host
- Host identifier.
The parameter must be an identifier for the resource type: HostSystem
.filterSpec
- Filter spec.
If null
, the behavior is equivalent to a ProvidersTypes.FilterSpec
with all
properties null
.invocationConfig
- Configuration for the method invocation.public void list(java.lang.String host, ProvidersTypes.FilterSpec filterSpec, AsyncCallback<java.util.List<ProvidersTypes.Summary>> asyncCallback)
Providers
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Summary of providers.
Operation Errors:
Error
- if there is a generic error.
InvalidArgument
- if the host identifier is empty or the FilterSpec is invalid.
NotFound
- if the host is not found.
Unauthenticated
- if the caller is not authenticated.
Unauthorized
- if the caller is not authorized.
Unauthorized
- if you do not have all of the privileges described as follows:
HostSystem
referenced by the parameter host
requires
Cryptographer.ReadKeyServersInfo
. list
in interface Providers
host
- Host identifier.
The parameter must be an identifier for the resource type: HostSystem
.filterSpec
- Filter spec.
If null
, the behavior is equivalent to a ProvidersTypes.FilterSpec
with all
properties null
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void list(java.lang.String host, ProvidersTypes.FilterSpec filterSpec, AsyncCallback<java.util.List<ProvidersTypes.Summary>> asyncCallback, InvocationConfig invocationConfig)
Providers
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:
Summary of providers.
Operation Errors:
Error
- if there is a generic error.
InvalidArgument
- if the host identifier is empty or the FilterSpec is invalid.
NotFound
- if the host is not found.
Unauthenticated
- if the caller is not authenticated.
Unauthorized
- if the caller is not authorized.
Unauthorized
- if you do not have all of the privileges described as follows:
HostSystem
referenced by the parameter host
requires
Cryptographer.ReadKeyServersInfo
. list
in interface Providers
host
- Host identifier.
The parameter must be an identifier for the resource type: HostSystem
.filterSpec
- Filter spec.
If null
, the behavior is equivalent to a ProvidersTypes.FilterSpec
with all
properties null
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public ProvidersTypes.Info get(java.lang.String host, java.lang.String provider)
Providers
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface Providers
host
- Host identifier.
The parameter must be an identifier for the resource type: HostSystem
.provider
- Provider identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.crypto_manager.kms.provider
.public ProvidersTypes.Info get(java.lang.String host, java.lang.String provider, InvocationConfig invocationConfig)
Providers
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 Providers
host
- Host identifier.
The parameter must be an identifier for the resource type: HostSystem
.provider
- Provider identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.crypto_manager.kms.provider
.invocationConfig
- Configuration for the method invocation.public void get(java.lang.String host, java.lang.String provider, AsyncCallback<ProvidersTypes.Info> asyncCallback)
Providers
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Information of the provider.
Operation Errors:
Error
- if there is a generic error.
InvalidArgument
- if the host identifier is empty or the provider identifier is empty.
NotFound
- if the provider or the host is not found.
Unauthenticated
- if the caller is not authenticated.
Unauthorized
- if the caller is not authorized.
Unauthorized
- if you do not have all of the privileges described as follows:
HostSystem
referenced by the parameter host
requires
Cryptographer.ReadKeyServersInfo
. get
in interface Providers
host
- Host identifier.
The parameter must be an identifier for the resource type: HostSystem
.provider
- Provider identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.crypto_manager.kms.provider
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get(java.lang.String host, java.lang.String provider, AsyncCallback<ProvidersTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Providers
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:
Information of the provider.
Operation Errors:
Error
- if there is a generic error.
InvalidArgument
- if the host identifier is empty or the provider identifier is empty.
NotFound
- if the provider or the host is not found.
Unauthenticated
- if the caller is not authenticated.
Unauthorized
- if the caller is not authorized.
Unauthorized
- if you do not have all of the privileges described as follows:
HostSystem
referenced by the parameter host
requires
Cryptographer.ReadKeyServersInfo
. get
in interface Providers
host
- Host identifier.
The parameter must be an identifier for the resource type: HostSystem
.provider
- Provider identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.crypto_manager.kms.provider
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.