AssignedSubscription¶
-
class
oci.tenant_manager_control_plane.models.
AssignedSubscription
(**kwargs)¶ Bases:
object
Assigned subscription type, which carries shared properties for any assigned subscription version.
Attributes
ENTITY_VERSION_V1
A constant which can be used with the entity_version property of a AssignedSubscription. ENTITY_VERSION_V2
A constant which can be used with the entity_version property of a AssignedSubscription. compartment_id
[Required] Gets the compartment_id of this AssignedSubscription. defined_tags
[Required] Gets the defined_tags of this AssignedSubscription. entity_version
[Required] Gets the entity_version of this AssignedSubscription. freeform_tags
[Required] Gets the freeform_tags of this AssignedSubscription. id
[Required] Gets the id of this AssignedSubscription. service_name
[Required] Gets the service_name of this AssignedSubscription. time_created
[Required] Gets the time_created of this AssignedSubscription. time_updated
[Required] Gets the time_updated of this AssignedSubscription. Methods
__init__
(**kwargs)Initializes a new AssignedSubscription object with values from keyword arguments. get_subtype
(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. -
ENTITY_VERSION_V1
= 'V1'¶ A constant which can be used with the entity_version property of a AssignedSubscription. This constant has a value of “V1”
-
ENTITY_VERSION_V2
= 'V2'¶ A constant which can be used with the entity_version property of a AssignedSubscription. This constant has a value of “V2”
-
__init__
(**kwargs)¶ Initializes a new AssignedSubscription object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:
The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - entity_version (str) – The value to assign to the entity_version property of this AssignedSubscription. Allowed values for this property are: “V1”, “V2”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- id (str) – The value to assign to the id property of this AssignedSubscription.
- compartment_id (str) – The value to assign to the compartment_id property of this AssignedSubscription.
- service_name (str) – The value to assign to the service_name property of this AssignedSubscription.
- time_created (datetime) – The value to assign to the time_created property of this AssignedSubscription.
- time_updated (datetime) – The value to assign to the time_updated property of this AssignedSubscription.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this AssignedSubscription.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this AssignedSubscription.
-
compartment_id
¶ [Required] Gets the compartment_id of this AssignedSubscription. The Oracle ID (OCID) of the owning compartment. Always a tenancy OCID.
Returns: The compartment_id of this AssignedSubscription. Return type: str
[Required] Gets the defined_tags of this AssignedSubscription. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
Returns: The defined_tags of this AssignedSubscription. Return type: dict(str, dict(str, object))
-
entity_version
¶ [Required] Gets the entity_version of this AssignedSubscription. The entity version of the subscription, whether V1 (the legacy schema version), or V2 (the latest 20230401 API version).
Allowed values for this property are: “V1”, “V2”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The entity_version of this AssignedSubscription. Return type: str
[Required] Gets the freeform_tags of this AssignedSubscription. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}
Returns: The freeform_tags of this AssignedSubscription. Return type: dict(str, str)
-
static
get_subtype
(object_dictionary)¶ Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
-
id
¶ [Required] Gets the id of this AssignedSubscription. The Oracle ID (OCID) of the subscription.
Returns: The id of this AssignedSubscription. Return type: str
-
service_name
¶ [Required] Gets the service_name of this AssignedSubscription. The type of subscription, such as ‘UCM’, ‘SAAS’, ‘ERP’, ‘CRM’.
Returns: The service_name of this AssignedSubscription. Return type: str
-