Profile¶
- 
class oci.optimizer.models.Profile(**kwargs)¶
- Bases: - object- The metadata associated with the profile. - Attributes - LIFECYCLE_STATE_ACTIVE- A constant which can be used with the lifecycle_state property of a Profile. - LIFECYCLE_STATE_ATTACHING- A constant which can be used with the lifecycle_state property of a Profile. - LIFECYCLE_STATE_CREATING- A constant which can be used with the lifecycle_state property of a Profile. - LIFECYCLE_STATE_DELETED- A constant which can be used with the lifecycle_state property of a Profile. - LIFECYCLE_STATE_DELETING- A constant which can be used with the lifecycle_state property of a Profile. - LIFECYCLE_STATE_DETACHING- A constant which can be used with the lifecycle_state property of a Profile. - LIFECYCLE_STATE_FAILED- A constant which can be used with the lifecycle_state property of a Profile. - LIFECYCLE_STATE_INACTIVE- A constant which can be used with the lifecycle_state property of a Profile. - LIFECYCLE_STATE_UPDATING- A constant which can be used with the lifecycle_state property of a Profile. - aggregation_interval_in_days- Gets the aggregation_interval_in_days of this Profile. - compartment_id- [Required] Gets the compartment_id of this Profile. - defined_tags- Gets the defined_tags of this Profile. - description- [Required] Gets the description of this Profile. - freeform_tags- Gets the freeform_tags of this Profile. - id- [Required] Gets the id of this Profile. - levels_configuration- Gets the levels_configuration of this Profile. - lifecycle_state- [Required] Gets the lifecycle_state of this Profile. - name- [Required] Gets the name of this Profile. - system_tags- Gets the system_tags of this Profile. - target_compartments- Gets the target_compartments of this Profile. - target_tags- Gets the target_tags of this Profile. - time_created- [Required] Gets the time_created of this Profile. - time_updated- [Required] Gets the time_updated of this Profile. - Methods - __init__(**kwargs)- Initializes a new Profile object with values from keyword arguments. - 
LIFECYCLE_STATE_ACTIVE= 'ACTIVE'¶
- A constant which can be used with the lifecycle_state property of a Profile. This constant has a value of “ACTIVE” 
 - 
LIFECYCLE_STATE_ATTACHING= 'ATTACHING'¶
- A constant which can be used with the lifecycle_state property of a Profile. This constant has a value of “ATTACHING” 
 - 
LIFECYCLE_STATE_CREATING= 'CREATING'¶
- A constant which can be used with the lifecycle_state property of a Profile. This constant has a value of “CREATING” 
 - 
LIFECYCLE_STATE_DELETED= 'DELETED'¶
- A constant which can be used with the lifecycle_state property of a Profile. This constant has a value of “DELETED” 
 - 
LIFECYCLE_STATE_DELETING= 'DELETING'¶
- A constant which can be used with the lifecycle_state property of a Profile. This constant has a value of “DELETING” 
 - 
LIFECYCLE_STATE_DETACHING= 'DETACHING'¶
- A constant which can be used with the lifecycle_state property of a Profile. This constant has a value of “DETACHING” 
 - 
LIFECYCLE_STATE_FAILED= 'FAILED'¶
- A constant which can be used with the lifecycle_state property of a Profile. This constant has a value of “FAILED” 
 - 
LIFECYCLE_STATE_INACTIVE= 'INACTIVE'¶
- A constant which can be used with the lifecycle_state property of a Profile. This constant has a value of “INACTIVE” 
 - 
LIFECYCLE_STATE_UPDATING= 'UPDATING'¶
- A constant which can be used with the lifecycle_state property of a Profile. This constant has a value of “UPDATING” 
 - 
