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.Constraints, ProvidersTypes.ConstraintsSpec, ProvidersTypes.CreateSpec, ProvidersTypes.ExportResult, ProvidersTypes.ExportSpec, ProvidersTypes.ExportType, ProvidersTypes.FilterSpec, ProvidersTypes.Health, ProvidersTypes.ImportResult, ProvidersTypes.ImportSpec, ProvidersTypes.Info, ProvidersTypes.Location, ProvidersTypes.NativeProviderCreateSpec, ProvidersTypes.NativeProviderInfo, ProvidersTypes.NativeProviderUpdateSpec, ProvidersTypes.Summary, ProvidersTypes.Token, ProvidersTypes.Type, ProvidersTypes.UpdateSpec
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID, RESOURCE_TYPE
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 |
---|---|
void |
create(ProvidersTypes.CreateSpec spec)
Add a new provider.
|
void |
create(ProvidersTypes.CreateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Add a new provider.
|
void |
create(ProvidersTypes.CreateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Add a new provider.
|
void |
create(ProvidersTypes.CreateSpec spec,
InvocationConfig invocationConfig)
Add a new provider.
|
void |
delete(java.lang.String provider)
Remove a provider.
|
void |
delete(java.lang.String provider,
AsyncCallback<java.lang.Void> asyncCallback)
Remove a provider.
|
void |
delete(java.lang.String provider,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Remove a provider.
|
void |
delete(java.lang.String provider,
InvocationConfig invocationConfig)
Remove a provider.
|
ProvidersTypes.ExportResult |
export(ProvidersTypes.ExportSpec spec)
Export provider configuration.
|
void |
export(ProvidersTypes.ExportSpec spec,
AsyncCallback<ProvidersTypes.ExportResult> asyncCallback)
Export provider configuration.
|
void |
export(ProvidersTypes.ExportSpec spec,
AsyncCallback<ProvidersTypes.ExportResult> asyncCallback,
InvocationConfig invocationConfig)
Export provider configuration.
|
ProvidersTypes.ExportResult |
export(ProvidersTypes.ExportSpec spec,
InvocationConfig invocationConfig)
Export provider configuration.
|
ProvidersTypes.Info |
get(java.lang.String provider)
Return information about a provider.
|
void |
get(java.lang.String provider,
AsyncCallback<ProvidersTypes.Info> asyncCallback)
Return information about a provider.
|
void |
get(java.lang.String provider,
AsyncCallback<ProvidersTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Return information about a provider.
|
ProvidersTypes.Info |
get(java.lang.String provider,
InvocationConfig invocationConfig)
Return information about a provider.
|
ProvidersTypes.ImportResult |
importProvider(ProvidersTypes.ImportSpec spec)
Import provider configuration.
|
void |
importProvider(ProvidersTypes.ImportSpec spec,
AsyncCallback<ProvidersTypes.ImportResult> asyncCallback)
Import provider configuration.
|
void |
importProvider(ProvidersTypes.ImportSpec spec,
AsyncCallback<ProvidersTypes.ImportResult> asyncCallback,
InvocationConfig invocationConfig)
Import provider configuration.
|
ProvidersTypes.ImportResult |
importProvider(ProvidersTypes.ImportSpec spec,
InvocationConfig invocationConfig)
Import provider configuration.
|
java.util.List<ProvidersTypes.Summary> |
list(ProvidersTypes.FilterSpec filterSpec)
Return a list of providers.
|
void |
list(ProvidersTypes.FilterSpec filterSpec,
AsyncCallback<java.util.List<ProvidersTypes.Summary>> asyncCallback)
Return a list of providers.
|
void |
list(ProvidersTypes.FilterSpec filterSpec,
AsyncCallback<java.util.List<ProvidersTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Return a list of providers.
|
java.util.List<ProvidersTypes.Summary> |
list(ProvidersTypes.FilterSpec filterSpec,
InvocationConfig invocationConfig)
Return a list of providers.
|
void |
update(java.lang.String provider,
ProvidersTypes.UpdateSpec spec)
Update an existing provider.
|
void |
update(java.lang.String provider,
ProvidersTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Update an existing provider.
|
void |
update(java.lang.String provider,
ProvidersTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Update an existing provider.
|
void |
update(java.lang.String provider,
ProvidersTypes.UpdateSpec spec,
InvocationConfig invocationConfig)
Update an existing provider.
|
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(ProvidersTypes.FilterSpec filterSpec)
Providers
Synchronous method overload. Result of the invocation will be reported as a method return value.
list
in interface Providers
filterSpec
- Filter for the providers list.
If null
, the behavior is equivalent to a ProvidersTypes.FilterSpec
with all
properties null
.public java.util.List<ProvidersTypes.Summary> list(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
filterSpec
- Filter for the providers list.
If null
, the behavior is equivalent to a ProvidersTypes.FilterSpec
with all
properties null
.invocationConfig
- Configuration for the method invocation.public void list(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 spec is invalid.
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:
Cryptographer.ReadKeyServersInfo
. list
in interface Providers
filterSpec
- Filter for the providers list.
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(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 spec is invalid.
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:
Cryptographer.ReadKeyServersInfo
. list
in interface Providers
filterSpec
- Filter for the providers list.
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 void create(ProvidersTypes.CreateSpec spec)
Providers
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void create(ProvidersTypes.CreateSpec spec, 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.
public void create(ProvidersTypes.CreateSpec spec, AsyncCallback<java.lang.Void> asyncCallback)
Providers
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
AlreadyExists
- if a provider with the same identifier already exists.
Error
- if there is a generic error.
InvalidArgument
- if the spec is invalid.
Unauthenticated
- if the caller is not authenticated.
Unauthorized
- if the caller is not authorized.
Unsupported
- if creating a provider of the type is not supported.
Unauthorized
- if you do not have all of the privileges described as follows:
Cryptographer.ManageKeyServers
. public void create(ProvidersTypes.CreateSpec spec, AsyncCallback<java.lang.Void> 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.
Operation Errors:
AlreadyExists
- if a provider with the same identifier already exists.
Error
- if there is a generic error.
InvalidArgument
- if the spec is invalid.
Unauthenticated
- if the caller is not authenticated.
Unauthorized
- if the caller is not authorized.
Unsupported
- if creating a provider of the type is not supported.
Unauthorized
- if you do not have all of the privileges described as follows:
Cryptographer.ManageKeyServers
. public void update(java.lang.String provider, ProvidersTypes.UpdateSpec spec)
Providers
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void update(java.lang.String provider, ProvidersTypes.UpdateSpec spec, 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.
public void update(java.lang.String provider, ProvidersTypes.UpdateSpec spec, AsyncCallback<java.lang.Void> asyncCallback)
Providers
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- if there is a generic error.
InvalidArgument
- if the spec is invalid.
NotFound
- if the provider is not found.
Unauthenticated
- if the caller is not authenticated.
Unauthorized
- if the caller is not authorized.
Unsupported
- if the provider's type does not allow updates.
Unauthorized
- if you do not have all of the privileges described as follows:
Cryptographer.ManageKeyServers
. update
in interface Providers
provider
- Identifier of the provider.
The parameter must be an identifier for the resource type: com.vmware.vcenter.crypto_manager.kms.provider
.spec
- Provider information.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void update(java.lang.String provider, ProvidersTypes.UpdateSpec spec, AsyncCallback<java.lang.Void> 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.
Operation Errors:
Error
- if there is a generic error.
InvalidArgument
- if the spec is invalid.
NotFound
- if the provider is not found.
Unauthenticated
- if the caller is not authenticated.
Unauthorized
- if the caller is not authorized.
Unsupported
- if the provider's type does not allow updates.
Unauthorized
- if you do not have all of the privileges described as follows:
Cryptographer.ManageKeyServers
. update
in interface Providers
provider
- Identifier of the provider.
The parameter must be an identifier for the resource type: com.vmware.vcenter.crypto_manager.kms.provider
.spec
- Provider information.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void delete(java.lang.String provider)
Providers
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void delete(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.
public void delete(java.lang.String provider, AsyncCallback<java.lang.Void> asyncCallback)
Providers
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- if there is a generic error.
InvalidArgument
- if the provider identifier is empty.
NotFound
- if the provider is not found.
Unauthenticated
- if the caller is not authenticated.
Unauthorized
- if the caller is not authorized.
Unsupported
- if the provider's type does not allow deletion.
Unauthorized
- if you do not have all of the privileges described as follows:
Cryptographer.ManageKeyServers
. public void delete(java.lang.String provider, AsyncCallback<java.lang.Void> 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.
Operation Errors:
Error
- if there is a generic error.
InvalidArgument
- if the provider identifier is empty.
NotFound
- if the provider is not found.
Unauthenticated
- if the caller is not authenticated.
Unauthorized
- if the caller is not authorized.
Unsupported
- if the provider's type does not allow deletion.
Unauthorized
- if you do not have all of the privileges described as follows:
Cryptographer.ManageKeyServers
. delete
in interface Providers
provider
- Identifier of the provider.
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.public ProvidersTypes.Info get(java.lang.String provider)
Providers
Synchronous method overload. Result of the invocation will be reported as a method return value.
public ProvidersTypes.Info get(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.
public void get(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 provider identifier is empty.
NotFound
- if the provider 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:
Cryptographer.ReadKeyServersInfo
. public void get(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 provider identifier is empty.
NotFound
- if the provider 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:
Cryptographer.ReadKeyServersInfo
. get
in interface Providers
provider
- Identifier of the provider.
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.public ProvidersTypes.ExportResult export(ProvidersTypes.ExportSpec spec)
Providers
Synchronous method overload. Result of the invocation will be reported as a method return value.
public ProvidersTypes.ExportResult export(ProvidersTypes.ExportSpec spec, 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.
public void export(ProvidersTypes.ExportSpec spec, AsyncCallback<ProvidersTypes.ExportResult> asyncCallback)
Providers
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
ExportResult.
Operation Errors:
Error
- if there is a generic error.
InvalidArgument
- if the provider identifier is empty.
NotFound
- if the provider with the identifier is not found.
Unauthenticated
- if the caller is not authenticated.
Unauthorized
- if the caller is not authorized.
Unsupported
- if the provider's type does not allow export.
Unauthorized
- if you do not have all of the privileges described as follows:
Cryptographer.ManageKeyServers
. public void export(ProvidersTypes.ExportSpec spec, AsyncCallback<ProvidersTypes.ExportResult> 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:
ExportResult.
Operation Errors:
Error
- if there is a generic error.
InvalidArgument
- if the provider identifier is empty.
NotFound
- if the provider with the identifier is not found.
Unauthenticated
- if the caller is not authenticated.
Unauthorized
- if the caller is not authorized.
Unsupported
- if the provider's type does not allow export.
Unauthorized
- if you do not have all of the privileges described as follows:
Cryptographer.ManageKeyServers
. public ProvidersTypes.ImportResult importProvider(ProvidersTypes.ImportSpec spec)
Providers
Synchronous method overload. Result of the invocation will be reported as a method return value.
importProvider
in interface Providers
spec
- ImportSpec needed to import a provider.public ProvidersTypes.ImportResult importProvider(ProvidersTypes.ImportSpec spec, 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.
importProvider
in interface Providers
spec
- ImportSpec needed to import a provider.invocationConfig
- Configuration for the method invocation.public void importProvider(ProvidersTypes.ImportSpec spec, AsyncCallback<ProvidersTypes.ImportResult> asyncCallback)
Providers
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
importResult ImportResult.
Operation Errors:
AlreadyExists
- if a provider with the same identifier already exists.
Error
- if there is a generic error.
InvalidArgument
- if the config or the password is invalid.
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:
Cryptographer.ManageKeyServers
. importProvider
in interface Providers
spec
- ImportSpec needed to import a provider.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void importProvider(ProvidersTypes.ImportSpec spec, AsyncCallback<ProvidersTypes.ImportResult> 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:
importResult ImportResult.
Operation Errors:
AlreadyExists
- if a provider with the same identifier already exists.
Error
- if there is a generic error.
InvalidArgument
- if the config or the password is invalid.
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:
Cryptographer.ManageKeyServers
. importProvider
in interface Providers
spec
- ImportSpec needed to import a provider.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.