RollbackDetails

class oci.fleet_software_update.models.RollbackDetails(**kwargs)

Bases: object

Rollback details specified for the action.

Attributes:

STRATEGY_FAILED_JOBS

A constant which can be used with the strategy property of a RollbackDetails.

STRATEGY_LIST_OF_TARGETS

A constant which can be used with the strategy property of a RollbackDetails.

strategy

[Required] Gets the strategy of this RollbackDetails.

Methods:

__init__(**kwargs)

Initializes a new RollbackDetails 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'

A constant which can be used with the strategy property of a RollbackDetails. This constant has a value of “FAILED_JOBS”

STRATEGY_LIST_OF_TARGETS = 'LIST_OF_TARGETS'

A constant which can be used with the strategy property of a RollbackDetails. This constant has a value of “LIST_OF_TARGETS”

__init__(**kwargs)

Initializes a new RollbackDetails 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

strategy (str) – The value to assign to the strategy property of this RollbackDetails. 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’.

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.

property 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