ProductLicense

class oci.license_manager.models.ProductLicense(**kwargs)

Bases: object

The product license details.

Attributes

LICENSE_UNIT_NAMED_USER_PLUS A constant which can be used with the license_unit property of a ProductLicense.
LICENSE_UNIT_OCPU A constant which can be used with the license_unit property of a ProductLicense.
LICENSE_UNIT_PROCESSORS A constant which can be used with the license_unit property of a ProductLicense.
LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a ProductLicense.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a ProductLicense.
LIFECYCLE_STATE_INACTIVE A constant which can be used with the lifecycle_state property of a ProductLicense.
STATUS_INCOMPLETE A constant which can be used with the status property of a ProductLicense.
STATUS_ISSUES_FOUND A constant which can be used with the status property of a ProductLicense.
STATUS_OK A constant which can be used with the status property of a ProductLicense.
STATUS_WARNING A constant which can be used with the status property of a ProductLicense.
active_license_record_count Gets the active_license_record_count of this ProductLicense.
compartment_id [Required] Gets the compartment_id of this ProductLicense.
defined_tags Gets the defined_tags of this ProductLicense.
display_name [Required] Gets the display_name of this ProductLicense.
freeform_tags Gets the freeform_tags of this ProductLicense.
id [Required] Gets the id of this ProductLicense.
images Gets the images of this ProductLicense.
is_over_subscribed Gets the is_over_subscribed of this ProductLicense.
is_unlimited Gets the is_unlimited of this ProductLicense.
is_vendor_oracle [Required] Gets the is_vendor_oracle of this ProductLicense.
license_unit [Required] Gets the license_unit of this ProductLicense.
lifecycle_state Gets the lifecycle_state of this ProductLicense.
status [Required] Gets the status of this ProductLicense.
status_description Gets the status_description of this ProductLicense.
system_tags Gets the system_tags of this ProductLicense.
time_created Gets the time_created of this ProductLicense.
time_updated Gets the time_updated of this ProductLicense.
total_active_license_unit_count Gets the total_active_license_unit_count of this ProductLicense.
total_license_record_count Gets the total_license_record_count of this ProductLicense.
total_license_units_consumed Gets the total_license_units_consumed of this ProductLicense.
vendor_name Gets the vendor_name of this ProductLicense.

Methods

__init__(**kwargs) Initializes a new ProductLicense 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 ProductLicense. 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 ProductLicense. This constant has a value of “OCPU”

LICENSE_UNIT_PROCESSORS = 'PROCESSORS'

A constant which can be used with the license_unit property of a ProductLicense. This constant has a value of “PROCESSORS”

LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

A constant which can be used with the lifecycle_state property of a ProductLicense. This constant has a value of “ACTIVE”

LIFECYCLE_STATE_DELETED = 'DELETED'

A constant which can be used with the lifecycle_state property of a ProductLicense. This constant has a value of “DELETED”

LIFECYCLE_STATE_INACTIVE = 'INACTIVE'

A constant which can be used with the lifecycle_state property of a ProductLicense. This constant has a value of “INACTIVE”

STATUS_INCOMPLETE = 'INCOMPLETE'

A constant which can be used with the status property of a ProductLicense. This constant has a value of “INCOMPLETE”

STATUS_ISSUES_FOUND = 'ISSUES_FOUND'

A constant which can be used with the status property of a ProductLicense. This constant has a value of “ISSUES_FOUND”

STATUS_OK = 'OK'

A constant which can be used with the status property of a ProductLicense. This constant has a value of “OK”

STATUS_WARNING = 'WARNING'

A constant which can be used with the status property of a ProductLicense. This constant has a value of “WARNING”

__init__(**kwargs)

