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.VapiStruct

The CreateSpec class contains information used to create a new virtual machine to host affinity policy, see com.vmware.vcenter.compute_client.Policies.create(). Virtual machines that have the tag indicated by CreateSpec.vm_tag will be affine to hosts that have the tag indicated by CreateSpec.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 by CreateSpec.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 by CreateSpec.vm_tag will 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.
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.VapiStruct

The Info class contains information about a virtual machine to host affinity policy, see com.vmware.vcenter.compute_client.Policies.get(). Virtual machines that have the tag indicated by Info.vm_tag will be affine to hosts that have the tag indicated by Info.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 by Info.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 by Info.vm_tag will 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.
class com.vmware.vcenter.compute.policies.capabilities.vm_host_affinity_client.StubFactory(stub_config)

Bases: vmware.vapi.bindings.stub.StubFactoryBase

Initialize StubFactoryBase

Parameters:stub_config (vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance