ClassicSubscriptionSummary

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

Bases: oci.tenant_manager_control_plane.models.subscription_summary.SubscriptionSummary

Summary of subscription.

Attributes

ENTITY_VERSION_V1 str(object=’’) -> str
ENTITY_VERSION_V2 str(object=’’) -> str
LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a ClassicSubscriptionSummary.
LIFECYCLE_STATE_CREATING A constant which can be used with the lifecycle_state property of a ClassicSubscriptionSummary.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a ClassicSubscriptionSummary.
LIFECYCLE_STATE_DELETING A constant which can be used with the lifecycle_state property of a ClassicSubscriptionSummary.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a ClassicSubscriptionSummary.
LIFECYCLE_STATE_INACTIVE A constant which can be used with the lifecycle_state property of a ClassicSubscriptionSummary.
LIFECYCLE_STATE_UPDATING A constant which can be used with the lifecycle_state property of a ClassicSubscriptionSummary.
classic_subscription_id [Required] Gets the classic_subscription_id of this ClassicSubscriptionSummary.
compartment_id [Required] Gets the compartment_id of this SubscriptionSummary.
defined_tags [Required] Gets the defined_tags of this SubscriptionSummary.
end_date Gets the end_date of this ClassicSubscriptionSummary.
entity_version [Required] Gets the entity_version of this SubscriptionSummary.
freeform_tags [Required] Gets the freeform_tags of this SubscriptionSummary.
id [Required] Gets the id of this SubscriptionSummary.
is_classic_subscription Gets the is_classic_subscription of this ClassicSubscriptionSummary.
lifecycle_state Gets the lifecycle_state of this ClassicSubscriptionSummary.
payment_model Gets the payment_model of this ClassicSubscriptionSummary.
region_assignment Gets the region_assignment of this ClassicSubscriptionSummary.
service_name [Required] Gets the service_name of this SubscriptionSummary.
start_date Gets the start_date of this ClassicSubscriptionSummary.
time_created [Required] Gets the time_created of this SubscriptionSummary.
time_updated [Required] Gets the time_updated of this SubscriptionSummary.

Methods

__init__(**kwargs) Initializes a new ClassicSubscriptionSummary object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
ENTITY_VERSION_V1 = 'V1'
ENTITY_VERSION_V2 = 'V2'
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

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

LIFECYCLE_STATE_CREATING = 'CREATING'

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

LIFECYCLE_STATE_DELETED = 'DELETED'

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

LIFECYCLE_STATE_DELETING = 'DELETING'

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

LIFECYCLE_STATE_FAILED = 'FAILED'

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

LIFECYCLE_STATE_INACTIVE = 'INACTIVE'

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

LIFECYCLE_STATE_UPDATING = 'UPDATING'

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

__init__(**kwargs)

Initializes a new ClassicSubscriptionSummary object with values from keyword arguments. The default value of the entity_version attribute of this class is V1 and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • entity_version (str) – The value to assign to the entity_version property of this ClassicSubscriptionSummary. Allowed values for this property are: “V1”, “V2”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • id (str) – The value to assign to the id property of this ClassicSubscriptionSummary.
  • compartment_id (str) – The value to assign to the compartment_id property of this ClassicSubscriptionSummary.
  • service_name (str) – The value to assign to the service_name property of this ClassicSubscriptionSummary.
  • time_created (datetime) – The value to assign to the time_created property of this ClassicSubscriptionSummary.
  • time_updated (datetime) – The value to assign to the time_updated property of this ClassicSubscriptionSummary.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this ClassicSubscriptionSummary.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this ClassicSubscriptionSummary.
  • classic_subscription_id (str) – The value to assign to the classic_subscription_id property of this ClassicSubscriptionSummary.
  • is_classic_subscription (bool) – The value to assign to the is_classic_subscription property of this ClassicSubscriptionSummary.
  • payment_model (str) – The value to assign to the payment_model property of this ClassicSubscriptionSummary.
  • region_assignment (str) – The value to assign to the region_assignment property of this ClassicSubscriptionSummary.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this ClassicSubscriptionSummary. 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 ClassicSubscriptionSummary.
  • end_date (datetime) – The value to assign to the end_date property of this ClassicSubscriptionSummary.
classic_subscription_id

[Required] Gets the classic_subscription_id of this ClassicSubscriptionSummary. Classic subscription ID.

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

[Required] Gets the compartment_id of this SubscriptionSummary. The Oracle ID (OCID) of the owning compartment. Always a tenancy OCID.

Returns:The compartment_id of this SubscriptionSummary.
Return type:str
defined_tags

[Required] Gets the defined_tags of this SubscriptionSummary. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}

Returns:The defined_tags of this SubscriptionSummary.
Return type:dict(str, dict(str, object))
end_date

Gets the end_date of this ClassicSubscriptionSummary. Subscription end time.

Returns:The end_date of this ClassicSubscriptionSummary.
Return type:datetime
entity_version

[Required] Gets the entity_version of this SubscriptionSummary. The entity version of the subscription, whether V1 (the legacy schema version), or V2 (the latest 20230401 API version).

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

Returns:The entity_version of this SubscriptionSummary.
Return type:str
freeform_tags

[Required] Gets the freeform_tags of this SubscriptionSummary. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}

Returns:The freeform_tags of this SubscriptionSummary.
Return type:dict(str, str)
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

id

[Required] Gets the id of this SubscriptionSummary. The Oracle ID (OCID) of the subscription.

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

Gets the is_classic_subscription of this ClassicSubscriptionSummary. Specifies whether or not the subscription is from classic systems.

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

Gets the lifecycle_state of this ClassicSubscriptionSummary. 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 ClassicSubscriptionSummary.
Return type:str
payment_model

Gets the payment_model of this ClassicSubscriptionSummary. The pay model of the subscription, such as ‘Pay as you go’ or ‘Monthly’.

Returns:The payment_model of this ClassicSubscriptionSummary.
Return type:str
region_assignment

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

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

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

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

Gets the start_date of this ClassicSubscriptionSummary. Subscription start time.

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

[Required] Gets the time_created of this SubscriptionSummary. The date and time of creation, as described in RFC 3339, section 14.29.

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

[Required] Gets the time_updated of this SubscriptionSummary. The date and time of update, as described in RFC 3339, section 14.29.

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