public class MappingsStub extends com.vmware.vapi.internal.bindings.Stub implements Mappings
Mappings
API service.
WARNING: Internal class, subject to change in future versions.
MappingsTypes.CreateSpec, MappingsTypes.FilterSpec, MappingsTypes.Info, MappingsTypes.IterationSpec, MappingsTypes.ListItem, MappingsTypes.ListResult
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID, RESOURCE_TYPE
Constructor and Description |
---|
MappingsStub(com.vmware.vapi.core.ApiProvider apiProvider,
com.vmware.vapi.bindings.StubConfigurationBase config) |
MappingsStub(com.vmware.vapi.core.ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
com.vmware.vapi.bindings.StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
create(MappingsTypes.CreateSpec spec)
Creates a new mapping that associates an object with a vTContainer instance.
|
void |
create(MappingsTypes.CreateSpec spec,
com.vmware.vapi.bindings.client.AsyncCallback<java.lang.String> asyncCallback)
Creates a new mapping that associates an object with a vTContainer instance.
|
void |
create(MappingsTypes.CreateSpec spec,
com.vmware.vapi.bindings.client.AsyncCallback<java.lang.String> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Creates a new mapping that associates an object with a vTContainer instance.
|
java.lang.String |
create(MappingsTypes.CreateSpec spec,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Creates a new mapping that associates an object with a vTContainer instance.
|
void |
delete(java.lang.String mapping)
Removes a mapping.
|
void |
delete(java.lang.String mapping,
com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
Removes a mapping.
|
void |
delete(java.lang.String mapping,
com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Removes a mapping.
|
void |
delete(java.lang.String mapping,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Removes a mapping.
|
MappingsTypes.Info |
get(java.lang.String mapping)
Returns information about a single mapping indicating the containerized object
and its associated vTContainer instance.
|
void |
get(java.lang.String mapping,
com.vmware.vapi.bindings.client.AsyncCallback<MappingsTypes.Info> asyncCallback)
Returns information about a single mapping indicating the containerized object
and its associated vTContainer instance.
|
void |
get(java.lang.String mapping,
com.vmware.vapi.bindings.client.AsyncCallback<MappingsTypes.Info> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Returns information about a single mapping indicating the containerized object
and its associated vTContainer instance.
|
MappingsTypes.Info |
get(java.lang.String mapping,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Returns information about a single mapping indicating the containerized object
and its associated vTContainer instance.
|
MappingsTypes.ListResult |
list(MappingsTypes.FilterSpec filter,
MappingsTypes.IterationSpec iterate)
Returns the list of mappings indicating the containerized objects and their
associated vTContainer instances.
|
void |
list(MappingsTypes.FilterSpec filter,
MappingsTypes.IterationSpec iterate,
com.vmware.vapi.bindings.client.AsyncCallback<MappingsTypes.ListResult> asyncCallback)
Returns the list of mappings indicating the containerized objects and their
associated vTContainer instances.
|
void |
list(MappingsTypes.FilterSpec filter,
MappingsTypes.IterationSpec iterate,
com.vmware.vapi.bindings.client.AsyncCallback<MappingsTypes.ListResult> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Returns the list of mappings indicating the containerized objects and their
associated vTContainer instances.
|
MappingsTypes.ListResult |
list(MappingsTypes.FilterSpec filter,
MappingsTypes.IterationSpec iterate,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Returns the list of mappings indicating the containerized objects and their
associated vTContainer instances.
|
public MappingsStub(com.vmware.vapi.core.ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, com.vmware.vapi.bindings.StubConfigurationBase config)
public MappingsStub(com.vmware.vapi.core.ApiProvider apiProvider, com.vmware.vapi.bindings.StubConfigurationBase config)
public java.lang.String create(MappingsTypes.CreateSpec spec)
Mappings
Synchronous method overload. Result of the invocation will be reported as a method return value.
public java.lang.String create(MappingsTypes.CreateSpec spec, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Mappings
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 Mappings
spec
- The specification of a new mapping.invocationConfig
- Configuration for the method invocation.com.vmware.vcenter.authorization.vt_containers.Mapping
.public void create(MappingsTypes.CreateSpec spec, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.String> asyncCallback)
Mappings
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
The identifier of the new mapping.
The return value will be an identifier for the resource type: com.vmware.vcenter.authorization.vt_containers.Mapping
.
Operation Errors:
AlreadyExists
- if the configuration already exists.
Error
- if there is a generic error.
InvalidArgument
- if the inputs are not valid.
NotAllowedInCurrentState
- if the limit of mappings for the specified object has been reached.
NotFound
- if the vTContainer or the object does not exist.
Unsupported
- if the object type does not support containerization.
Unauthenticated
- if the caller cannot be authenticated.
Unauthorized
- if the caller does not have the Authorization.ModifyPermissions privilege on the
specified object.
Unauthorized
- if the caller does not have privilege to access objects in the specified
vTContainer.
Unauthorized
- if you do not have all of the privileges described as follows:
Authorization.ModifyVTContainerMappings
. public void create(MappingsTypes.CreateSpec spec, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.String> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Mappings
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:
The identifier of the new mapping.
The return value will be an identifier for the resource type: com.vmware.vcenter.authorization.vt_containers.Mapping
.
Operation Errors:
AlreadyExists
- if the configuration already exists.
Error
- if there is a generic error.
InvalidArgument
- if the inputs are not valid.
NotAllowedInCurrentState
- if the limit of mappings for the specified object has been reached.
NotFound
- if the vTContainer or the object does not exist.
Unsupported
- if the object type does not support containerization.
Unauthenticated
- if the caller cannot be authenticated.
Unauthorized
- if the caller does not have the Authorization.ModifyPermissions privilege on the
specified object.
Unauthorized
- if the caller does not have privilege to access objects in the specified
vTContainer.
Unauthorized
- if you do not have all of the privileges described as follows:
Authorization.ModifyVTContainerMappings
. public MappingsTypes.ListResult list(MappingsTypes.FilterSpec filter, MappingsTypes.IterationSpec iterate)
Mappings
Synchronous method overload. Result of the invocation will be reported as a method return value.
public MappingsTypes.ListResult list(MappingsTypes.FilterSpec filter, MappingsTypes.IterationSpec iterate, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Mappings
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 Mappings
filter
- The specification of matching mappings to be retrieved.
If null
all mappings will be returned.iterate
- The specification of a page to be retrieved.
if null
the first set of items will be returned.invocationConfig
- Configuration for the method invocation.public void list(MappingsTypes.FilterSpec filter, MappingsTypes.IterationSpec iterate, com.vmware.vapi.bindings.client.AsyncCallback<MappingsTypes.ListResult> asyncCallback)
Mappings
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
A list of mappings.
Operation Errors:
Error
- if there is a generic error.
InvalidArgument
- if the inputs are not valid.
Unauthenticated
- if the caller cannot be authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. list
in interface Mappings
filter
- The specification of matching mappings to be retrieved.
If null
all mappings will be returned.iterate
- The specification of a page to be retrieved.
if null
the first set of items will be returned.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void list(MappingsTypes.FilterSpec filter, MappingsTypes.IterationSpec iterate, com.vmware.vapi.bindings.client.AsyncCallback<MappingsTypes.ListResult> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Mappings
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:
A list of mappings.
Operation Errors:
Error
- if there is a generic error.
InvalidArgument
- if the inputs are not valid.
Unauthenticated
- if the caller cannot be authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. list
in interface Mappings
filter
- The specification of matching mappings to be retrieved.
If null
all mappings will be returned.iterate
- The specification of a page to be retrieved.
if null
the first set of items will be returned.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public MappingsTypes.Info get(java.lang.String mapping)
Mappings
Synchronous method overload. Result of the invocation will be reported as a method return value.
public MappingsTypes.Info get(java.lang.String mapping, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Mappings
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 mapping, com.vmware.vapi.bindings.client.AsyncCallback<MappingsTypes.Info> asyncCallback)
Mappings
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
The mapping information.
Operation Errors:
Error
- if there is a generic error.
NotFound
- if the mapping is not found.
Unauthenticated
- if the caller cannot be authenticated.
Unauthorized
- if the caller does not have privilege to access objects in the vTContainer that
is associated with the mapping.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. public void get(java.lang.String mapping, com.vmware.vapi.bindings.client.AsyncCallback<MappingsTypes.Info> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Mappings
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:
The mapping information.
Operation Errors:
Error
- if there is a generic error.
NotFound
- if the mapping is not found.
Unauthenticated
- if the caller cannot be authenticated.
Unauthorized
- if the caller does not have privilege to access objects in the vTContainer that
is associated with the mapping.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. get
in interface Mappings
mapping
- The mapping identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.authorization.vt_containers.Mapping
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void delete(java.lang.String mapping)
Mappings
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void delete(java.lang.String mapping, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Mappings
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 mapping, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
Mappings
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- if there is a generic error.
NotFound
- if the mapping is not found.
Unauthenticated
- if the caller cannot be authenticated.
Unauthorized
- if the caller does not have the Authorization.ModifyPermissions privilege on the
object that is associated with the mapping.
Unauthorized
- if the caller does not have privilege to access objects in the vTContainer that
is associated with the mapping.
Unauthorized
- if you do not have all of the privileges described as follows:
Authorization.ModifyVTContainerMappings
. public void delete(java.lang.String mapping, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Mappings
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.
NotFound
- if the mapping is not found.
Unauthenticated
- if the caller cannot be authenticated.
Unauthorized
- if the caller does not have the Authorization.ModifyPermissions privilege on the
object that is associated with the mapping.
Unauthorized
- if the caller does not have privilege to access objects in the vTContainer that
is associated with the mapping.
Unauthorized
- if you do not have all of the privileges described as follows:
Authorization.ModifyVTContainerMappings
. delete
in interface Mappings
mapping
- The mapping identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.authorization.vt_containers.Mapping
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.