com.vmware.vcenter.compute.policies.capabilities package¶
Submodules¶
com.vmware.vcenter.compute.policies.capabilities.vm_host_affinity_client module¶
The
com.vmware.vcenter.compute.policies.capabilities.vm_host_affinity_client
module provides classes for the VM Host affinity capability offered by vCenter.
-
class
com.vmware.vcenter.compute.policies.capabilities.vm_host_affinity_client.CreateSpec(vm_tag=None, host_tag=None, name=None, description=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
CreateSpecclass contains information used to create a new virtual machine to host affinity policy, seecom.vmware.vcenter.compute_client.Policies.create(). Virtual machines that have the tag indicated byCreateSpec.vm_tagwill be affine to hosts that have the tag indicated byCreateSpec.host_tag. Warning: This class is available as technical preview. It may be changed in a future release.Tip
The arguments are used to initialize data attributes with the same names.
Parameters: - vm_tag (
str) – Identifier of a tag that can be associated with a virtual machine. Virtual machines with this tag will be affine to the hosts indicated byCreateSpec.host_tag. Warning: This attribute is available as technical preview. It may be changed in a future release. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:com.vmware.cis.tagging.Tag:VirtualMachine. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:com.vmware.cis.tagging.Tag:VirtualMachine. - host_tag (
str) – Identifier of a tag that can be associated with a host. Virtual machines indicated byCreateSpec.vm_tagwill be affine to hosts with this tag. Warning: This attribute is available as technical preview. It may be changed in a future release. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:com.vmware.cis.tagging.Tag:HostSystem. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:com.vmware.cis.tagging.Tag:HostSystem. - name (
str) – Name of the policy. The name needs to be unique within this vCenter server. Warning: This attribute is available as technical preview. It may be changed in a future release. - description (
str) – Description of the policy. Warning: This attribute is available as technical preview. It may be changed in a future release.
- vm_tag (
-
class
com.vmware.vcenter.compute.policies.capabilities.vm_host_affinity_client.Info(vm_tag=None, host_tag=None, name=None, description=None, capability=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Infoclass contains information about a virtual machine to host affinity policy, seecom.vmware.vcenter.compute_client.Policies.get(). Virtual machines that have the tag indicated byInfo.vm_tagwill be affine to hosts that have the tag indicated byInfo.host_tag. Warning: This class is available as technical preview. It may be changed in a future release.Tip
The arguments are used to initialize data attributes with the same names.
Parameters: - vm_tag (
str) – Identifier of a tag that can be associated with a virtual machine. Virtual machines with this tag will be affine to the hosts indicated byInfo.host_tag. Warning: This attribute is available as technical preview. It may be changed in a future release. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:com.vmware.cis.tagging.Tag:VirtualMachine. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:com.vmware.cis.tagging.Tag:VirtualMachine. - host_tag (
str) – Identifier of a tag that can be associated with a host. Virtual machines indicated byInfo.vm_tagwill be affine to hosts with this tag. Warning: This attribute is available as technical preview. It may be changed in a future release. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:com.vmware.cis.tagging.Tag:HostSystem. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:com.vmware.cis.tagging.Tag:HostSystem. - name (
str) – Name of the policy. Warning: This attribute is available as technical preview. It may be changed in a future release. - description (
str) – Description of the policy. Warning: This attribute is available as technical preview. It may be changed in a future release. - capability (
str) – Identifier of the capability this policy is based on. Warning: This attribute is available as technical preview. It may be changed in a future release. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:com.vmware.vcenter.compute.policies.Capability. 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.compute.policies.Capability.
- vm_tag (
-
class
com.vmware.vcenter.compute.policies.capabilities.vm_host_affinity_client.StubFactory(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBaseInitialize StubFactoryBase
Parameters: stub_config ( vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance