ResourcePowerAction¶
-
class
oci.autoscaling.models.ResourcePowerAction(**kwargs)¶ Bases:
oci.autoscaling.models.resource_action.ResourceActionAn action that starts, stops, or resets a resource.
Attributes
ACTION_RESETA constant which can be used with the action property of a ResourcePowerAction. ACTION_SOFTRESETA constant which can be used with the action property of a ResourcePowerAction. ACTION_SOFTSTOPA constant which can be used with the action property of a ResourcePowerAction. ACTION_STARTA constant which can be used with the action property of a ResourcePowerAction. ACTION_STOPA constant which can be used with the action property of a ResourcePowerAction. action[Required] Gets the action of this ResourcePowerAction. action_type[Required] Gets the action_type of this ResourceAction. Methods
__init__(**kwargs)Initializes a new ResourcePowerAction object with values from keyword arguments. get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. -
ACTION_RESET= 'RESET'¶ A constant which can be used with the action property of a ResourcePowerAction. This constant has a value of “RESET”
-
ACTION_SOFTRESET= 'SOFTRESET'¶ A constant which can be used with the action property of a ResourcePowerAction. This constant has a value of “SOFTRESET”
-
ACTION_SOFTSTOP= 'SOFTSTOP'¶ A constant which can be used with the action property of a ResourcePowerAction. This constant has a value of “SOFTSTOP”
-
ACTION_START= 'START'¶ A constant which can be used with the action property of a ResourcePowerAction. This constant has a value of “START”
-
ACTION_STOP= 'STOP'¶ A constant which can be used with the action property of a ResourcePowerAction. This constant has a value of “STOP”
-
__init__(**kwargs)¶ Initializes a new ResourcePowerAction object with values from keyword arguments. The default value of the
action_typeattribute of this class ispowerand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - action_type (str) – The value to assign to the action_type property of this ResourcePowerAction.
- action (str) – The value to assign to the action property of this ResourcePowerAction. Allowed values for this property are: “SOFTSTOP”, “STOP”, “START”, “SOFTRESET”, “RESET”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
-
action¶ [Required] Gets the action of this ResourcePowerAction. Allowed values for this property are: “SOFTSTOP”, “STOP”, “START”, “SOFTRESET”, “RESET”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The action of this ResourcePowerAction. Return type: str
-
action_type¶ [Required] Gets the action_type of this ResourceAction. The category of action to run on the resource.
Returns: The action_type of this ResourceAction. Return type: str
-
static
get_subtype(object_dictionary)¶ Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
-