PartnerSubscription¶
- class oci.self.models.PartnerSubscription(**kwargs)¶
Bases:
objectThese api for partner to communicate to OCI.
Attributes:
A constant which can be used with the lifecycle_details property of a PartnerSubscription.
A constant which can be used with the lifecycle_details property of a PartnerSubscription.
A constant which can be used with the lifecycle_details property of a PartnerSubscription.
A constant which can be used with the lifecycle_details property of a PartnerSubscription.
A constant which can be used with the lifecycle_details property of a PartnerSubscription.
A constant which can be used with the lifecycle_details property of a PartnerSubscription.
A constant which can be used with the lifecycle_details property of a PartnerSubscription.
A constant which can be used with the lifecycle_details property of a PartnerSubscription.
A constant which can be used with the lifecycle_details property of a PartnerSubscription.
A constant which can be used with the lifecycle_details property of a PartnerSubscription.
A constant which can be used with the lifecycle_details property of a PartnerSubscription.
A constant which can be used with the lifecycle_details property of a PartnerSubscription.
A constant which can be used with the lifecycle_details property of a PartnerSubscription.
A constant which can be used with the lifecycle_details property of a PartnerSubscription.
A constant which can be used with the lifecycle_details property of a PartnerSubscription.
A constant which can be used with the lifecycle_state property of a PartnerSubscription.
A constant which can be used with the lifecycle_state property of a PartnerSubscription.
A constant which can be used with the lifecycle_state property of a PartnerSubscription.
A constant which can be used with the lifecycle_state property of a PartnerSubscription.
A constant which can be used with the source_type property of a PartnerSubscription.
A constant which can be used with the source_type property of a PartnerSubscription.
Gets the additional_details of this PartnerSubscription.
Gets the display_name of this PartnerSubscription.
Gets the is_auto_renew of this PartnerSubscription.
Gets the lifecycle_details of this PartnerSubscription.
Gets the lifecycle_state of this PartnerSubscription.
Gets the pricing_plan of this PartnerSubscription.
Gets the product_id of this PartnerSubscription.
Gets the source_type of this PartnerSubscription.
[Required] Gets the subscription_id of this PartnerSubscription.
Gets the time_created of this PartnerSubscription.
Gets the time_ended of this PartnerSubscription.
Gets the time_started of this PartnerSubscription.
Gets 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_CANCELED = 'CANCELED'¶
A constant which can be used with the lifecycle_details property of a PartnerSubscription. This constant has a value of “CANCELED”
- 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_PENDING_CANCELLATION = 'PENDING_CANCELLATION'¶
A constant which can be used with the lifecycle_details property of a PartnerSubscription. This constant has a value of “PENDING_CANCELLATION”
- 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_SUSPENDED = 'SUSPENDED'¶
A constant which can be used with the lifecycle_details property of a PartnerSubscription. This constant has a value of “SUSPENDED”
- 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”, “PENDING_CANCELLATION”, “SUSPENDED”, “CANCELED”, ‘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.
- property 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
- property 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
- property 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
- property 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”, “PENDING_CANCELLATION”, “SUSPENDED”, “CANCELED”, ‘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
- property 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
- property pricing_plan¶
Gets the pricing_plan of this PartnerSubscription.
- Returns
The pricing_plan of this PartnerSubscription.
- Return type
- property 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
- property 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
- property 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
- property 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
- property 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