Subscription¶
-
class
oci.tenant_manager_control_plane.models.
Subscription
(**kwargs)¶ Bases:
object
Subscription information for compartmentId. Only root compartments are allowed.
Attributes
LIFECYCLE_STATE_ACTIVE
A constant which can be used with the lifecycle_state property of a Subscription. LIFECYCLE_STATE_CREATING
A constant which can be used with the lifecycle_state property of a Subscription. LIFECYCLE_STATE_DELETED
A constant which can be used with the lifecycle_state property of a Subscription. LIFECYCLE_STATE_DELETING
A constant which can be used with the lifecycle_state property of a Subscription. LIFECYCLE_STATE_FAILED
A constant which can be used with the lifecycle_state property of a Subscription. LIFECYCLE_STATE_INACTIVE
A constant which can be used with the lifecycle_state property of a Subscription. LIFECYCLE_STATE_UPDATING
A constant which can be used with the lifecycle_state property of a Subscription. classic_subscription_id
[Required] Gets the classic_subscription_id of this Subscription. compartment_id
[Required] Gets the compartment_id of this Subscription. end_date
Gets the end_date of this Subscription. id
[Required] Gets the id of this Subscription. is_classic_subscription
Gets the is_classic_subscription of this Subscription. lifecycle_state
Gets the lifecycle_state of this Subscription. payment_model
Gets the payment_model of this Subscription. region_assignment
Gets the region_assignment of this Subscription. service_name
[Required] Gets the service_name of this Subscription. skus
Gets the skus of this Subscription. start_date
Gets the start_date of this Subscription. time_created
Gets the time_created of this Subscription. time_updated
Gets the time_updated of this Subscription. Methods
__init__
(**kwargs)Initializes a new Subscription object with values from keyword arguments. -
LIFECYCLE_STATE_ACTIVE
= 'ACTIVE'¶ A constant which can be used with the lifecycle_state property of a Subscription. This constant has a value of “ACTIVE”
-
LIFECYCLE_STATE_CREATING
= 'CREATING'¶ A constant which can be used with the lifecycle_state property of a Subscription. This constant has a value of “CREATING”
-
LIFECYCLE_STATE_DELETED
= 'DELETED'¶ A constant which can be used with the lifecycle_state property of a Subscription. This constant has a value of “DELETED”
-
LIFECYCLE_STATE_DELETING
= 'DELETING'¶ A constant which can be used with the lifecycle_state property of a Subscription. This constant has a value of “DELETING”
-
LIFECYCLE_STATE_FAILED
= 'FAILED'¶ A constant which can be used with the lifecycle_state property of a Subscription. This constant has a value of “FAILED”
-
LIFECYCLE_STATE_INACTIVE
= 'INACTIVE'¶ A constant which can be used with the lifecycle_state property of a Subscription. This constant has a value of “INACTIVE”
-
LIFECYCLE_STATE_UPDATING
= 'UPDATING'¶ A constant which can be used with the lifecycle_state property of a Subscription. This constant has a value of “UPDATING”
-
__init__
(**kwargs)¶ Initializes a new Subscription 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 Subscription.
- classic_subscription_id (str) – The value to assign to the classic_subscription_id property of this Subscription.
- compartment_id (str) – The value to assign to the compartment_id property of this Subscription.
- service_name (str) – The value to assign to the service_name property of this Subscription.
- is_classic_subscription (bool) – The value to assign to the is_classic_subscription property of this Subscription.
- payment_model (str) – The value to assign to the payment_model property of this Subscription.
- region_assignment (str) – The value to assign to the region_assignment property of this Subscription.
- lifecycle_state (str) – The value to assign to the lifecycle_state property of this 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’.
- skus (list[oci.tenant_manager_control_plane.models.SubscriptionSku]) – The value to assign to the skus property of this Subscription.
- start_date (datetime) – The value to assign to the start_date property of this Subscription.
- end_date (datetime) – The value to assign to the end_date property of this Subscription.
- time_updated (datetime) – The value to assign to the time_updated property of this Subscription.
- time_created (datetime) – The value to assign to the time_created property of this Subscription.
-
classic_subscription_id
¶ [Required] Gets the classic_subscription_id of this Subscription. Classic subscription ID.
Returns: The classic_subscription_id of this Subscription. Return type: str
-
compartment_id
¶ [Required] Gets the compartment_id of this Subscription. OCID of the compartment. Always a tenancy OCID.
Returns: The compartment_id of this Subscription. Return type: str
-
end_date
¶ Gets the end_date of this Subscription. Subscription end time.
Returns: The end_date of this Subscription. Return type: datetime
-
id
¶ [Required] Gets the id of this Subscription. OCID of the subscription details for the particular root compartment or tenancy.
Returns: The id of this Subscription. Return type: str
-
is_classic_subscription
¶ Gets the is_classic_subscription of this Subscription. Denotes if the subscription is from classic systems or not.
Returns: The is_classic_subscription of this Subscription. Return type: bool
-
lifecycle_state
¶ Gets the lifecycle_state of this Subscription. 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 Subscription. Return type: str
-
payment_model
¶ Gets the payment_model of this Subscription. The pay model of the subscription, such as ‘Pay as you go’ or ‘Monthly’.
Returns: The payment_model of this Subscription. Return type: str
-
region_assignment
¶ Gets the region_assignment of this Subscription. Region for the subscription.
Returns: The region_assignment of this Subscription. Return type: str
-
service_name
¶ [Required] Gets the service_name of this Subscription. The type of subscription, such as ‘CLOUDCM’, ‘SAAS’, ‘ERP’, or ‘CRM’.
Returns: The service_name of this Subscription. Return type: str
-
skus
¶ Gets the skus of this Subscription. List of SKUs linked to this subscription.
Returns: The skus of this Subscription. Return type: list[oci.tenant_manager_control_plane.models.SubscriptionSku]
-
start_date
¶ Gets the start_date of this Subscription. Subscription start time.
Returns: The start_date of this Subscription. Return type: datetime
-
time_created
¶ Gets the time_created of this Subscription. Date-time when subscription is created.
Returns: The time_created of this Subscription. Return type: datetime
-
time_updated
¶ Gets the time_updated of this Subscription. Date-time when subscription is updated.
Returns: The time_updated of this Subscription. Return type: datetime
-