__init__(**kwargs)¶
- Initializes a new Profile 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 Profile.
- compartment_id (str) – The value to assign to the compartment_id property of this Profile.
- name (str) – The value to assign to the name property of this Profile.
- description (str) – The value to assign to the description property of this Profile.
- aggregation_interval_in_days (int) – The value to assign to the aggregation_interval_in_days property of this Profile.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this Profile.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this Profile.
- system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this Profile.
- levels_configuration (oci.optimizer.models.LevelsConfiguration) – The value to assign to the levels_configuration property of this Profile.
- target_compartments (oci.optimizer.models.TargetCompartments) – The value to assign to the target_compartments property of this Profile.
- target_tags (oci.optimizer.models.TargetTags) – The value to assign to the target_tags property of this Profile.
- lifecycle_state (str) – The value to assign to the lifecycle_state property of this Profile. Allowed values for this property are: “ACTIVE”, “FAILED”, “INACTIVE”, “ATTACHING”, “DETACHING”, “DELETING”, “DELETED”, “UPDATING”, “CREATING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- time_created (datetime) – The value to assign to the time_created property of this Profile.
- time_updated (datetime) – The value to assign to the time_updated property of this Profile.
 
 - 
aggregation_interval_in_days¶
- Gets the aggregation_interval_in_days of this Profile. The time period over which to collect data for the recommendations, measured in number of days. - Returns: - The aggregation_interval_in_days of this Profile. - Return type: - int 
 - 
compartment_id¶
- [Required] Gets the compartment_id of this Profile. The OCID of the tenancy. The tenancy is the root compartment. - Returns: - The compartment_id of this Profile. - Return type: - str 
 - Gets the defined_tags of this Profile. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. - Example: {“foo-namespace”: {“bar-key”: “value”}} - Returns: - The defined_tags of this Profile. - Return type: - dict(str, dict(str, object)) 
 - 
description¶
- [Required] Gets the description of this Profile. Text describing the profile. Avoid entering confidential information. - Returns: - The description of this Profile. - Return type: - str 
 - Gets the freeform_tags of this Profile. Simple key-value pair applied without any predefined name, type, or namespace. For more information, see Resource Tags. Exists for cross-compatibility only. - Example: {“bar-key”: “value”} - Returns: - The freeform_tags of this Profile. - Return type: - dict(str, str) 
 - 
id¶
- [Required] Gets the id of this Profile. The unique OCID of the profile. - Returns: - The id of this Profile. - Return type: - str 
 - 
levels_configuration¶
- Gets the levels_configuration of this Profile. - Returns: - The levels_configuration of this Profile. - Return type: - oci.optimizer.models.LevelsConfiguration 
 - 
lifecycle_state¶
- [Required] Gets the lifecycle_state of this Profile. The profile’s current state. - Allowed values for this property are: “ACTIVE”, “FAILED”, “INACTIVE”, “ATTACHING”, “DETACHING”, “DELETING”, “DELETED”, “UPDATING”, “CREATING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’. - Returns: - The lifecycle_state of this Profile. - Return type: - str 
 - 
name¶
- [Required] Gets the name of this Profile. The name assigned to the profile. Avoid entering confidential information. - Returns: - The name of this Profile. - Return type: - str 
 - Gets the system_tags of this Profile. 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 Profile. - Return type: - dict(str, dict(str, object)) 
 - 
target_compartments¶
- Gets the target_compartments of this Profile. - Returns: - The target_compartments of this Profile. - Return type: - oci.optimizer.models.TargetCompartments 
 - Gets the target_tags of this Profile. - Returns: - The target_tags of this Profile. - Return type: - oci.optimizer.models.TargetTags 
 - 
time_created¶
- [Required] Gets the time_created of this Profile. The date and time the profile was created, in the format defined by RFC3339. - Returns: - The time_created of this Profile. - Return type: - datetime 
 - 
time_updated¶
- [Required] Gets the time_updated of this Profile. The date and time the profile was last updated, in the format defined by RFC3339. - Returns: - The time_updated of this Profile. - Return type: - datetime 
 
-