public class ServicesStub extends com.vmware.vapi.internal.bindings.Stub implements Services
Services
API service.
WARNING: Internal class, subject to change in future versions.
ServicesTypes.CreateSpec, ServicesTypes.FilterSpec, ServicesTypes.Info, ServicesTypes.Summary
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID, RESOURCE_TYPE
Constructor and Description |
---|
ServicesStub(ApiProvider apiProvider,
StubConfigurationBase config) |
ServicesStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
create(ServicesTypes.CreateSpec spec)
Registers a Key Provider Service instance in this vCenter.
|
void |
create(ServicesTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback)
Registers a Key Provider Service instance in this vCenter.
|
void |
create(ServicesTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Registers a Key Provider Service instance in this vCenter.
|
java.lang.String |
create(ServicesTypes.CreateSpec spec,
InvocationConfig invocationConfig)
Registers a Key Provider Service instance in this vCenter.
|
void |
delete(java.lang.String service)
Removes a currently registered Key Provider Service instance from this vCenter.
|
void |
delete(java.lang.String service,
AsyncCallback<java.lang.Void> asyncCallback)
Removes a currently registered Key Provider Service instance from this vCenter.
|
void |
delete(java.lang.String service,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Removes a currently registered Key Provider Service instance from this vCenter.
|
void |
delete(java.lang.String service,
InvocationConfig invocationConfig)
Removes a currently registered Key Provider Service instance from this vCenter.
|
ServicesTypes.Info |
get(java.lang.String service)
Returns the detailed information about a registered Key Provider Service
instance in this vCenter.
|
void |
get(java.lang.String service,
AsyncCallback<ServicesTypes.Info> asyncCallback)
Returns the detailed information about a registered Key Provider Service
instance in this vCenter.
|
void |
get(java.lang.String service,
AsyncCallback<ServicesTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns the detailed information about a registered Key Provider Service
instance in this vCenter.
|
ServicesTypes.Info |
get(java.lang.String service,
InvocationConfig invocationConfig)
Returns the detailed information about a registered Key Provider Service
instance in this vCenter.
|
java.util.List<ServicesTypes.Summary> |
list(ServicesTypes.FilterSpec spec)
Returns basic information about all registered Key Provider Service instances in
this vCenter.
|
void |
list(ServicesTypes.FilterSpec spec,
AsyncCallback<java.util.List<ServicesTypes.Summary>> asyncCallback)
Returns basic information about all registered Key Provider Service instances in
this vCenter.
|
void |
list(ServicesTypes.FilterSpec spec,
AsyncCallback<java.util.List<ServicesTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns basic information about all registered Key Provider Service instances in
this vCenter.
|
java.util.List<ServicesTypes.Summary> |
list(ServicesTypes.FilterSpec spec,
InvocationConfig invocationConfig)
Returns basic information about all registered Key Provider Service instances in
this vCenter.
|
public ServicesStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public ServicesStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.util.List<ServicesTypes.Summary> list(ServicesTypes.FilterSpec spec)
Services
Synchronous method overload. Result of the invocation will be reported as a method return value.
public java.util.List<ServicesTypes.Summary> list(ServicesTypes.FilterSpec spec, InvocationConfig invocationConfig)
Services
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 list(ServicesTypes.FilterSpec spec, AsyncCallback<java.util.List<ServicesTypes.Summary>> asyncCallback)
Services
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Basic information about all registered Key Provider Service instances in this
vCenter.
Operation Errors:
Error
- if an error occurred while getting the data.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
TrustedAdmin.ReadTrustedHosts
. public void list(ServicesTypes.FilterSpec spec, AsyncCallback<java.util.List<ServicesTypes.Summary>> asyncCallback, InvocationConfig invocationConfig)
Services
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:
Basic information about all registered Key Provider Service instances in this
vCenter.
Operation Errors:
Error
- if an error occurred while getting the data.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
TrustedAdmin.ReadTrustedHosts
. public ServicesTypes.Info get(java.lang.String service)
Services
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface Services
service
- the Key Provider Service instance unique identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.trusted_infrastructure.kms.Service
.public ServicesTypes.Info get(java.lang.String service, InvocationConfig invocationConfig)
Services
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 Services
service
- the Key Provider Service instance unique identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.trusted_infrastructure.kms.Service
.invocationConfig
- Configuration for the method invocation.public void get(java.lang.String service, AsyncCallback<ServicesTypes.Info> asyncCallback)
Services
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Detailed information about the specified Key Provider Service instance.
Operation Errors:
Error
- if an error occurred while getting the data.
NotFound
- if there is no Key Provider Service instance with the specified ID.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
TrustedAdmin.ReadTrustedHosts
. get
in interface Services
service
- the Key Provider Service instance unique identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.trusted_infrastructure.kms.Service
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get(java.lang.String service, AsyncCallback<ServicesTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Services
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:
Detailed information about the specified Key Provider Service instance.
Operation Errors:
Error
- if an error occurred while getting the data.
NotFound
- if there is no Key Provider Service instance with the specified ID.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
TrustedAdmin.ReadTrustedHosts
. get
in interface Services
service
- the Key Provider Service instance unique identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.trusted_infrastructure.kms.Service
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public java.lang.String create(ServicesTypes.CreateSpec spec)
Services
Synchronous method overload. Result of the invocation will be reported as a method return value.
public java.lang.String create(ServicesTypes.CreateSpec spec, InvocationConfig invocationConfig)
Services
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
create
in interface Services
spec
- The CreateSpec for the new service.invocationConfig
- Configuration for the method invocation.com.vmware.vcenter.trusted_infrastructure.kms.Service
.public void create(ServicesTypes.CreateSpec spec, AsyncCallback<java.lang.String> asyncCallback)
Services
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
ID of the newly registered Key Provider Service instance.
The return value will be an identifier for the resource type: com.vmware.vcenter.trusted_infrastructure.kms.Service
.
Operation Errors:
AlreadyExists
- if there is already a Key Provider Service instance with the same Address.
Error
- if there is a generic error.
InvalidArgument
- if the CreateSpec contains invalid data.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
TrustedAdmin.ManageTrustedHosts
. public void create(ServicesTypes.CreateSpec spec, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
Services
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:
ID of the newly registered Key Provider Service instance.
The return value will be an identifier for the resource type: com.vmware.vcenter.trusted_infrastructure.kms.Service
.
Operation Errors:
AlreadyExists
- if there is already a Key Provider Service instance with the same Address.
Error
- if there is a generic error.
InvalidArgument
- if the CreateSpec contains invalid data.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
TrustedAdmin.ManageTrustedHosts
. public void delete(java.lang.String service)
Services
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void delete(java.lang.String service, InvocationConfig invocationConfig)
Services
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 service, AsyncCallback<java.lang.Void> asyncCallback)
Services
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- if an error occurred while deleting the service.
NotFound
- if the Key Provider Service instance is not found.
ResourceBusy
- if the Key Provider Service instance is used by a configuration on a cluster
level.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
TrustedAdmin.ManageTrustedHosts
. delete
in interface Services
service
- the Key Provider Service instance unique identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.trusted_infrastructure.kms.Service
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void delete(java.lang.String service, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Services
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 an error occurred while deleting the service.
NotFound
- if the Key Provider Service instance is not found.
ResourceBusy
- if the Key Provider Service instance is used by a configuration on a cluster
level.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
TrustedAdmin.ManageTrustedHosts
. delete
in interface Services
service
- the Key Provider Service instance unique identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.trusted_infrastructure.kms.Service
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.