DeployStageRollbackPolicy¶
-
class
oci.devops.models.
DeployStageRollbackPolicy
(**kwargs)¶ Bases:
object
Specifies the rollback policy. This is initiated on the failure of certain stage types.
Attributes
POLICY_TYPE_AUTOMATED_STAGE_ROLLBACK_POLICY
A constant which can be used with the policy_type property of a DeployStageRollbackPolicy. POLICY_TYPE_NO_STAGE_ROLLBACK_POLICY
A constant which can be used with the policy_type property of a DeployStageRollbackPolicy. policy_type
[Required] Gets the policy_type of this DeployStageRollbackPolicy. Methods
__init__
(**kwargs)Initializes a new DeployStageRollbackPolicy 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. -
POLICY_TYPE_AUTOMATED_STAGE_ROLLBACK_POLICY
= 'AUTOMATED_STAGE_ROLLBACK_POLICY'¶ A constant which can be used with the policy_type property of a DeployStageRollbackPolicy. This constant has a value of “AUTOMATED_STAGE_ROLLBACK_POLICY”
-
POLICY_TYPE_NO_STAGE_ROLLBACK_POLICY
= 'NO_STAGE_ROLLBACK_POLICY'¶ A constant which can be used with the policy_type property of a DeployStageRollbackPolicy. This constant has a value of “NO_STAGE_ROLLBACK_POLICY”
-
__init__
(**kwargs)¶ Initializes a new DeployStageRollbackPolicy object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:
The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: policy_type (str) – The value to assign to the policy_type property of this DeployStageRollbackPolicy. Allowed values for this property are: “AUTOMATED_STAGE_ROLLBACK_POLICY”, “NO_STAGE_ROLLBACK_POLICY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
-
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.
-
policy_type
¶ [Required] Gets the policy_type of this DeployStageRollbackPolicy. Specifies type of the deployment stage rollback policy.
Allowed values for this property are: “AUTOMATED_STAGE_ROLLBACK_POLICY”, “NO_STAGE_ROLLBACK_POLICY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The policy_type of this DeployStageRollbackPolicy. Return type: str
-