com.vmware.vcenter.compute.policies.capabilities package

Submodules

com.vmware.vcenter.compute.policies.capabilities.disable_drs_vmotion_client module

The com.vmware.vcenter.compute.policies.capabilities.disable_drs_vmotion_client module provides classes for the Disable DRS vMotion capability offered by vCenter.

class com.vmware.vcenter.compute.policies.capabilities.disable_drs_vmotion_client.CreateSpec(vm_tag=None, name=None, description=None)

Bases: vmware.vapi.bindings.struct.VapiStruct

The CreateSpec class contains information used to create a new DisableDrsVmotion policy, see com.vmware.vcenter.compute_client.Policies.create(). 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 not be migrated away from the host on which they are powered on, except when the host is put into maintenance mode or failed over. 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.

  • 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.disable_drs_vmotion_client.Info(vm_tag=None, name=None, description=None, capability=None)

Bases: vmware.vapi.bindings.struct.VapiStruct

The Info class contains information about a DisableDrsVmotion policy, see com.vmware.vcenter.compute_client.Policies.get(). 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 not be migrated away from the host on which they are powered on, except when the host is put into maintenance mode or failed over. 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.

  • 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.disable_drs_vmotion_client.StubFactory(stub_config)

Bases: vmware.vapi.bindings.stub.StubFactoryBase

Initialize StubFactoryBase

Parameters

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

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

com.vmware.vcenter.compute.policies.capabilities.vm_host_anti_affinity_client module

The com.vmware.vcenter.compute.policies.capabilities.vm_host_anti_affinity_client module provides classes for the VM Host anti-affinity capability offered by vCenter.

class com.vmware.vcenter.compute.policies.capabilities.vm_host_anti_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 anti-affinity policy, see com.vmware.vcenter.compute_client.Policies.create(). Virtual machines that have the tag indicated by CreateSpec.vm_tag will be anti-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 anti-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 anti-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_anti_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 anti-affinity policy, see com.vmware.vcenter.compute_client.Policies.get(). Virtual machines that have the tag indicated by Info.vm_tag will be anti-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 anti-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 anti-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_anti_affinity_client.StubFactory(stub_config)

Bases: vmware.vapi.bindings.stub.StubFactoryBase

Initialize StubFactoryBase

Parameters

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

com.vmware.vcenter.compute.policies.capabilities.vm_vm_affinity_client module

The com.vmware.vcenter.compute.policies.capabilities.vm_vm_affinity_client module provides classes for the VM-VM affinity capability offered by vCenter.

class com.vmware.vcenter.compute.policies.capabilities.vm_vm_affinity_client.CreateSpec(vm_tag=None, name=None, description=None)

Bases: vmware.vapi.bindings.struct.VapiStruct

The CreateSpec class contains information used to create a new VM-VM affinity policy, see com.vmware.vcenter.compute_client.Policies.create(). All virtual machines that share the tag indicated by CreateSpec.vm_tag will be affined to each other. 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 affined to each other. 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.

  • 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_vm_affinity_client.Info(vm_tag=None, name=None, description=None, capability=None)

Bases: vmware.vapi.bindings.struct.VapiStruct

The Info class contains information about a VM-VM affinity policy, see com.vmware.vcenter.compute_client.Policies.get(). All virtual machines that share the tag indicated by Info.vm_tag are affined to each other. 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 affined to each other. 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.

  • 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_vm_affinity_client.StubFactory(stub_config)

Bases: vmware.vapi.bindings.stub.StubFactoryBase

Initialize StubFactoryBase

Parameters

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

com.vmware.vcenter.compute.policies.capabilities.vm_vm_anti_affinity_client module

The com.vmware.vcenter.compute.policies.capabilities.vm_vm_anti_affinity_client module provides classes for the VM VM anti-affinity capability offered by vCenter.

class com.vmware.vcenter.compute.policies.capabilities.vm_vm_anti_affinity_client.CreateSpec(vm_tag=None, name=None, description=None)

Bases: vmware.vapi.bindings.struct.VapiStruct

The CreateSpec class contains information used to create a new VM-VM anti-affinity policy, see com.vmware.vcenter.compute_client.Policies.create(). All virtual machines that share the tag indicated by CreateSpec.vm_tag will be anti-affine to each other. 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 anti-affine to each other. 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.

  • 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_vm_anti_affinity_client.Info(vm_tag=None, name=None, description=None, capability=None)

Bases: vmware.vapi.bindings.struct.VapiStruct

The Info class contains information about a VM-VM anti-affinity policy, see com.vmware.vcenter.compute_client.Policies.get(). All virtual machines that share the tag indicated by Info.vm_tag are anti-affine to each other. 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 are anti-affine to each other. 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.

  • 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_vm_anti_affinity_client.StubFactory(stub_config)

Bases: vmware.vapi.bindings.stub.StubFactoryBase

Initialize StubFactoryBase

Parameters

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