CreateSubscriptionDetails¶
- class oci.self.models.CreateSubscriptionDetails(**kwargs)¶
Bases:
objectThe data to create a Subscription.
Attributes:
A constant which can be used with the source_type property of a CreateSubscriptionDetails.
A constant which can be used with the source_type property of a CreateSubscriptionDetails.
Gets the additional_details of this CreateSubscriptionDetails.
[Required] Gets the compartment_id of this CreateSubscriptionDetails.
Gets the defined_tags of this CreateSubscriptionDetails.
Gets the display_name of this CreateSubscriptionDetails.
Gets the freeform_tags of this CreateSubscriptionDetails.
[Required] Gets the product_id of this CreateSubscriptionDetails.
Gets the realm of this CreateSubscriptionDetails.
Gets the region of this CreateSubscriptionDetails.
[Required] Gets the seller_id of this CreateSubscriptionDetails.
Gets the source_type of this CreateSubscriptionDetails.
[Required] Gets the subscription_details of this CreateSubscriptionDetails.
[Required] Gets the tenant_id of this CreateSubscriptionDetails.
Methods:
__init__(**kwargs)Initializes a new CreateSubscriptionDetails object with values from keyword arguments.
- SOURCE_TYPE_OCI_NATIVE = 'OCI_NATIVE'¶
A constant which can be used with the source_type property of a CreateSubscriptionDetails. 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 CreateSubscriptionDetails. This constant has a value of “THIRD_PARTY”
- __init__(**kwargs)¶
Initializes a new CreateSubscriptionDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
display_name (str) – The value to assign to the display_name property of this CreateSubscriptionDetails.
compartment_id (str) – The value to assign to the compartment_id property of this CreateSubscriptionDetails.
tenant_id (str) – The value to assign to the tenant_id property of this CreateSubscriptionDetails.
subscription_details (oci.self.models.SubscriptionDetails) – The value to assign to the subscription_details property of this CreateSubscriptionDetails.
seller_id (str) – The value to assign to the seller_id property of this CreateSubscriptionDetails.
source_type (str) – The value to assign to the source_type property of this CreateSubscriptionDetails. Allowed values for this property are: “OCI_NATIVE”, “THIRD_PARTY”
product_id (str) – The value to assign to the product_id property of this CreateSubscriptionDetails.
additional_details (list[oci.self.models.ExtendedMetadata]) – The value to assign to the additional_details property of this CreateSubscriptionDetails.
realm (str) – The value to assign to the realm property of this CreateSubscriptionDetails.
region (str) – The value to assign to the region property of this CreateSubscriptionDetails.
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateSubscriptionDetails.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateSubscriptionDetails.
- property additional_details¶
Gets the additional_details of this CreateSubscriptionDetails. Additional details that are specific for this subscription such as activation details.
- Returns
The additional_details of this CreateSubscriptionDetails.
- Return type
- property compartment_id¶
[Required] Gets the compartment_id of this CreateSubscriptionDetails. The OCID of the compartment to create the subscription in.
- Returns
The compartment_id of this CreateSubscriptionDetails.
- Return type
str
- property defined_tags¶
Gets the defined_tags of this CreateSubscriptionDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {“Operations”: {“CostCenter”: “42”}}
- Returns
The defined_tags of this CreateSubscriptionDetails.
- Return type
dict(str, dict(str, object))
- property display_name¶
Gets the display_name of this CreateSubscriptionDetails. The subscription name. Must be unique within the compartment. This value can be updated.
- Returns
The display_name of this CreateSubscriptionDetails.
- Return type
str
- property freeform_tags¶
Gets the freeform_tags of this CreateSubscriptionDetails. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {“Department”: “Finance”}
- Returns
The freeform_tags of this CreateSubscriptionDetails.
- Return type
dict(str, str)
- property product_id¶
[Required] Gets the product_id of this CreateSubscriptionDetails. The unique identifier of the marketplace listing in Oracle Cloud Infrastructure.
- Returns
The product_id of this CreateSubscriptionDetails.
- Return type
str
- property realm¶
Gets the realm of this CreateSubscriptionDetails. The realm from where customer is buying the subscription.
- Returns
The realm of this CreateSubscriptionDetails.
- Return type
str
- property region¶
Gets the region of this CreateSubscriptionDetails. The region from where customer is buying the subscription.
- Returns
The region of this CreateSubscriptionDetails.
- Return type
str
- property seller_id¶
[Required] Gets the seller_id of this CreateSubscriptionDetails. The OCID for the seller in SELF Service.
- Returns
The seller_id of this CreateSubscriptionDetails.
- Return type
str
- property source_type¶
Gets the source_type of this CreateSubscriptionDetails. The type of seller in SELF Service.
Allowed values for this property are: “OCI_NATIVE”, “THIRD_PARTY”
- Returns
The source_type of this CreateSubscriptionDetails.
- Return type
str
- property subscription_details¶
[Required] Gets the subscription_details of this CreateSubscriptionDetails.
- Returns
The subscription_details of this CreateSubscriptionDetails.
- Return type