LicenseRecord¶
- class oci.license_manager.models.LicenseRecord(**kwargs)¶
Bases:
objectLicense record summary.
Attributes:
A constant which can be used with the license_unit property of a LicenseRecord.
A constant which can be used with the license_unit property of a LicenseRecord.
A constant which can be used with the license_unit property of a LicenseRecord.
A constant which can be used with the lifecycle_state property of a LicenseRecord.
A constant which can be used with the lifecycle_state property of a LicenseRecord.
A constant which can be used with the lifecycle_state property of a LicenseRecord.
Gets the compartment_id of this LicenseRecord.
Gets the defined_tags of this LicenseRecord.
[Required] Gets the display_name of this LicenseRecord.
Gets the expiration_date of this LicenseRecord.
Gets the freeform_tags of this LicenseRecord.
[Required] Gets the id of this LicenseRecord.
[Required] Gets the is_perpetual of this LicenseRecord.
[Required] Gets the is_unlimited of this LicenseRecord.
Gets the license_count of this LicenseRecord.
Gets the license_unit of this LicenseRecord.
[Required] Gets the lifecycle_state of this LicenseRecord.
Gets the product_id of this LicenseRecord.
Gets the product_license of this LicenseRecord.
Gets the product_license_id of this LicenseRecord.
Gets the support_end_date of this LicenseRecord.
Gets the system_tags of this LicenseRecord.
Gets the time_created of this LicenseRecord.
Gets the time_updated of this LicenseRecord.
Methods:
__init__(**kwargs)Initializes a new LicenseRecord object with values from keyword arguments.
- LICENSE_UNIT_NAMED_USER_PLUS = 'NAMED_USER_PLUS'¶
A constant which can be used with the license_unit property of a LicenseRecord. This constant has a value of “NAMED_USER_PLUS”
- LICENSE_UNIT_OCPU = 'OCPU'¶
A constant which can be used with the license_unit property of a LicenseRecord. This constant has a value of “OCPU”
- LICENSE_UNIT_PROCESSORS = 'PROCESSORS'¶
A constant which can be used with the license_unit property of a LicenseRecord. This constant has a value of “PROCESSORS”
- LIFECYCLE_STATE_ACTIVE = 'ACTIVE'¶
A constant which can be used with the lifecycle_state property of a LicenseRecord. This constant has a value of “ACTIVE”
- LIFECYCLE_STATE_DELETED = 'DELETED'¶
A constant which can be used with the lifecycle_state property of a LicenseRecord. This constant has a value of “DELETED”
- LIFECYCLE_STATE_INACTIVE = 'INACTIVE'¶
A constant which can be used with the lifecycle_state property of a LicenseRecord. This constant has a value of “INACTIVE”
- __init__(**kwargs)¶
Initializes a new LicenseRecord object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
id (str) – The value to assign to the id property of this LicenseRecord.
product_license_id (str) – The value to assign to the product_license_id property of this LicenseRecord.
compartment_id (str) – The value to assign to the compartment_id property of this LicenseRecord.
display_name (str) – The value to assign to the display_name property of this LicenseRecord.
product_id (str) – The value to assign to the product_id property of this LicenseRecord.
license_count (int) – The value to assign to the license_count property of this LicenseRecord.
expiration_date (datetime) – The value to assign to the expiration_date property of this LicenseRecord.
support_end_date (datetime) – The value to assign to the support_end_date property of this LicenseRecord.
is_unlimited (bool) – The value to assign to the is_unlimited property of this LicenseRecord.
is_perpetual (bool) – The value to assign to the is_perpetual property of this LicenseRecord.
time_created (datetime) – The value to assign to the time_created property of this LicenseRecord.
time_updated (datetime) – The value to assign to the time_updated property of this LicenseRecord.
lifecycle_state (str) – The value to assign to the lifecycle_state property of this LicenseRecord. Allowed values for this property are: “ACTIVE”, “INACTIVE”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
license_unit (str) – The value to assign to the license_unit property of this LicenseRecord. Allowed values for this property are: “OCPU”, “NAMED_USER_PLUS”, “PROCESSORS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
product_license (str) – The value to assign to the product_license property of this LicenseRecord.
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this LicenseRecord.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this LicenseRecord.
system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this LicenseRecord.
- property compartment_id¶
Gets the compartment_id of this LicenseRecord. The compartment OCID where the license record is created.
- Returns
The compartment_id of this LicenseRecord.
- Return type
str
- property defined_tags¶
Gets the defined_tags of this LicenseRecord. 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 LicenseRecord.
- Return type
dict(str, dict(str, object))
- property display_name¶
[Required] Gets the display_name of this LicenseRecord. The license record display name. Avoid entering confidential information.
- Returns
The display_name of this LicenseRecord.
- Return type
str
- property expiration_date¶
Gets the expiration_date of this LicenseRecord. The license record end date in RFC 3339 date format. Example: 2018-09-12
- Returns
The expiration_date of this LicenseRecord.
- Return type
datetime
- property freeform_tags¶
Gets the freeform_tags of this LicenseRecord. 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 LicenseRecord.
- Return type
dict(str, str)
- property id¶
[Required] Gets the id of this LicenseRecord. The license record OCID.
- Returns
The id of this LicenseRecord.
- Return type
str
- property is_perpetual¶
[Required] Gets the is_perpetual of this LicenseRecord. Specifies if the license record term is perpertual.
- Returns
The is_perpetual of this LicenseRecord.
- Return type
bool
- property is_unlimited¶
[Required] Gets the is_unlimited of this LicenseRecord. Specifies if the license count is unlimited.
- Returns
The is_unlimited of this LicenseRecord.
- Return type
bool
- property license_count¶
Gets the license_count of this LicenseRecord. The number of license units added by the user for the given license record. Default 1
- Returns
The license_count of this LicenseRecord.
- Return type
int
- property license_unit¶
Gets the license_unit of this LicenseRecord. The product license unit.
Allowed values for this property are: “OCPU”, “NAMED_USER_PLUS”, “PROCESSORS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The license_unit of this LicenseRecord.
- Return type
str
- property lifecycle_state¶
[Required] Gets the lifecycle_state of this LicenseRecord. The current license record state.
Allowed values for this property are: “ACTIVE”, “INACTIVE”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The lifecycle_state of this LicenseRecord.
- Return type
str
- property product_id¶
Gets the product_id of this LicenseRecord. The license record product ID.
- Returns
The product_id of this LicenseRecord.
- Return type
str
- property product_license¶
Gets the product_license of this LicenseRecord. The product license name with which the license record is associated.
- Returns
The product_license of this LicenseRecord.
- Return type
str
- property product_license_id¶
Gets the product_license_id of this LicenseRecord. The product license OCID with which the license record is associated.
- Returns
The product_license_id of this LicenseRecord.
- Return type
str
- property support_end_date¶
Gets the support_end_date of this LicenseRecord. The license record support end date in RFC 3339 date format. Example: 2018-09-12
- Returns
The support_end_date of this LicenseRecord.
- Return type
datetime
- property system_tags¶
Gets the system_tags of this LicenseRecord. Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Returns
The system_tags of this LicenseRecord.
- Return type
dict(str, dict(str, object))