MacDevice

class oci.mngdmac.models.MacDevice(**kwargs)

Bases: object

Represents a MacDevice resource.

Attributes:

LIFECYCLE_STATE_ACTIVE

A constant which can be used with the lifecycle_state property of a MacDevice.

LIFECYCLE_STATE_CREATING

A constant which can be used with the lifecycle_state property of a MacDevice.

LIFECYCLE_STATE_DELETED

A constant which can be used with the lifecycle_state property of a MacDevice.

LIFECYCLE_STATE_DELETING

A constant which can be used with the lifecycle_state property of a MacDevice.

LIFECYCLE_STATE_NEEDS_ATTENTION

A constant which can be used with the lifecycle_state property of a MacDevice.

compartment_id

[Required] Gets the compartment_id of this MacDevice.

id

[Required] Gets the id of this MacDevice.

ip_address

[Required] Gets the ip_address of this MacDevice.

is_marked_decom

[Required] Gets the is_marked_decom of this MacDevice.

lifecycle_state

[Required] Gets the lifecycle_state of this MacDevice.

mac_order_id

[Required] Gets the mac_order_id of this MacDevice.

serial_number

[Required] Gets the serial_number of this MacDevice.

shape

[Required] Gets the shape of this MacDevice.

time_created

[Required] Gets the time_created of this MacDevice.

time_decom

[Required] Gets the time_decom of this MacDevice.

time_updated

[Required] Gets the time_updated of this MacDevice.

Methods:

__init__(**kwargs)

Initializes a new MacDevice object with values from keyword arguments.

LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

A constant which can be used with the lifecycle_state property of a MacDevice. This constant has a value of “ACTIVE”

LIFECYCLE_STATE_CREATING = 'CREATING'

A constant which can be used with the lifecycle_state property of a MacDevice. This constant has a value of “CREATING”

LIFECYCLE_STATE_DELETED = 'DELETED'

A constant which can be used with the lifecycle_state property of a MacDevice. This constant has a value of “DELETED”

LIFECYCLE_STATE_DELETING = 'DELETING'

A constant which can be used with the lifecycle_state property of a MacDevice. This constant has a value of “DELETING”

LIFECYCLE_STATE_NEEDS_ATTENTION = 'NEEDS_ATTENTION'

A constant which can be used with the lifecycle_state property of a MacDevice. This constant has a value of “NEEDS_ATTENTION”

__init__(**kwargs)

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

Parameters
  • id (str) – The value to assign to the id property of this MacDevice.

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

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

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

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

  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this MacDevice. Allowed values for this property are: “CREATING”, “ACTIVE”, “NEEDS_ATTENTION”, “DELETING”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

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

  • time_created (datetime) – The value to assign to the time_created property of this MacDevice.

  • time_updated (datetime) – The value to assign to the time_updated property of this MacDevice.

  • is_marked_decom (bool) – The value to assign to the is_marked_decom property of this MacDevice.

  • time_decom (datetime) – The value to assign to the time_decom property of this MacDevice.

property compartment_id

[Required] Gets the compartment_id of this MacDevice. OCID of the compartment to which the resource belongs to.

Returns

The compartment_id of this MacDevice.

Return type

str

property id

[Required] Gets the id of this MacDevice. The unique ID of the MacDevice.

Returns

The id of this MacDevice.

Return type

str

property ip_address

[Required] Gets the ip_address of this MacDevice. The IP address assigned to the MacDevice.

Returns

The ip_address of this MacDevice.

Return type

str

property is_marked_decom

[Required] Gets the is_marked_decom of this MacDevice. A flag that indicates if this MacDevice is decommissioned.

Returns

The is_marked_decom of this MacDevice.

Return type

bool

property lifecycle_state

[Required] Gets the lifecycle_state of this MacDevice. The current status of the MacDevice.

Allowed values for this property are: “CREATING”, “ACTIVE”, “NEEDS_ATTENTION”, “DELETING”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The lifecycle_state of this MacDevice.

Return type

str

property mac_order_id

[Required] Gets the mac_order_id of this MacDevice. The OCID of the resource.

Returns

The mac_order_id of this MacDevice.

Return type

str

property serial_number

[Required] Gets the serial_number of this MacDevice. The serial number of the MacDevice.

Returns

The serial_number of this MacDevice.

Return type

str

property shape

[Required] Gets the shape of this MacDevice. The shape of the Mac.

Returns

The shape of this MacDevice.

Return type

str

property time_created

[Required] Gets the time_created of this MacDevice. The time this resource was created. An RFC3339 formatted datetime string.

Returns

The time_created of this MacDevice.

Return type

datetime

property time_decom

[Required] Gets the time_decom of this MacDevice. An RFC3339-formatted datetime string containing the time this MacDevice was decommissioned.

Returns

The time_decom of this MacDevice.

Return type

datetime

property time_updated

[Required] Gets the time_updated of this MacDevice. The time this resource was last updated. An RFC3339 formatted datetime string.

Returns

The time_updated of this MacDevice.

Return type

datetime