SubscriptionMapping

class oci.tenant_manager_control_plane.models.SubscriptionMapping(**kwargs)

Bases: object

Subscription mapping information.

Attributes

LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a SubscriptionMapping.
LIFECYCLE_STATE_CREATING A constant which can be used with the lifecycle_state property of a SubscriptionMapping.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a SubscriptionMapping.
LIFECYCLE_STATE_DELETING A constant which can be used with the lifecycle_state property of a SubscriptionMapping.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a SubscriptionMapping.
LIFECYCLE_STATE_INACTIVE A constant which can be used with the lifecycle_state property of a SubscriptionMapping.
LIFECYCLE_STATE_UPDATING A constant which can be used with the lifecycle_state property of a SubscriptionMapping.
compartment_id [Required] Gets the compartment_id of this SubscriptionMapping.
id [Required] Gets the id of this SubscriptionMapping.
is_explicitly_assigned [Required] Gets the is_explicitly_assigned of this SubscriptionMapping.
lifecycle_state [Required] Gets the lifecycle_state of this SubscriptionMapping.
subscription_id [Required] Gets the subscription_id of this SubscriptionMapping.
time_created [Required] Gets the time_created of this SubscriptionMapping.
time_terminated Gets the time_terminated of this SubscriptionMapping.
time_updated [Required] Gets the time_updated of this SubscriptionMapping.

Methods

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

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

LIFECYCLE_STATE_CREATING = 'CREATING'

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

LIFECYCLE_STATE_DELETED = 'DELETED'

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

LIFECYCLE_STATE_DELETING = 'DELETING'

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

LIFECYCLE_STATE_FAILED = 'FAILED'

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

LIFECYCLE_STATE_INACTIVE = 'INACTIVE'

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

LIFECYCLE_STATE_UPDATING = 'UPDATING'

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

__init__(**kwargs)

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

[Required] Gets the compartment_id of this SubscriptionMapping. OCID of the compartment. Always a tenancy OCID.

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

[Required] Gets the id of this SubscriptionMapping. OCID of the mapping between subscription and compartment identified by the tenancy.

Returns:The id of this SubscriptionMapping.
Return type:str
is_explicitly_assigned

[Required] Gets the is_explicitly_assigned of this SubscriptionMapping. Denotes if the subscription is explicity assigned to the root compartment or tenancy.

Returns:The is_explicitly_assigned of this SubscriptionMapping.
Return type:bool
lifecycle_state

[Required] Gets the lifecycle_state of this SubscriptionMapping. Lifecycle state of the subscriptionMapping.

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

Returns:The lifecycle_state of this SubscriptionMapping.
Return type:str
subscription_id

[Required] Gets the subscription_id of this SubscriptionMapping. OCID of the subscription.

Returns:The subscription_id of this SubscriptionMapping.
Return type:str
time_created

[Required] Gets the time_created of this SubscriptionMapping. Date-time when subscription mapping was created.

Returns:The time_created of this SubscriptionMapping.
Return type:datetime
time_terminated

Gets the time_terminated of this SubscriptionMapping. Date-time when subscription mapping was terminated.

Returns:The time_terminated of this SubscriptionMapping.
Return type:datetime
time_updated

[Required] Gets the time_updated of this SubscriptionMapping. Date-time when subscription mapping was updated.

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