com.vmware.vcenter.consumption_domains package
Subpackages
Submodules
com.vmware.vcenter.consumption_domains.zone_associations_client module
- class com.vmware.vcenter.consumption_domains.zone_associations_client.Cluster(config)
 Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
CLUSTERclass provides methods to query zone-cluster associations. This class was added in vSphere API 8.0.0.1.- Parameters
 config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
- class FilterSpec(clusters=None, zones=None)
 Bases:
vmware.vapi.bindings.struct.VapiStructThe
Cluster.FilterSpecclass contains attributes used to filter the results when listing associations between clusters and zones, seeCluster.list(). If multiple filtering criteria are provided in aCluster.FilterSpec, then the filtering is done based on all of them, i.e., every returned zone-cluster association must satisfy all the filtering criteria. ThisCluster.FilterSpecclass can be used to list zones associated with a given cluster as well as to list the clusters associated with a given zone. This class was added in vSphere API 8.0.0.1.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
 clusters (
setofstrorNone) – Zone-cluster associations will be filtered such that each association that is returned will have a cluster identifier from this set of specified cluster identifiers. This attribute was added in vSphere API 8.0.0.1. When clients pass a value of this class as a parameter, the attribute must contain identifiers for the resource type:ClusterComputeResource. When methods return a value of this class as a return value, the attribute will contain identifiers for the resource type:ClusterComputeResource. If None or empty, zone-cluster associations will not be filtered based on cluster identifiers. Associations with any cluster identifier will match this filter.zones (
setofstrorNone) – Zone-cluster associations will be filtered such that each association that is returned will have a zone identifier from this set of specified zone identifiers. This attribute was added in vSphere API 8.0.0.1. When clients pass a value of this class as a parameter, the attribute must contain identifiers for the resource type:com.vmware.vcenter.consumption_domains.Zone. When methods return a value of this class as a return value, the attribute will contain identifiers for the resource type:com.vmware.vcenter.consumption_domains.Zone. If None or empty, zone-cluster associations will not be filtered based on zone identifiers. Associations with any zone identifier will match this filter.
- class ListItem(zone=None, cluster=None)
 Bases:
vmware.vapi.bindings.struct.VapiStructThe
Cluster.ListItemclass describes a zone-cluster association. This class was added in vSphere API 8.0.0.1.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
 zone (
str) – Identifier of the zone. This attribute was added in vSphere API 8.0.0.1. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:com.vmware.vcenter.consumption_domains.Zone. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:com.vmware.vcenter.consumption_domains.Zone.cluster (
str) – Identifier of the cluster. This attribute was added in vSphere API 8.0.0.1. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:ClusterComputeResource. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:ClusterComputeResource.
- class ListResult(associations=None)
 Bases:
vmware.vapi.bindings.struct.VapiStructThe
Cluster.ListResultclass contains the list of zone-cluster associations. This class was added in vSphere API 8.0.0.1.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
 associations (
listofCluster.ListItem) – The list of zone-cluster associations. This attribute was added in vSphere API 8.0.0.1.
- list(filter=None)
 Returns zone-cluster associations that match the specified filter. This method was added in vSphere API 8.0.0.1.
- Parameters
 filter (
Cluster.FilterSpecorNone) – The specification of matching zone-cluster associations. If None, the behavior is equivalent to aCluster.FilterSpecwith all attributes None, which means all the zone-cluster associations will be returned.- Return type
 - Returns
 Zone-cluster associations matching the
Cluster.FilterSpec.- Raise
 com.vmware.vapi.std.errors_client.Unauthenticatedif the user can not be authenticated.- Raise
 com.vmware.vapi.std.errors_client.Unauthorizedif the user doesn’t have all of the privileges described as follows: - The resource com.vmware.vcenter.consumption_domains.Zone referenced by the parameter zones inCluster.FilterSpecrequires System.Read privilege.- Raise
 com.vmware.vapi.std.errors_client.Errorwhen unexpected error is encountered.- Raise
 com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
System.Read.
- class com.vmware.vcenter.consumption_domains.zone_associations_client.StubFactory(stub_config)
 Bases:
vmware.vapi.bindings.stub.StubFactoryBaseInitialize StubFactoryBase
- Parameters
 stub_config (
vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance