a ýÎòfDWã@s8ddlmZmZmZddlmZeGdd„deƒƒZdS)é)Úformatted_flat_dictÚ NONE_SENTINELÚ#value_allowed_none_or_none_sentinel)Úinit_model_state_from_kwargsc@seZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d Zd ZdZdZdZdZdZdZdd„Zedd„ƒZejdd„ƒZedd„ƒZejdd„ƒZedd„ƒZejdd„ƒZedd „ƒZejd!d „ƒZed"d#„ƒZejd$d#„ƒZed%d&„ƒZejd'd&„ƒZed(d)„ƒZejd*d)„ƒZed+d,„ƒZ e jd-d,„ƒZ ed.d/„ƒZ!e!jd0d/„ƒZ!ed1d2„ƒZ"e"jd3d2„ƒZ"ed4d5„ƒZ#e#jd6d5„ƒZ#ed7d8„ƒZ$e$jd9d8„ƒZ$ed:d;„ƒZ%e%jd„ƒZ&e&jd?d>„ƒZ&ed@dA„ƒZ'e'jdBdA„ƒZ'edCdD„ƒZ(e(jdEdD„ƒZ(dFdG„Z)dHdI„Z*dJdK„Z+dLS)MÚRecommendationz: The metadata associated with the recommendation. ÚCRITICALÚHIGHÚMODERATEÚLOWÚMINORÚACTIVEÚFAILEDÚINACTIVEÚ ATTACHINGÚ DETACHINGÚDELETINGÚDELETEDÚUPDATINGÚCREATINGÚPENDINGÚ DISMISSEDÚ POSTPONEDÚ IMPLEMENTEDcKs´dddddddddddddddddœ|_dd d d d d dddddddddddœ|_d|_d|_d|_d|_d|_d|_d|_d|_ d|_ d|_ d|_ d|_ d|_d|_d|_d|_dS)a> Initializes a new Recommendation object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param id: The value to assign to the id property of this Recommendation. :type id: str :param compartment_id: The value to assign to the compartment_id property of this Recommendation. :type compartment_id: str :param category_id: The value to assign to the category_id property of this Recommendation. :type category_id: str :param name: The value to assign to the name property of this Recommendation. :type name: str :param description: The value to assign to the description property of this Recommendation. :type description: str :param importance: The value to assign to the importance property of this Recommendation. Allowed values for this property are: "CRITICAL", "HIGH", "MODERATE", "LOW", "MINOR", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type importance: str :param resource_counts: The value to assign to the resource_counts property of this Recommendation. :type resource_counts: list[oci.optimizer.models.ResourceCount] :param lifecycle_state: The value to assign to the lifecycle_state property of this Recommendation. 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'. :type lifecycle_state: str :param estimated_cost_saving: The value to assign to the estimated_cost_saving property of this Recommendation. :type estimated_cost_saving: float :param status: The value to assign to the status property of this Recommendation. Allowed values for this property are: "PENDING", "DISMISSED", "POSTPONED", "IMPLEMENTED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type status: str :param time_status_begin: The value to assign to the time_status_begin property of this Recommendation. :type time_status_begin: datetime :param time_status_end: The value to assign to the time_status_end property of this Recommendation. :type time_status_end: datetime :param time_created: The value to assign to the time_created property of this Recommendation. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this Recommendation. :type time_updated: datetime :param supported_levels: The value to assign to the supported_levels property of this Recommendation. :type supported_levels: oci.optimizer.models.SupportedLevels :param extended_metadata: The value to assign to the extended_metadata property of this Recommendation. :type extended_metadata: dict(str, str) Ústrzlist[ResourceCount]ÚfloatZdatetimeZSupportedLevelszdict(str, str))ÚidÚcompartment_idÚ category_idÚnameÚ descriptionÚ importanceÚresource_countsÚlifecycle_stateÚestimated_cost_savingÚstatusÚtime_status_beginÚtime_status_endÚ time_createdÚ time_updatedÚsupported_levelsÚextended_metadatarZ compartmentIdZ categoryIdrrr ZresourceCountsZlifecycleStateZestimatedCostSavingr$ZtimeStatusBeginZ timeStatusEndZ timeCreatedZ timeUpdatedZsupportedLevelsZextendedMetadataN)Z swagger_typesZ attribute_mapÚ_idÚ_compartment_idÚ _category_idÚ_nameÚ _descriptionÚ _importanceÚ_resource_countsÚ_lifecycle_stateÚ_estimated_cost_savingÚ_statusÚ_time_status_beginÚ_time_status_endÚ _time_createdÚ _time_updatedÚ_supported_levelsÚ_extended_metadata)ÚselfÚkwargs©r=úG/usr/lib/python3.9/site-packages/oci/optimizer/models/recommendation.pyÚ__init__ZsdMððzRecommendation.__init__cCs|jS)zÆ **[Required]** Gets the id of this Recommendation. The unique OCID associated with the recommendation. :return: The id of this Recommendation. :rtype: str ©r+©r;r=r=r>rÝs zRecommendation.idcCs ||_dS)z¸ Sets the id of this Recommendation. The unique OCID associated with the recommendation. :param id: The id of this Recommendation. :type: str Nr@)r;rr=r=r>rés cCs|jS)zè **[Required]** Gets the compartment_id of this Recommendation. The OCID of the tenancy. The tenancy is the root compartment. :return: The compartment_id of this Recommendation. :rtype: str ©r,rAr=r=r>rõs zRecommendation.compartment_idcCs ||_dS)zæ Sets the compartment_id of this Recommendation. The OCID of the tenancy. The tenancy is the root compartment. :param compartment_id: The compartment_id of this Recommendation. :type: str NrB)r;rr=r=r>rs cCs|jS)zÒ **[Required]** Gets the category_id of this Recommendation. The unique OCID associated with the category. :return: The category_id of this Recommendation. :rtype: str ©r-rAr=r=r>r s zRecommendation.category_idcCs ||_dS)zÍ Sets the category_id of this Recommendation. The unique OCID associated with the category. :param category_id: The category_id of this Recommendation. :type: str NrC)r;rr=r=r>rs cCs|jS)z¿ **[Required]** Gets the name of this Recommendation. The name assigned to the recommendation. :return: The name of this Recommendation. :rtype: str ©r.rAr=r=r>r%s zRecommendation.namecCs ||_dS)z³ Sets the name of this Recommendation. The name assigned to the recommendation. :param name: The name of this Recommendation. :type: str NrD)r;rr=r=r>r1s cCs|jS)zÈ **[Required]** Gets the description of this Recommendation. Text describing the recommendation. :return: The description of this Recommendation. :rtype: str ©r/rAr=r=r>r=s zRecommendation.descriptioncCs ||_dS)zà Sets the description of this Recommendation. Text describing the recommendation. :param description: The description of this Recommendation. :type: str NrE)r;rr=r=r>rIs cCs|jS)a­ **[Required]** Gets the importance of this Recommendation. The level of importance assigned to the recommendation. Allowed values for this property are: "CRITICAL", "HIGH", "MODERATE", "LOW", "MINOR", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The importance of this Recommendation. :rtype: str )r0rAr=r=r>r Us zRecommendation.importancecCs gd¢}t||ƒsd}||_dS)zÔ Sets the importance of this Recommendation. The level of importance assigned to the recommendation. :param importance: The importance of this Recommendation. :type: str )rrr r r ÚUNKNOWN_ENUM_VALUEN)rr0)r;r Úallowed_valuesr=r=r>r ds  cCs|jS)a$ **[Required]** Gets the resource_counts of this Recommendation. An array of `ResourceCount` objects grouped by the status of the resource actions. :return: The resource_counts of this Recommendation. :rtype: list[oci.optimizer.models.ResourceCount] ©r1rAr=r=r>r!ss zRecommendation.resource_countscCs ||_dS)a# Sets the resource_counts of this Recommendation. An array of `ResourceCount` objects grouped by the status of the resource actions. :param resource_counts: The resource_counts of this Recommendation. :type: list[oci.optimizer.models.ResourceCount] NrH)r;r!r=r=r>r!s cCs|jS)aÜ **[Required]** Gets the lifecycle_state of this Recommendation. The recommendation'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'. :return: The lifecycle_state of this Recommendation. :rtype: str )r2rAr=r=r>r"‹s zRecommendation.lifecycle_statecCs gd¢}t||ƒsd}||_dS)zÏ Sets the lifecycle_state of this Recommendation. The recommendation's current state. :param lifecycle_state: The lifecycle_state of this Recommendation. :type: str ) r r rrrrrrrrFN)rr2)r;r"rGr=r=r>r"šs  cCs|jS)zú **[Required]** Gets the estimated_cost_saving of this Recommendation. The estimated cost savings, in dollars, for the recommendation. :return: The estimated_cost_saving of this Recommendation. :rtype: float ©r3rAr=r=r>r#©s z$Recommendation.estimated_cost_savingcCs ||_dS)zÿ Sets the estimated_cost_saving of this Recommendation. The estimated cost savings, in dollars, for the recommendation. :param estimated_cost_saving: The estimated_cost_saving of this Recommendation. :type: float NrI)r;r#r=r=r>r#µs cCs|jS)a› **[Required]** Gets the status of this Recommendation. The current status of the recommendation. Allowed values for this property are: "PENDING", "DISMISSED", "POSTPONED", "IMPLEMENTED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The status of this Recommendation. :rtype: str )r4rAr=r=r>r$Ás zRecommendation.statuscCs gd¢}t||ƒsd}||_dS)zº Sets the status of this Recommendation. The current status of the recommendation. :param status: The status of this Recommendation. :type: str )rrrrrFN)rr4)r;r$rGr=r=r>r$Ðs  cCs|jS)aš **[Required]** Gets the time_status_begin of this Recommendation. The date and time that the recommendation entered its current status. The format is defined by RFC3339. For example, "The status of the recommendation changed from `pending` to `current(ignored)` on this date and time." :return: The time_status_begin of this Recommendation. :rtype: datetime ©r5rAr=r=r>r%ßs z Recommendation.time_status_begincCs ||_dS)a› Sets the time_status_begin of this Recommendation. The date and time that the recommendation entered its current status. The format is defined by RFC3339. For example, "The status of the recommendation changed from `pending` to `current(ignored)` on this date and time." :param time_status_begin: The time_status_begin of this Recommendation. :type: datetime NrJ)r;r%r=r=r>r%ís cCs|jS)aƒ Gets the time_status_end of this Recommendation. The date and time the current status will change. The format is defined by RFC3339. For example, "The current `postponed` status of the recommendation will end and change to `pending` on this date and time." :return: The time_status_end of this Recommendation. :rtype: datetime ©r6rAr=r=r>r&ûs zRecommendation.time_status_endcCs ||_dS)a‘ Sets the time_status_end of this Recommendation. The date and time the current status will change. The format is defined by RFC3339. For example, "The current `postponed` status of the recommendation will end and change to `pending` on this date and time." :param time_status_end: The time_status_end of this Recommendation. :type: datetime NrK)r;r&r=r=r>r& s cCs|jS)zù Gets the time_created of this Recommendation. The date and time the recommendation details were created, in the format defined by RFC3339. :return: The time_created of this Recommendation. :rtype: datetime ©r7rAr=r=r>r's zRecommendation.time_createdcCs ||_dS)a Sets the time_created of this Recommendation. The date and time the recommendation details were created, in the format defined by RFC3339. :param time_created: The time_created of this Recommendation. :type: datetime NrL)r;r'r=r=r>r'%s cCs|jS)zþ Gets the time_updated of this Recommendation. The date and time the recommendation details were last updated, in the format defined by RFC3339. :return: The time_updated of this Recommendation. :rtype: datetime ©r8rAr=r=r>r(1s zRecommendation.time_updatedcCs ||_dS)a  Sets the time_updated of this Recommendation. The date and time the recommendation details were last updated, in the format defined by RFC3339. :param time_updated: The time_updated of this Recommendation. :type: datetime NrM)r;r(r=r=r>r(=s cCs|jS)z· Gets the supported_levels of this Recommendation. :return: The supported_levels of this Recommendation. :rtype: oci.optimizer.models.SupportedLevels ©r9rAr=r=r>r)IszRecommendation.supported_levelscCs ||_dS)zÆ Sets the supported_levels of this Recommendation. :param supported_levels: The supported_levels of this Recommendation. :type: oci.optimizer.models.SupportedLevels NrN)r;r)r=r=r>r)SscCs|jS)a$ Gets the extended_metadata of this Recommendation. Additional metadata key/value pairs for the recommendation. For example: `{"EstimatedSaving": "200"}` :return: The extended_metadata of this Recommendation. :rtype: dict(str, str) ©r:rAr=r=r>r*]sz Recommendation.extended_metadatacCs ||_dS)a4 Sets the extended_metadata of this Recommendation. Additional metadata key/value pairs for the recommendation. For example: `{"EstimatedSaving": "200"}` :param extended_metadata: The extended_metadata of this Recommendation. :type: dict(str, str) NrO)r;r*r=r=r>r*mscCst|ƒS©N)rrAr=r=r>Ú__repr__}szRecommendation.__repr__cCs|dur dS|j|jkS)NF)Ú__dict__©r;Úotherr=r=r>Ú__eq__€szRecommendation.__eq__cCs ||k SrPr=rSr=r=r>Ú__ne__†szRecommendation.__ne__N),Ú__name__Ú __module__Ú __qualname__Ú__doc__ZIMPORTANCE_CRITICALZIMPORTANCE_HIGHZIMPORTANCE_MODERATEZIMPORTANCE_LOWZIMPORTANCE_MINORZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_FAILEDZLIFECYCLE_STATE_INACTIVEZLIFECYCLE_STATE_ATTACHINGZLIFECYCLE_STATE_DETACHINGZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_CREATINGZSTATUS_PENDINGZSTATUS_DISMISSEDZSTATUS_POSTPONEDZSTATUS_IMPLEMENTEDr?ÚpropertyrÚsetterrrrrr r!r"r#r$r%r&r'r(r)r*rQrUrVr=r=r=r>r s°                                rN)Zoci.utilrrrZoci.decoratorsrÚobjectrr=r=r=r>Ús