ResourceActionSummary

class oci.optimizer.models.ResourceActionSummary(**kwargs)

Bases: object

The metadata associated with the resource action summary.

Attributes

LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a ResourceActionSummary.
LIFECYCLE_STATE_ATTACHING A constant which can be used with the lifecycle_state property of a ResourceActionSummary.
LIFECYCLE_STATE_CREATING A constant which can be used with the lifecycle_state property of a ResourceActionSummary.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a ResourceActionSummary.
LIFECYCLE_STATE_DELETING A constant which can be used with the lifecycle_state property of a ResourceActionSummary.
LIFECYCLE_STATE_DETACHING A constant which can be used with the lifecycle_state property of a ResourceActionSummary.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a ResourceActionSummary.
LIFECYCLE_STATE_INACTIVE A constant which can be used with the lifecycle_state property of a ResourceActionSummary.
LIFECYCLE_STATE_UPDATING A constant which can be used with the lifecycle_state property of a ResourceActionSummary.
STATUS_DISMISSED A constant which can be used with the status property of a ResourceActionSummary.
STATUS_IMPLEMENTED A constant which can be used with the status property of a ResourceActionSummary.
STATUS_PENDING A constant which can be used with the status property of a ResourceActionSummary.
STATUS_POSTPONED A constant which can be used with the status property of a ResourceActionSummary.
action [Required] Gets the action of this ResourceActionSummary.
category_id [Required] Gets the category_id of this ResourceActionSummary.
compartment_id [Required] Gets the compartment_id of this ResourceActionSummary.
compartment_name [Required] Gets the compartment_name of this ResourceActionSummary.
estimated_cost_saving [Required] Gets the estimated_cost_saving of this ResourceActionSummary.
extended_metadata Gets the extended_metadata of this ResourceActionSummary.
id [Required] Gets the id of this ResourceActionSummary.
lifecycle_state [Required] Gets the lifecycle_state of this ResourceActionSummary.
metadata Gets the metadata of this ResourceActionSummary.
name [Required] Gets the name of this ResourceActionSummary.
recommendation_id [Required] Gets the recommendation_id of this ResourceActionSummary.
resource_id [Required] Gets the resource_id of this ResourceActionSummary.
resource_type [Required] Gets the resource_type of this ResourceActionSummary.
status [Required] Gets the status of this ResourceActionSummary.
time_created Gets the time_created of this ResourceActionSummary.
time_status_begin [Required] Gets the time_status_begin of this ResourceActionSummary.
time_status_end Gets the time_status_end of this ResourceActionSummary.
time_updated Gets the time_updated of this ResourceActionSummary.

Methods

__init__(**kwargs) Initializes a new ResourceActionSummary object with values from keyword arguments.
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

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

LIFECYCLE_STATE_ATTACHING = 'ATTACHING'

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

LIFECYCLE_STATE_CREATING = 'CREATING'

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

LIFECYCLE_STATE_DELETED = 'DELETED'

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

LIFECYCLE_STATE_DELETING = 'DELETING'

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

LIFECYCLE_STATE_DETACHING = 'DETACHING'

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

LIFECYCLE_STATE_FAILED = 'FAILED'

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

LIFECYCLE_STATE_INACTIVE = 'INACTIVE'

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

LIFECYCLE_STATE_UPDATING = 'UPDATING'

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

STATUS_DISMISSED = 'DISMISSED'

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

STATUS_IMPLEMENTED = 'IMPLEMENTED'

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

STATUS_PENDING = 'PENDING'

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

STATUS_POSTPONED = 'POSTPONED'

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

__init__(**kwargs)

Initializes a new ResourceActionSummary 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 ResourceActionSummary.
  • category_id (str) – The value to assign to the category_id property of this ResourceActionSummary.
  • recommendation_id (str) – The value to assign to the recommendation_id property of this ResourceActionSummary.
  • resource_id (str) – The value to assign to the resource_id property of this ResourceActionSummary.
  • name (str) – The value to assign to the name property of this ResourceActionSummary.
  • resource_type (str) – The value to assign to the resource_type property of this ResourceActionSummary.
  • compartment_id (str) – The value to assign to the compartment_id property of this ResourceActionSummary.
  • compartment_name (str) – The value to assign to the compartment_name property of this ResourceActionSummary.
  • action (oci.optimizer.models.Action) – The value to assign to the action property of this ResourceActionSummary.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this ResourceActionSummary. 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’.
  • estimated_cost_saving (float) – The value to assign to the estimated_cost_saving property of this ResourceActionSummary.
  • status (str) – The value to assign to the status property of this ResourceActionSummary. 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’.
  • time_status_begin (datetime) – The value to assign to the time_status_begin property of this ResourceActionSummary.
  • time_status_end (datetime) – The value to assign to the time_status_end property of this ResourceActionSummary.
  • metadata (dict(str, str)) – The value to assign to the metadata property of this ResourceActionSummary.
  • extended_metadata (dict(str, object)) – The value to assign to the extended_metadata property of this ResourceActionSummary.
  • time_created (datetime) – The value to assign to the time_created property of this ResourceActionSummary.
  • time_updated (datetime) – The value to assign to the time_updated property of this ResourceActionSummary.
