AssignedSubscriptionSummary

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

Bases: object

Summary of AssignedSubscription information.

Attributes

LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a AssignedSubscriptionSummary.
LIFECYCLE_STATE_CREATING A constant which can be used with the lifecycle_state property of a AssignedSubscriptionSummary.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a AssignedSubscriptionSummary.
LIFECYCLE_STATE_DELETING A constant which can be used with the lifecycle_state property of a AssignedSubscriptionSummary.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a AssignedSubscriptionSummary.
LIFECYCLE_STATE_INACTIVE A constant which can be used with the lifecycle_state property of a AssignedSubscriptionSummary.
LIFECYCLE_STATE_UPDATING A constant which can be used with the lifecycle_state property of a AssignedSubscriptionSummary.
classic_subscription_id [Required] Gets the classic_subscription_id of this AssignedSubscriptionSummary.
compartment_id [Required] Gets the compartment_id of this AssignedSubscriptionSummary.
end_date Gets the end_date of this AssignedSubscriptionSummary.
id [Required] Gets the id of this AssignedSubscriptionSummary.
is_classic_subscription Gets the is_classic_subscription of this AssignedSubscriptionSummary.
lifecycle_state Gets the lifecycle_state of this AssignedSubscriptionSummary.
region_assignment Gets the region_assignment of this AssignedSubscriptionSummary.
service_name [Required] Gets the service_name of this AssignedSubscriptionSummary.
start_date Gets the start_date of this AssignedSubscriptionSummary.
time_created Gets the time_created of this AssignedSubscriptionSummary.
time_updated Gets the time_updated of this AssignedSubscriptionSummary.

Methods

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

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

LIFECYCLE_STATE_CREATING = 'CREATING'

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

LIFECYCLE_STATE_DELETED = 'DELETED'

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

LIFECYCLE_STATE_DELETING = 'DELETING'

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

LIFECYCLE_STATE_FAILED = 'FAILED'

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

LIFECYCLE_STATE_INACTIVE = 'INACTIVE'

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

LIFECYCLE_STATE_UPDATING = 'UPDATING'

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

__init__(**kwargs)

Initializes a new AssignedSubscriptionSummary 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 AssignedSubscriptionSummary.
  • compartment_id (str) – The value to assign to the compartment_id property of this AssignedSubscriptionSummary.
  • classic_subscription_id (str) – The value to assign to the classic_subscription_id property of this AssignedSubscriptionSummary.
  • service_name (str) – The value to assign to the service_name property of this AssignedSubscriptionSummary.
  • is_classic_subscription (bool) – The value to assign to the is_classic_subscription property of this AssignedSubscriptionSummary.
  • region_assignment (str) – The value to assign to the region_assignment property of this AssignedSubscriptionSummary.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this AssignedSubscriptionSummary. 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’.
  • start_date (datetime) – The value to assign to the start_date property of this AssignedSubscriptionSummary.
  • end_date (datetime) – The value to assign to the end_date property of this AssignedSubscriptionSummary.
  • time_updated (datetime) – The value to assign to the time_updated property of this AssignedSubscriptionSummary.
  • time_created (datetime) – The value to assign to the time_created property of this AssignedSubscriptionSummary.
classic_subscription_id

[Required] Gets the classic_subscription_id of this AssignedSubscriptionSummary. Subscription ID.

Returns:The classic_subscription_id of this AssignedSubscriptionSummary.
Return type:str
compartment_id

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

Returns:The compartment_id of this AssignedSubscriptionSummary.
Return type:str
end_date

Gets the end_date of this AssignedSubscriptionSummary. Subscription end time.

Returns:The end_date of this AssignedSubscriptionSummary.
Return type:datetime
id

[Required] Gets the id of this AssignedSubscriptionSummary. OCID of the subscription.

Returns:The id of this AssignedSubscriptionSummary.
Return type:str
is_classic_subscription

Gets the is_classic_subscription of this AssignedSubscriptionSummary. Denotes if the subscription is legacy or not.

Returns:The is_classic_subscription of this AssignedSubscriptionSummary.
Return type:bool
lifecycle_state

Gets the lifecycle_state of this AssignedSubscriptionSummary. Lifecycle state of the subscription.

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 AssignedSubscriptionSummary.
Return type:str
region_assignment

Gets the region_assignment of this AssignedSubscriptionSummary. Region for the subscription.

Returns:The region_assignment of this AssignedSubscriptionSummary.
Return type:str
service_name

[Required] Gets the service_name of this AssignedSubscriptionSummary. The type of subscription, such as ‘CLOUDCM’, ‘SAAS’, ‘ERP’, or ‘CRM’.

Returns:The service_name of this AssignedSubscriptionSummary.
Return type:str
start_date

Gets the start_date of this AssignedSubscriptionSummary. Subscription start time.

Returns:The start_date of this AssignedSubscriptionSummary.
Return type:datetime
time_created

Gets the time_created of this AssignedSubscriptionSummary. Date-time when subscription is created.

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

Gets the time_updated of this AssignedSubscriptionSummary. Date-time when subscription is updated.

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