EnrollmentStatus

class oci.optimizer.models.EnrollmentStatus(**kwargs)

Bases: object

The metadata associated with the enrollment status.

Attributes

LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a EnrollmentStatus.
LIFECYCLE_STATE_ATTACHING A constant which can be used with the lifecycle_state property of a EnrollmentStatus.
LIFECYCLE_STATE_CREATING A constant which can be used with the lifecycle_state property of a EnrollmentStatus.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a EnrollmentStatus.
LIFECYCLE_STATE_DELETING A constant which can be used with the lifecycle_state property of a EnrollmentStatus.
LIFECYCLE_STATE_DETACHING A constant which can be used with the lifecycle_state property of a EnrollmentStatus.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a EnrollmentStatus.
LIFECYCLE_STATE_INACTIVE A constant which can be used with the lifecycle_state property of a EnrollmentStatus.
LIFECYCLE_STATE_UPDATING A constant which can be used with the lifecycle_state property of a EnrollmentStatus.
STATUS_ACTIVE A constant which can be used with the status property of a EnrollmentStatus.
STATUS_INACTIVE A constant which can be used with the status property of a EnrollmentStatus.
compartment_id [Required] Gets the compartment_id of this EnrollmentStatus.
id [Required] Gets the id of this EnrollmentStatus.
lifecycle_state [Required] Gets the lifecycle_state of this EnrollmentStatus.
status [Required] Gets the status of this EnrollmentStatus.
status_reason Gets the status_reason of this EnrollmentStatus.
time_created Gets the time_created of this EnrollmentStatus.
time_updated Gets the time_updated of this EnrollmentStatus.

Methods

__init__(**kwargs) Initializes a new EnrollmentStatus object with values from keyword arguments.
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

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

LIFECYCLE_STATE_ATTACHING = 'ATTACHING'

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

LIFECYCLE_STATE_CREATING = 'CREATING'

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

LIFECYCLE_STATE_DELETED = 'DELETED'

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

LIFECYCLE_STATE_DELETING = 'DELETING'

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

LIFECYCLE_STATE_DETACHING = 'DETACHING'

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

LIFECYCLE_STATE_FAILED = 'FAILED'

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

LIFECYCLE_STATE_INACTIVE = 'INACTIVE'

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

LIFECYCLE_STATE_UPDATING = 'UPDATING'

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

STATUS_ACTIVE = 'ACTIVE'

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

STATUS_INACTIVE = 'INACTIVE'

A constant which can be used with the status property of a EnrollmentStatus. This constant has a value of “INACTIVE”

__init__(**kwargs)

Initializes a new EnrollmentStatus 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 EnrollmentStatus.
  • compartment_id (str) – The value to assign to the compartment_id property of this EnrollmentStatus.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this EnrollmentStatus. Allowed values for this property are: “ACTIVE”, “FAILED”, “INACTIVE”, “ATTACHING”, “DETACHING”, “DELETING”, “DELETED”, “UPDATING”, “CREATING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • status (str) – The value to assign to the status property of this EnrollmentStatus. Allowed values for this property are: “ACTIVE”, “INACTIVE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • status_reason (str) – The value to assign to the status_reason property of this EnrollmentStatus.
  • time_created (datetime) – The value to assign to the time_created property of this EnrollmentStatus.
  • time_updated (datetime) – The value to assign to the time_updated property of this EnrollmentStatus.
compartment_id

[Required] Gets the compartment_id of this EnrollmentStatus. The OCID of the compartment.

Returns:The compartment_id of this EnrollmentStatus.
Return type:str
id

[Required] Gets the id of this EnrollmentStatus. The OCID of the enrollment status.

Returns:The id of this EnrollmentStatus.
Return type:str
lifecycle_state

[Required] Gets the lifecycle_state of this EnrollmentStatus. The enrollment status’ current state.

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

Returns:The lifecycle_state of this EnrollmentStatus.
Return type:str
status

[Required] Gets the status of this EnrollmentStatus. The current Cloud Advisor enrollment status.

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

Returns:The status of this EnrollmentStatus.
Return type:str
status_reason

Gets the status_reason of this EnrollmentStatus. The reason for the enrollment status of the tenancy.

Returns:The status_reason of this EnrollmentStatus.
Return type:str
time_created

Gets the time_created of this EnrollmentStatus. The date and time the enrollment status was created, in the format defined by RFC3339.

Returns:The time_created of this EnrollmentStatus.
Return type:datetime
time_updated

Gets the time_updated of this EnrollmentStatus. The date and time the enrollment status was last updated, in the format defined by RFC3339.

Returns:The time_updated of this EnrollmentStatus.
Return type:datetime