PartnerSubscription¶
-
class
oci.self.models.PartnerSubscription(**kwargs)¶ Bases:
objectThese api for partner to communicate to OCI.
Attributes
LIFECYCLE_DETAILS_ACTIVEA constant which can be used with the lifecycle_details property of a PartnerSubscription. LIFECYCLE_DETAILS_CREATEDA constant which can be used with the lifecycle_details property of a PartnerSubscription. LIFECYCLE_DETAILS_DELETEDA constant which can be used with the lifecycle_details property of a PartnerSubscription. LIFECYCLE_DETAILS_DELETINGA constant which can be used with the lifecycle_details property of a PartnerSubscription. LIFECYCLE_DETAILS_EXPIREDA constant which can be used with the lifecycle_details property of a PartnerSubscription. LIFECYCLE_DETAILS_FAILEDA constant which can be used with the lifecycle_details property of a PartnerSubscription. LIFECYCLE_DETAILS_PENDING_ACTIVATIONA constant which can be used with the lifecycle_details property of a PartnerSubscription. LIFECYCLE_DETAILS_PROVISIONING_COMPLETEDA constant which can be used with the lifecycle_details property of a PartnerSubscription. LIFECYCLE_DETAILS_PROVISIONING_FAILEDA constant which can be used with the lifecycle_details property of a PartnerSubscription. LIFECYCLE_DETAILS_PROVISIONING_STARTEDA constant which can be used with the lifecycle_details property of a PartnerSubscription. LIFECYCLE_DETAILS_TERMINATEDA constant which can be used with the lifecycle_details property of a PartnerSubscription. LIFECYCLE_DETAILS_UPDATINGA constant which can be used with the lifecycle_details property of a PartnerSubscription. LIFECYCLE_STATE_ACTIVEA constant which can be used with the lifecycle_state property of a PartnerSubscription. LIFECYCLE_STATE_DELETEDA constant which can be used with the lifecycle_state property of a PartnerSubscription. LIFECYCLE_STATE_FAILEDA constant which can be used with the lifecycle_state property of a PartnerSubscription. LIFECYCLE_STATE_INACTIVEA constant which can be used with the lifecycle_state property of a PartnerSubscription. SOURCE_TYPE_OCI_NATIVEA constant which can be used with the source_type property of a PartnerSubscription. SOURCE_TYPE_THIRD_PARTYA constant which can be used with the source_type property of a PartnerSubscription. additional_detailsGets the additional_details of this PartnerSubscription. display_nameGets the display_name of this PartnerSubscription. is_auto_renewGets the is_auto_renew of this PartnerSubscription. lifecycle_detailsGets the lifecycle_details of this PartnerSubscription. lifecycle_stateGets the lifecycle_state of this PartnerSubscription. pricing_planGets the pricing_plan of this PartnerSubscription. product_idGets the product_id of this PartnerSubscription. source_typeGets the source_type of this PartnerSubscription. subscription_id[Required] Gets the subscription_id of this PartnerSubscription. time_createdGets the time_created of this PartnerSubscription. time_endedGets the time_ended of this PartnerSubscription. time_startedGets the time_started of this PartnerSubscription. time_updatedGets the time_updated of this PartnerSubscription. Methods
__init__(**kwargs)Initializes a new PartnerSubscription object with values from keyword arguments. -
LIFECYCLE_DETAILS_ACTIVE= 'ACTIVE'¶ A constant which can be used with the lifecycle_details property of a PartnerSubscription. This constant has a value of “ACTIVE”
-
LIFECYCLE_DETAILS_CREATED= 'CREATED'¶ A constant which can be used with the lifecycle_details property of a PartnerSubscription. This constant has a value of “CREATED”
-
LIFECYCLE_DETAILS_DELETED= 'DELETED'¶ A constant which can be used with the lifecycle_details property of a PartnerSubscription. This constant has a value of “DELETED”
-
LIFECYCLE_DETAILS_DELETING= 'DELETING'¶ A constant which can be used with the lifecycle_details property of a PartnerSubscription. This constant has a value of “DELETING”
-
LIFECYCLE_DETAILS_EXPIRED= 'EXPIRED'¶ A constant which can be used with the lifecycle_details property of a PartnerSubscription. This constant has a value of “EXPIRED”
-
LIFECYCLE_DETAILS_FAILED= 'FAILED'¶ A constant which can be used with the lifecycle_details property of a PartnerSubscription. This constant has a value of “FAILED”
-
LIFECYCLE_DETAILS_PENDING_ACTIVATION= 'PENDING_ACTIVATION'¶ A constant which can be used with the lifecycle_details property of a PartnerSubscription. This constant has a value of “PENDING_ACTIVATION”
-
LIFECYCLE_DETAILS_PROVISIONING_COMPLETED= 'PROVISIONING_COMPLETED'¶ A constant which can be used with the lifecycle_details property of a PartnerSubscription. This constant has a value of “PROVISIONING_COMPLETED”
-
LIFECYCLE_DETAILS_PROVISIONING_FAILED= 'PROVISIONING_FAILED'¶ A constant which can be used with the lifecycle_details property of a PartnerSubscription. This constant has a value of “PROVISIONING_FAILED”
-
LIFECYCLE_DETAILS_PROVISIONING_STARTED= 'PROVISIONING_STARTED'¶ A constant which can be used with the lifecycle_details property of a PartnerSubscription. This constant has a value of “PROVISIONING_STARTED”
-
LIFECYCLE_DETAILS_TERMINATED= 'TERMINATED'¶ A constant which can be used with the lifecycle_details property of a PartnerSubscription. This constant has a value of “TERMINATED”
-
LIFECYCLE_DETAILS_UPDATING= 'UPDATING'¶ A constant which can be used with the lifecycle_details property of a PartnerSubscription. This constant has a value of “UPDATING”
-
LIFECYCLE_STATE_ACTIVE= 'ACTIVE'¶ A constant which can be used with the lifecycle_state property of a PartnerSubscription. This constant has a value of “ACTIVE”
-
LIFECYCLE_STATE_DELETED= 'DELETED'¶ A constant which can be used with the lifecycle_state property of a PartnerSubscription. This constant has a value of “DELETED”
-
LIFECYCLE_STATE_FAILED= 'FAILED'¶ A constant which can be used with the lifecycle_state property of a PartnerSubscription. This constant has a value of “FAILED”
-
LIFECYCLE_STATE_INACTIVE= 'INACTIVE'¶ A constant which can be used with the lifecycle_state property of a PartnerSubscription. This constant has a value of “INACTIVE”
-
SOURCE_TYPE_OCI_NATIVE= 'OCI_NATIVE'¶ A constant which can be used with the source_type property of a PartnerSubscription. This constant has a value of “OCI_NATIVE”
-
SOURCE_TYPE_THIRD_PARTY= 'THIRD_PARTY'¶ A constant which can be used with the source_type property of a PartnerSubscription. This constant has a value of “THIRD_PARTY”
-
__init__(**kwargs)¶ Initializes a new PartnerSubscription object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - subscription_id (str) – The value to assign to the subscription_id property of this PartnerSubscription.
- display_name (str) – The value to assign to the display_name property of this PartnerSubscription.
- pricing_plan (oci.self.models.PricingPlan) – The value to assign to the pricing_plan property of this PartnerSubscription.
- source_type (str) – The value to assign to the source_type property of this PartnerSubscription. Allowed values for this property are: “OCI_NATIVE”, “THIRD_PARTY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- product_id (str) – The value to assign to the product_id property of this PartnerSubscription.
- is_auto_renew (bool) – The value to assign to the is_auto_renew property of this PartnerSubscription.
- additional_details (list[oci.self.models.ExtendedMetadata]) – The value to assign to the additional_details property of this PartnerSubscription.
- lifecycle_state (str) – The value to assign to the lifecycle_state property of this PartnerSubscription. Allowed values for this property are: “ACTIVE”, “INACTIVE”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- lifecycle_details (str) – The value to assign to the lifecycle_details property of this PartnerSubscription. Allowed values for this property are: “CREATED”, “PENDING_ACTIVATION”, “PROVISIONING_STARTED”, “PROVISIONING_COMPLETED”, “PROVISIONING_FAILED”, “ACTIVE”, “EXPIRED”, “TERMINATED”, “FAILED”, “DELETING”, “UPDATING”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- time_started (datetime) – The value to assign to the time_started property of this PartnerSubscription.
- time_ended (datetime) – The value to assign to the time_ended property of this PartnerSubscription.
- time_created (datetime) – The value to assign to the time_created property of this PartnerSubscription.
- time_updated (datetime) – The value to assign to the time_updated property of this PartnerSubscription.
-
additional_details¶ Gets the additional_details of this PartnerSubscription. Additional details that are specific for this subscription such as activation details.
Returns: The additional_details of this PartnerSubscription. Return type: list[oci.self.models.ExtendedMetadata]
-
display_name¶ Gets the display_name of this PartnerSubscription. The subscription name. Must be unique within the compartment. This value can be updated.
Returns: The display_name of this PartnerSubscription. Return type: str
-
is_auto_renew¶ Gets the is_auto_renew of this PartnerSubscription. Whether subscription should be auto-renewed at the end of cycle.
Returns: The is_auto_renew of this PartnerSubscription. Return type: bool
-
lifecycle_details¶ Gets the lifecycle_details of this PartnerSubscription. A message that describes the current state of the Subscription in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
Allowed values for this property are: “CREATED”, “PENDING_ACTIVATION”, “PROVISIONING_STARTED”, “PROVISIONING_COMPLETED”, “PROVISIONING_FAILED”, “ACTIVE”, “EXPIRED”, “TERMINATED”, “FAILED”, “DELETING”, “UPDATING”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The lifecycle_details of this PartnerSubscription. Return type: str
-
lifecycle_state¶ Gets the lifecycle_state of this PartnerSubscription. The current state of the Subscription.
Allowed values for this property are: “ACTIVE”, “INACTIVE”, “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 PartnerSubscription. Return type: str
-
pricing_plan¶ Gets the pricing_plan of this PartnerSubscription.
Returns: The pricing_plan of this PartnerSubscription. Return type: oci.self.models.PricingPlan
-
product_id¶ Gets the product_id of this PartnerSubscription. The unique OCID of the product, effectively functioning as the listing ID.
Returns: The product_id of this PartnerSubscription. Return type: str
-
source_type¶ Gets the source_type of this PartnerSubscription. The type of seller in SELF Service.
Allowed values for this property are: “OCI_NATIVE”, “THIRD_PARTY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The source_type of this PartnerSubscription. Return type: str
-
subscription_id¶ [Required] Gets the subscription_id of this PartnerSubscription. The unique identifier of the Subscription.
Returns: The subscription_id of this PartnerSubscription. Return type: str
-
time_created¶ Gets the time_created of this PartnerSubscription. The date and time the Subscription was created, in the format defined by RFC 3339.
Example: 2016-08-25T21:10:29.600Z
Returns: The time_created of this PartnerSubscription. Return type: datetime
-
time_ended¶ Gets the time_ended of this PartnerSubscription. The date and time the Subscription was ended, in the format defined by RFC 3339.
Example: 2016-08-25T21:10:29.600Z
Returns: The time_ended of this PartnerSubscription. Return type: datetime
-