public class AssociationsStub extends com.vmware.vapi.internal.bindings.Stub implements Associations
Associations
API service.
WARNING: Internal class, subject to change in future versions.
AssociationsTypes.StatusapiProvider, converter, ifaceId, retryPolicy, securityContext_VAPI_SERVICE_ID| Constructor and Description |
|---|
AssociationsStub(ApiProvider apiProvider,
StubConfigurationBase config) |
AssociationsStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
| Modifier and Type | Method and Description |
|---|---|
AssociationsTypes.Status |
add(java.lang.String zone,
java.util.Set<java.lang.String> clusters)
Maps a consumption-domain zone to the specified vSphere clusters.
|
void |
add(java.lang.String zone,
java.util.Set<java.lang.String> clusters,
AsyncCallback<AssociationsTypes.Status> asyncCallback)
Maps a consumption-domain zone to the specified vSphere clusters.
|
void |
add(java.lang.String zone,
java.util.Set<java.lang.String> clusters,
AsyncCallback<AssociationsTypes.Status> asyncCallback,
InvocationConfig invocationConfig)
Maps a consumption-domain zone to the specified vSphere clusters.
|
AssociationsTypes.Status |
add(java.lang.String zone,
java.util.Set<java.lang.String> clusters,
InvocationConfig invocationConfig)
Maps a consumption-domain zone to the specified vSphere clusters.
|
java.util.Set<java.lang.String> |
get(java.lang.String zone)
Returns identifiers of the clusters that are mapped to the specified
consumption-domain zone.
|
void |
get(java.lang.String zone,
AsyncCallback<java.util.Set<java.lang.String>> asyncCallback)
Returns identifiers of the clusters that are mapped to the specified
consumption-domain zone.
|
void |
get(java.lang.String zone,
AsyncCallback<java.util.Set<java.lang.String>> asyncCallback,
InvocationConfig invocationConfig)
Returns identifiers of the clusters that are mapped to the specified
consumption-domain zone.
|
java.util.Set<java.lang.String> |
get(java.lang.String zone,
InvocationConfig invocationConfig)
Returns identifiers of the clusters that are mapped to the specified
consumption-domain zone.
|
AssociationsTypes.Status |
remove(java.lang.String zone,
java.util.Set<java.lang.String> clusters)
Removes the mapping between the specified consumption-domain zone and vSphere
clusters.
|
void |
remove(java.lang.String zone,
java.util.Set<java.lang.String> clusters,
AsyncCallback<AssociationsTypes.Status> asyncCallback)
Removes the mapping between the specified consumption-domain zone and vSphere
clusters.
|
void |
remove(java.lang.String zone,
java.util.Set<java.lang.String> clusters,
AsyncCallback<AssociationsTypes.Status> asyncCallback,
InvocationConfig invocationConfig)
Removes the mapping between the specified consumption-domain zone and vSphere
clusters.
|
AssociationsTypes.Status |
remove(java.lang.String zone,
java.util.Set<java.lang.String> clusters,
InvocationConfig invocationConfig)
Removes the mapping between the specified consumption-domain zone and vSphere
clusters.
|
public AssociationsStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public AssociationsStub(ApiProvider apiProvider, StubConfigurationBase config)
public AssociationsTypes.Status add(java.lang.String zone, java.util.Set<java.lang.String> clusters)
AssociationsSynchronous method overload. Result of the invocation will be reported as a method return value.
add in interface Associationszone - Identifier of the zone to be mapped to the specified vSphere clusters.
The parameter must be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone.clusters - Set of identifiers of vSphere clusters to which the the specified zone should be
mapped.
The parameter must contain identifiers for the resource type: ClusterComputeResource.com.vmware.vcenter.consumption_domains.zones.cluster.Associations#Status. If
the method failed, returns the reason of failures. There will be an error
message indicating the identifier of the cluster for which the association
failed and the reason of failure. The cluster identifiers that are not present
in com.vmware.vcenter.consumption_domains.zones.cluster.Associations#Status will
have been successfully associated.public AssociationsTypes.Status add(java.lang.String zone, java.util.Set<java.lang.String> clusters, InvocationConfig invocationConfig)
AssociationsSynchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
add in interface Associationszone - Identifier of the zone to be mapped to the specified vSphere clusters.
The parameter must be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone.clusters - Set of identifiers of vSphere clusters to which the the specified zone should be
mapped.
The parameter must contain identifiers for the resource type: ClusterComputeResource.invocationConfig - Configuration for the method invocation.com.vmware.vcenter.consumption_domains.zones.cluster.Associations#Status. If
the method failed, returns the reason of failures. There will be an error
message indicating the identifier of the cluster for which the association
failed and the reason of failure. The cluster identifiers that are not present
in com.vmware.vcenter.consumption_domains.zones.cluster.Associations#Status will
have been successfully associated.public void add(java.lang.String zone,
java.util.Set<java.lang.String> clusters,
AsyncCallback<AssociationsTypes.Status> asyncCallback)
AssociationsAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Invocation Result:
Status see com.vmware.vcenter.consumption_domains.zones.cluster.Associations#Status. If
the method failed, returns the reason of failures. There will be an error
message indicating the identifier of the cluster for which the association
failed and the reason of failure. The cluster identifiers that are not present
in com.vmware.vcenter.consumption_domains.zones.cluster.Associations#Status will
have been successfully associated.
Operation Errors:
InvalidArgument - if more than one cluster or an empty set of clusters is specified.
NotFound - if the specified zone is not known to this vCenter server.
Unauthorized - if the user doesn't have all of the privileges described as follows: - The
resource com.vmware.vcenter.consumption_domains.Zone referenced by the parameter
zone requires Zones.Manage privilege. - Each resource of ClusterComputeResource
referenced by the parameter clusters requires Zone.ObjectAttachable privilege.
Unauthenticated - if the user can not be authenticated.
Error - when unexpected error is encountered.
Unauthorized - if you do not have all of the privileges described as follows:
com.vmware.vcenter.consumption_domains.Zone referenced by the
parameter zone requires Zone.Manage. add in interface Associationszone - Identifier of the zone to be mapped to the specified vSphere clusters.
The parameter must be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone.clusters - Set of identifiers of vSphere clusters to which the the specified zone should be
mapped.
The parameter must contain identifiers for the resource type: ClusterComputeResource.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void add(java.lang.String zone,
java.util.Set<java.lang.String> clusters,
AsyncCallback<AssociationsTypes.Status> asyncCallback,
InvocationConfig invocationConfig)
AssociationsAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Invocation Result:
Status see com.vmware.vcenter.consumption_domains.zones.cluster.Associations#Status. If
the method failed, returns the reason of failures. There will be an error
message indicating the identifier of the cluster for which the association
failed and the reason of failure. The cluster identifiers that are not present
in com.vmware.vcenter.consumption_domains.zones.cluster.Associations#Status will
have been successfully associated.
Operation Errors:
InvalidArgument - if more than one cluster or an empty set of clusters is specified.
NotFound - if the specified zone is not known to this vCenter server.
Unauthorized - if the user doesn't have all of the privileges described as follows: - The
resource com.vmware.vcenter.consumption_domains.Zone referenced by the parameter
zone requires Zones.Manage privilege. - Each resource of ClusterComputeResource
referenced by the parameter clusters requires Zone.ObjectAttachable privilege.
Unauthenticated - if the user can not be authenticated.
Error - when unexpected error is encountered.
Unauthorized - if you do not have all of the privileges described as follows:
com.vmware.vcenter.consumption_domains.Zone referenced by the
parameter zone requires Zone.Manage. add in interface Associationszone - Identifier of the zone to be mapped to the specified vSphere clusters.
The parameter must be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone.clusters - Set of identifiers of vSphere clusters to which the the specified zone should be
mapped.
The parameter must contain identifiers for the resource type: ClusterComputeResource.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.public AssociationsTypes.Status remove(java.lang.String zone, java.util.Set<java.lang.String> clusters)
AssociationsSynchronous method overload. Result of the invocation will be reported as a method return value.
remove in interface Associationszone - Identifier of the zone for which the mapping needs to be removed.
The parameter must be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone.clusters - Set of identifiers of vSphere clusters which need to be removed from the
mapping.
The parameter must contain identifiers for the resource type: ClusterComputeResource.com.vmware.vcenter.consumption_domains.zones.cluster.Associations#Status. If
the method failed, returns the reason of failures. There will be an error
message indicating the identifier of the cluster for which the association
removal failed and the reason of failure.public AssociationsTypes.Status remove(java.lang.String zone, java.util.Set<java.lang.String> clusters, InvocationConfig invocationConfig)
AssociationsSynchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
remove in interface Associationszone - Identifier of the zone for which the mapping needs to be removed.
The parameter must be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone.clusters - Set of identifiers of vSphere clusters which need to be removed from the
mapping.
The parameter must contain identifiers for the resource type: ClusterComputeResource.invocationConfig - Configuration for the method invocation.com.vmware.vcenter.consumption_domains.zones.cluster.Associations#Status. If
the method failed, returns the reason of failures. There will be an error
message indicating the identifier of the cluster for which the association
removal failed and the reason of failure.public void remove(java.lang.String zone,
java.util.Set<java.lang.String> clusters,
AsyncCallback<AssociationsTypes.Status> asyncCallback)
AssociationsAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Invocation Result:
Status see com.vmware.vcenter.consumption_domains.zones.cluster.Associations#Status. If
the method failed, returns the reason of failures. There will be an error
message indicating the identifier of the cluster for which the association
removal failed and the reason of failure.
Operation Errors:
NotFound - if the specified zone is not known to this vCenter server.
NotAllowedInCurrentState - if there is a workload running in the specified zone and depends on this zone's
cluster associations to be present.
Unauthorized - if the user doesn't have all of the privileges described as follows: - The
resource com.vmware.vcenter.consumption_domains.Zone referenced by the parameter
zone requires Zones.Manage privilege. - Each resource of ClusterComputeResource
referenced by the parameter clusters requires Zone.ObjectAttachable privilege.
Unauthenticated - if the user can not be authenticated.
Error - when unexpected error is encountered.
Unauthorized - if you do not have all of the privileges described as follows:
com.vmware.vcenter.consumption_domains.Zone referenced by the
parameter zone requires Zone.Manage. remove in interface Associationszone - Identifier of the zone for which the mapping needs to be removed.
The parameter must be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone.clusters - Set of identifiers of vSphere clusters which need to be removed from the
mapping.
The parameter must contain identifiers for the resource type: ClusterComputeResource.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void remove(java.lang.String zone,
java.util.Set<java.lang.String> clusters,
AsyncCallback<AssociationsTypes.Status> asyncCallback,
InvocationConfig invocationConfig)
AssociationsAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Invocation Result:
Status see com.vmware.vcenter.consumption_domains.zones.cluster.Associations#Status. If
the method failed, returns the reason of failures. There will be an error
message indicating the identifier of the cluster for which the association
removal failed and the reason of failure.
Operation Errors:
NotFound - if the specified zone is not known to this vCenter server.
NotAllowedInCurrentState - if there is a workload running in the specified zone and depends on this zone's
cluster associations to be present.
Unauthorized - if the user doesn't have all of the privileges described as follows: - The
resource com.vmware.vcenter.consumption_domains.Zone referenced by the parameter
zone requires Zones.Manage privilege. - Each resource of ClusterComputeResource
referenced by the parameter clusters requires Zone.ObjectAttachable privilege.
Unauthenticated - if the user can not be authenticated.
Error - when unexpected error is encountered.
Unauthorized - if you do not have all of the privileges described as follows:
com.vmware.vcenter.consumption_domains.Zone referenced by the
parameter zone requires Zone.Manage. remove in interface Associationszone - Identifier of the zone for which the mapping needs to be removed.
The parameter must be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone.clusters - Set of identifiers of vSphere clusters which need to be removed from the
mapping.
The parameter must contain identifiers for the resource type: ClusterComputeResource.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.public java.util.Set<java.lang.String> get(java.lang.String zone)
AssociationsSynchronous method overload. Result of the invocation will be reported as a method return value.
get in interface Associationszone - Identifier of the zone to be queried for its associated vSphere clusters.
The parameter must be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone.ClusterComputeResource.public java.util.Set<java.lang.String> get(java.lang.String zone,
InvocationConfig invocationConfig)
AssociationsSynchronous 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 Associationszone - Identifier of the zone to be queried for its associated vSphere clusters.
The parameter must be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone.invocationConfig - Configuration for the method invocation.ClusterComputeResource.public void get(java.lang.String zone,
AsyncCallback<java.util.Set<java.lang.String>> asyncCallback)
AssociationsAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Invocation Result:
The set of vSphere clusters mapped to the specified zone.
The return value will contain identifiers for the resource type: ClusterComputeResource.
Operation Errors:
NotFound - if the specified zone is not known to this vCenter server.
Unauthorized - if the user doesn't have all of the privileges described as follows: - The
resource com.vmware.vcenter.consumption_domains.Zone referenced by the parameter
zone requires System.Read privilege.
Unauthenticated - if the user can not be authenticated.
Error - when unexpected error is encountered.
Unauthorized - if you do not have all of the privileges described as follows:
com.vmware.vcenter.consumption_domains.Zone referenced by the
parameter zone requires System.Read. get in interface Associationszone - Identifier of the zone to be queried for its associated vSphere clusters.
The parameter must be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void get(java.lang.String zone,
AsyncCallback<java.util.Set<java.lang.String>> asyncCallback,
InvocationConfig invocationConfig)
AssociationsAsynchronous 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 set of vSphere clusters mapped to the specified zone.
The return value will contain identifiers for the resource type: ClusterComputeResource.
Operation Errors:
NotFound - if the specified zone is not known to this vCenter server.
Unauthorized - if the user doesn't have all of the privileges described as follows: - The
resource com.vmware.vcenter.consumption_domains.Zone referenced by the parameter
zone requires System.Read privilege.
Unauthenticated - if the user can not be authenticated.
Error - when unexpected error is encountered.
Unauthorized - if you do not have all of the privileges described as follows:
com.vmware.vcenter.consumption_domains.Zone referenced by the
parameter zone requires System.Read. get in interface Associationszone - Identifier of the zone to be queried for its associated vSphere clusters.
The parameter must be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.