CreateSubscriptionDetails

class oci.self.models.CreateSubscriptionDetails(**kwargs)

Bases: object

The data to create a Subscription.

Attributes

SOURCE_TYPE_OCI_NATIVE A constant which can be used with the source_type property of a CreateSubscriptionDetails.
SOURCE_TYPE_THIRD_PARTY A constant which can be used with the source_type property of a CreateSubscriptionDetails.
additional_details Gets the additional_details of this CreateSubscriptionDetails.
compartment_id [Required] Gets the compartment_id of this CreateSubscriptionDetails.
defined_tags Gets the defined_tags of this CreateSubscriptionDetails.
display_name Gets the display_name of this CreateSubscriptionDetails.
freeform_tags Gets the freeform_tags of this CreateSubscriptionDetails.
product_id [Required] Gets the product_id of this CreateSubscriptionDetails.
realm Gets the realm of this CreateSubscriptionDetails.
region Gets the region of this CreateSubscriptionDetails.
seller_id [Required] Gets the seller_id of this CreateSubscriptionDetails.
source_type Gets the source_type of this CreateSubscriptionDetails.
subscription_details [Required] Gets the subscription_details of this CreateSubscriptionDetails.
tenant_id [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.
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:list[oci.self.models.ExtendedMetadata]
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
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))
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
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)
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
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
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
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
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
subscription_details

[Required] Gets the subscription_details of this CreateSubscriptionDetails.

Returns:The subscription_details of this CreateSubscriptionDetails.
Return type:oci.self.models.SubscriptionDetails
tenant_id

[Required] Gets the tenant_id of this CreateSubscriptionDetails. The OCID of the tenant to create the subscription in.

Returns:The tenant_id of this CreateSubscriptionDetails.
Return type:str