BulkApplyResourceAction¶
- 
class oci.optimizer.models.BulkApplyResourceAction(**kwargs)¶
- Bases: - object- The resource action that a recommendation will be applied to. - Attributes - STATUS_DISMISSED- A constant which can be used with the status property of a BulkApplyResourceAction. - STATUS_IMPLEMENTED- A constant which can be used with the status property of a BulkApplyResourceAction. - STATUS_PENDING- A constant which can be used with the status property of a BulkApplyResourceAction. - STATUS_POSTPONED- A constant which can be used with the status property of a BulkApplyResourceAction. - parameters- Gets the parameters of this BulkApplyResourceAction. - resource_action_id- [Required] Gets the resource_action_id of this BulkApplyResourceAction. - status- Gets the status of this BulkApplyResourceAction. - strategy_name- Gets the strategy_name of this BulkApplyResourceAction. - time_status_end- Gets the time_status_end of this BulkApplyResourceAction. - Methods - __init__(**kwargs)- Initializes a new BulkApplyResourceAction object with values from keyword arguments. - 
STATUS_DISMISSED= 'DISMISSED'¶
- A constant which can be used with the status property of a BulkApplyResourceAction. This constant has a value of “DISMISSED” 
 - 
STATUS_IMPLEMENTED= 'IMPLEMENTED'¶
- A constant which can be used with the status property of a BulkApplyResourceAction. This constant has a value of “IMPLEMENTED” 
 - 
STATUS_PENDING= 'PENDING'¶
- A constant which can be used with the status property of a BulkApplyResourceAction. This constant has a value of “PENDING” 
 - 
STATUS_POSTPONED= 'POSTPONED'¶
- A constant which can be used with the status property of a BulkApplyResourceAction. This constant has a value of “POSTPONED” 
 - 
__init__(**kwargs)¶
- Initializes a new BulkApplyResourceAction object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): - Parameters: - resource_action_id (str) – The value to assign to the resource_action_id property of this BulkApplyResourceAction.
- status (str) – The value to assign to the status property of this BulkApplyResourceAction. Allowed values for this property are: “PENDING”, “DISMISSED”, “POSTPONED”, “IMPLEMENTED”
- time_status_end (datetime) – The value to assign to the time_status_end property of this BulkApplyResourceAction.
- parameters (dict(str, object)) – The value to assign to the parameters property of this BulkApplyResourceAction.
- strategy_name (str) – The value to assign to the strategy_name property of this BulkApplyResourceAction.
 
 - 
parameters¶
- Gets the parameters of this BulkApplyResourceAction. Additional parameter key-value pairs defining the resource action. For example: - {“timeAmount”: 15, “timeUnit”: “seconds”} - Returns: - The parameters of this BulkApplyResourceAction. - Return type: - dict(str, object) 
 - 
resource_action_id¶
- [Required] Gets the resource_action_id of this BulkApplyResourceAction. The unique OCIDs of the resource actions that recommendations are applied to. - Returns: - The resource_action_id of this BulkApplyResourceAction. - Return type: - str 
 - 
status¶
- Gets the status of this BulkApplyResourceAction. The current status of the recommendation. - Allowed values for this property are: “PENDING”, “DISMISSED”, “POSTPONED”, “IMPLEMENTED” - Returns: - The status of this BulkApplyResourceAction. - Return type: - str 
 - 
strategy_name¶
- Gets the strategy_name of this BulkApplyResourceAction. The name of the strategy. - Returns: - The strategy_name of this BulkApplyResourceAction. - Return type: - str 
 - 
time_status_end¶
- Gets the time_status_end of this BulkApplyResourceAction. 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 BulkApplyResourceAction. - Return type: - datetime 
 
-