ListOfTargetsRollbackDetails¶
-
class
oci.fleet_software_update.models.ListOfTargetsRollbackDetails(**kwargs)¶ Bases:
oci.fleet_software_update.models.rollback_details.RollbackDetailsLIST_OF_TARGETS strategy rollback details. The specified list would only act-upon targets that had a failed job during patching.
Attributes
STRATEGY_FAILED_JOBSstr(object=’’) -> str STRATEGY_LIST_OF_TARGETSstr(object=’’) -> str strategy[Required] Gets the strategy of this RollbackDetails. targets[Required] Gets the targets of this ListOfTargetsRollbackDetails. Methods
__init__(**kwargs)Initializes a new ListOfTargetsRollbackDetails 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. -
STRATEGY_FAILED_JOBS= 'FAILED_JOBS'¶
-
STRATEGY_LIST_OF_TARGETS= 'LIST_OF_TARGETS'¶
-
__init__(**kwargs)¶ Initializes a new ListOfTargetsRollbackDetails object with values from keyword arguments. The default value of the
strategyattribute of this class isLIST_OF_TARGETSand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - strategy (str) – The value to assign to the strategy property of this ListOfTargetsRollbackDetails. Allowed values for this property are: “FAILED_JOBS”, “LIST_OF_TARGETS”
- targets (list[str]) – The value to assign to the targets property of this ListOfTargetsRollbackDetails.
-
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.
-
strategy¶ [Required] Gets the strategy of this RollbackDetails. Rollback strategy to use. FAILED_JOBS: Rollback and remove targets which had a failure in their last job. LIST_OF_TARGETS: Rollback and remove a specific list of targets.
Allowed values for this property are: “FAILED_JOBS”, “LIST_OF_TARGETS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The strategy of this RollbackDetails. Return type: str
-
targets¶ [Required] Gets the targets of this ListOfTargetsRollbackDetails. OCIDs of targets to rollback.
Returns: The targets of this ListOfTargetsRollbackDetails. Return type: list[str]
-