OlvmVmPlacementPolicy¶
-
class
oci.cloud_migrations.models.OlvmVmPlacementPolicy(**kwargs)¶ Bases:
objectThe configuration of the virtual machine???s placement policy.
Attributes
VM_AFFINITY_MIGRATABLEA constant which can be used with the vm_affinity property of a OlvmVmPlacementPolicy. VM_AFFINITY_PINNEDA constant which can be used with the vm_affinity property of a OlvmVmPlacementPolicy. VM_AFFINITY_USER_MIGRATABLEA constant which can be used with the vm_affinity property of a OlvmVmPlacementPolicy. hostsGets the hosts of this OlvmVmPlacementPolicy. vm_affinityGets the vm_affinity of this OlvmVmPlacementPolicy. Methods
__init__(**kwargs)Initializes a new OlvmVmPlacementPolicy object with values from keyword arguments. -
VM_AFFINITY_MIGRATABLE= 'MIGRATABLE'¶ A constant which can be used with the vm_affinity property of a OlvmVmPlacementPolicy. This constant has a value of “MIGRATABLE”
-
VM_AFFINITY_PINNED= 'PINNED'¶ A constant which can be used with the vm_affinity property of a OlvmVmPlacementPolicy. This constant has a value of “PINNED”
-
VM_AFFINITY_USER_MIGRATABLE= 'USER_MIGRATABLE'¶ A constant which can be used with the vm_affinity property of a OlvmVmPlacementPolicy. This constant has a value of “USER_MIGRATABLE”
-
__init__(**kwargs)¶ Initializes a new OlvmVmPlacementPolicy object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - vm_affinity (str) – The value to assign to the vm_affinity property of this OlvmVmPlacementPolicy. Allowed values for this property are: “MIGRATABLE”, “PINNED”, “USER_MIGRATABLE”
- hosts (list[oci.cloud_migrations.models.OlvmHost]) – The value to assign to the hosts property of this OlvmVmPlacementPolicy.
-
hosts¶ Gets the hosts of this OlvmVmPlacementPolicy. List of hosts.
Returns: The hosts of this OlvmVmPlacementPolicy. Return type: list[oci.cloud_migrations.models.OlvmHost]
-
vm_affinity¶ Gets the vm_affinity of this OlvmVmPlacementPolicy. Affinity of the virtual machine.
Allowed values for this property are: “MIGRATABLE”, “PINNED”, “USER_MIGRATABLE”
Returns: The vm_affinity of this OlvmVmPlacementPolicy. Return type: str
-