Initializes a new ProductLicense 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 ProductLicense.
  • compartment_id (str) – The value to assign to the compartment_id property of this ProductLicense.
  • status (str) – The value to assign to the status property of this ProductLicense. Allowed values for this property are: “INCOMPLETE”, “ISSUES_FOUND”, “WARNING”, “OK”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • status_description (str) – The value to assign to the status_description property of this ProductLicense.
  • total_active_license_unit_count (int) – The value to assign to the total_active_license_unit_count property of this ProductLicense.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this ProductLicense. 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’.
  • total_license_units_consumed (float) – The value to assign to the total_license_units_consumed property of this ProductLicense.
  • total_license_record_count (int) – The value to assign to the total_license_record_count property of this ProductLicense.
  • active_license_record_count (int) – The value to assign to the active_license_record_count property of this ProductLicense.
  • license_unit (str) – The value to assign to the license_unit property of this ProductLicense. 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’.
  • is_vendor_oracle (bool) – The value to assign to the is_vendor_oracle property of this ProductLicense.
  • is_over_subscribed (bool) – The value to assign to the is_over_subscribed property of this ProductLicense.
  • is_unlimited (bool) – The value to assign to the is_unlimited property of this ProductLicense.
  • display_name (str) – The value to assign to the display_name property of this ProductLicense.
  • vendor_name (str) – The value to assign to the vendor_name property of this ProductLicense.
  • time_created (datetime) – The value to assign to the time_created property of this ProductLicense.
  • time_updated (datetime) – The value to assign to the time_updated property of this ProductLicense.
  • images (list[oci.license_manager.models.ImageResponse]) – The value to assign to the images property of this ProductLicense.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this ProductLicense.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this ProductLicense.
  • system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this ProductLicense.
active_license_record_count

Gets the active_license_record_count of this ProductLicense. The number of active license records associated with the product license.

Returns:The active_license_record_count of this ProductLicense.
Return type:int
compartment_id

[Required] Gets the compartment_id of this ProductLicense. The compartment OCID where the product license is created.

Returns:The compartment_id of this ProductLicense.
Return type:str
defined_tags

Gets the defined_tags of this ProductLicense. 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 ProductLicense.
Return type:dict(str, dict(str, object))
display_name

[Required] Gets the display_name of this ProductLicense. License record name

Returns:The display_name of this ProductLicense.
Return type:str
freeform_tags

Gets the freeform_tags of this ProductLicense. 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 ProductLicense.
Return type:dict(str, str)
id

[Required] Gets the id of this ProductLicense. The product license OCID.

Returns:The id of this ProductLicense.
Return type:str
images

Gets the images of this ProductLicense. The images associated with the product license.

Returns:The images of this ProductLicense.
Return type:list[oci.license_manager.models.ImageResponse]
is_over_subscribed

Gets the is_over_subscribed of this ProductLicense. Specifies whether or not the product license is oversubscribed.

Returns:The is_over_subscribed of this ProductLicense.
Return type:bool
is_unlimited

Gets the is_unlimited of this ProductLicense. Specifies if the license unit count is unlimited.

Returns:The is_unlimited of this ProductLicense.
Return type:bool
is_vendor_oracle

[Required] Gets the is_vendor_oracle of this ProductLicense. Specifies whether the vendor is Oracle or a third party.

Returns:The is_vendor_oracle of this ProductLicense.
Return type:bool
license_unit

[Required] Gets the license_unit of this ProductLicense. 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 ProductLicense.
Return type:str
lifecycle_state

Gets the lifecycle_state of this ProductLicense. The current product license 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 ProductLicense.
Return type:str
status

[Required] Gets the status of this ProductLicense. The current product license status.

Allowed values for this property are: “INCOMPLETE”, “ISSUES_FOUND”, “WARNING”, “OK”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The status of this ProductLicense.
Return type:str
status_description

Gets the status_description of this ProductLicense. Status description for the current product license status.

Returns:The status_description of this ProductLicense.
Return type:str
system_tags

Gets the system_tags of this ProductLicense. 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 ProductLicense.
Return type:dict(str, dict(str, object))
time_created

Gets the time_created of this ProductLicense. The time the product license was created. An RFC 3339-formatted datetime string.

Returns:The time_created of this ProductLicense.
Return type:datetime
time_updated

Gets the time_updated of this ProductLicense. The time the product license was updated. An RFC 3339-formatted datetime string.

Returns:The time_updated of this ProductLicense.
Return type:datetime
total_active_license_unit_count

Gets the total_active_license_unit_count of this ProductLicense. The total number of licenses available for the product license, calculated by adding up all the license counts for active license records associated with the product license.

Returns:The total_active_license_unit_count of this ProductLicense.
Return type:int
total_license_record_count

Gets the total_license_record_count of this ProductLicense. The number of license records associated with the product license.

Returns:The total_license_record_count of this ProductLicense.
Return type:int
total_license_units_consumed

Gets the total_license_units_consumed of this ProductLicense. The number of license units consumed. Updated after each allocation run.

Returns:The total_license_units_consumed of this ProductLicense.
Return type:float
vendor_name

Gets the vendor_name of this ProductLicense. The vendor of the ProductLicense

Returns:The vendor_name of this ProductLicense.
Return type:str