action

[Required] Gets the action of this ResourceActionSummary.

Returns:The action of this ResourceActionSummary.
Return type:oci.optimizer.models.Action
category_id

[Required] Gets the category_id of this ResourceActionSummary. The unique OCID associated with the category.

Returns:The category_id of this ResourceActionSummary.
Return type:str
compartment_id

[Required] Gets the compartment_id of this ResourceActionSummary. The OCID of the compartment.

Returns:The compartment_id of this ResourceActionSummary.
Return type:str
compartment_name

[Required] Gets the compartment_name of this ResourceActionSummary. The name associated with the compartment.

Returns:The compartment_name of this ResourceActionSummary.
Return type:str
estimated_cost_saving

[Required] Gets the estimated_cost_saving of this ResourceActionSummary. The estimated cost savings, in dollars, for the resource action.

Returns:The estimated_cost_saving of this ResourceActionSummary.
Return type:float
extended_metadata

Gets the extended_metadata of this ResourceActionSummary. Additional metadata key/value pairs that you provide. They serve the same purpose and functionality as fields in the metadata object.

They are distinguished from metadata fields in that these can be nested JSON objects (whereas metadata fields are string/string maps only).

For example:

{“CurrentShape”: {“name”:”VM.Standard2.16”}, “RecommendedShape”: {“name”:”VM.Standard2.8”}}

Returns:The extended_metadata of this ResourceActionSummary.
Return type:dict(str, object)
id

[Required] Gets the id of this ResourceActionSummary. The unique OCID associated with the resource action.

Returns:The id of this ResourceActionSummary.
Return type:str
lifecycle_state

[Required] Gets the lifecycle_state of this ResourceActionSummary. The resource action’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 ResourceActionSummary.
Return type:str
metadata

Gets the metadata of this ResourceActionSummary. Custom metadata key/value pairs for the resource action.

Metadata Example

“metadata” : {
“cpuRecommendedShape”: “VM.Standard1.1”, “computeMemoryUtilization”: “26.05734124418388”, “currentShape”: “VM.Standard1.2”, “instanceRecommendedShape”: “VM.Standard1.1”, “computeCpuUtilization”: “7.930035319720132”, “memoryRecommendedShape”: “None”

}

Returns:The metadata of this ResourceActionSummary.
Return type:dict(str, str)
name

[Required] Gets the name of this ResourceActionSummary. The name assigned to the resource.

Returns:The name of this ResourceActionSummary.
Return type:str
recommendation_id

[Required] Gets the recommendation_id of this ResourceActionSummary. The unique OCID associated with the recommendation.

Returns:The recommendation_id of this ResourceActionSummary.
Return type:str
resource_id

[Required] Gets the resource_id of this ResourceActionSummary. The unique OCID associated with the resource.

Returns:The resource_id of this ResourceActionSummary.
Return type:str
resource_type

[Required] Gets the resource_type of this ResourceActionSummary. The kind of resource.

Returns:The resource_type of this ResourceActionSummary.
Return type:str
status

[Required] Gets the status of this ResourceActionSummary. The current status of the resource action.

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’.

Returns:The status of this ResourceActionSummary.
Return type:str
time_created

Gets the time_created of this ResourceActionSummary. The date and time the resource action details were created, in the format defined by RFC3339.

Returns:The time_created of this ResourceActionSummary.
Return type:datetime
time_status_begin

[Required] Gets the time_status_begin of this ResourceActionSummary. The date and time that the resource action entered its current status. The format is defined by RFC3339.

For example, “The status of the resource action changed from pending to current(ignored) on this date and time.”

Returns:The time_status_begin of this ResourceActionSummary.
Return type:datetime
time_status_end

Gets the time_status_end of this ResourceActionSummary. The date and time the current status will change. The format is defined by RFC3339.

For example, “The current postponed status of the resource action will end and change to pending on this date and time.”

Returns:The time_status_end of this ResourceActionSummary.
Return type:datetime
time_updated

Gets the time_updated of this ResourceActionSummary. The date and time the resource action details were last updated, in the format defined by RFC3339.

Returns:The time_updated of this ResourceActionSummary.
Return type:datetime