ResourcePowerAction¶
-
class
oci.autoscaling.models.
ResourcePowerAction
(**kwargs)¶ Bases:
oci.autoscaling.models.resource_action.ResourceAction
A power action against a resource.
Attributes
ACTION_RESET
A constant which can be used with the action property of a ResourcePowerAction. ACTION_SOFTRESET
A constant which can be used with the action property of a ResourcePowerAction. ACTION_START
A constant which can be used with the action property of a ResourcePowerAction. ACTION_STOP
A constant which can be used with the action property of a ResourcePowerAction. action
[Required] Gets the action of this ResourcePowerAction. action_type
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_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_type
attribute of this class ispower
and 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: “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: “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
¶ Gets the action_type of this ResourceAction. The type of resource action.
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.
-