OlvmSerialNumber

class oci.cloud_migrations.models.OlvmSerialNumber(**kwargs)

Bases: object

Serial number object in OLVM

Attributes:

POLICY_CUSTOM

A constant which can be used with the policy property of a OlvmSerialNumber.

POLICY_HOST

A constant which can be used with the policy property of a OlvmSerialNumber.

POLICY_NONE

A constant which can be used with the policy property of a OlvmSerialNumber.

POLICY_VM

A constant which can be used with the policy property of a OlvmSerialNumber.

policy

Gets the policy of this OlvmSerialNumber.

value

Gets the value of this OlvmSerialNumber.

Methods:

__init__(**kwargs)

Initializes a new OlvmSerialNumber object with values from keyword arguments.

POLICY_CUSTOM = 'CUSTOM'

A constant which can be used with the policy property of a OlvmSerialNumber. This constant has a value of “CUSTOM”

POLICY_HOST = 'HOST'

A constant which can be used with the policy property of a OlvmSerialNumber. This constant has a value of “HOST”

POLICY_NONE = 'NONE'

A constant which can be used with the policy property of a OlvmSerialNumber. This constant has a value of “NONE”

POLICY_VM = 'VM'

A constant which can be used with the policy property of a OlvmSerialNumber. This constant has a value of “VM”

__init__(**kwargs)

Initializes a new OlvmSerialNumber object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • policy (str) – The value to assign to the policy property of this OlvmSerialNumber. Allowed values for this property are: “CUSTOM”, “HOST”, “NONE”, “VM”

  • value (str) – The value to assign to the value property of this OlvmSerialNumber.

property policy

Gets the policy of this OlvmSerialNumber. Type representing the policy of a Serial Number

Allowed values for this property are: “CUSTOM”, “HOST”, “NONE”, “VM”

Returns

The policy of this OlvmSerialNumber.

Return type

str

property value

Gets the value of this OlvmSerialNumber. Value of the serial number policy.

Returns

The value of this OlvmSerialNumber.

Return type

str