RemediationRunStage

class oci.adm.models.RemediationRunStage(**kwargs)

Bases: object

A remediation run stage is one step of an remediation run. Each stage provides output logs and has a specific type. The stages are: DETECT, RECOMMEND, VERIFY, and APPLY.

Attributes

NEXT_STAGE_TYPE_APPLY A constant which can be used with the next_stage_type property of a RemediationRunStage.
NEXT_STAGE_TYPE_DETECT A constant which can be used with the next_stage_type property of a RemediationRunStage.
NEXT_STAGE_TYPE_RECOMMEND A constant which can be used with the next_stage_type property of a RemediationRunStage.
NEXT_STAGE_TYPE_VERIFY A constant which can be used with the next_stage_type property of a RemediationRunStage.
PREVIOUS_STAGE_TYPE_APPLY A constant which can be used with the previous_stage_type property of a RemediationRunStage.
PREVIOUS_STAGE_TYPE_DETECT A constant which can be used with the previous_stage_type property of a RemediationRunStage.
PREVIOUS_STAGE_TYPE_RECOMMEND A constant which can be used with the previous_stage_type property of a RemediationRunStage.
PREVIOUS_STAGE_TYPE_VERIFY A constant which can be used with the previous_stage_type property of a RemediationRunStage.
STATUS_CANCELED A constant which can be used with the status property of a RemediationRunStage.
STATUS_CANCELING A constant which can be used with the status property of a RemediationRunStage.
STATUS_CREATED A constant which can be used with the status property of a RemediationRunStage.
STATUS_FAILED A constant which can be used with the status property of a RemediationRunStage.
STATUS_IN_PROGRESS A constant which can be used with the status property of a RemediationRunStage.
STATUS_SUCCEEDED A constant which can be used with the status property of a RemediationRunStage.
TYPE_APPLY A constant which can be used with the type property of a RemediationRunStage.
TYPE_DETECT A constant which can be used with the type property of a RemediationRunStage.
TYPE_RECOMMEND A constant which can be used with the type property of a RemediationRunStage.
TYPE_VERIFY A constant which can be used with the type property of a RemediationRunStage.
next_stage_type Gets the next_stage_type of this RemediationRunStage.
previous_stage_type Gets the previous_stage_type of this RemediationRunStage.
remediation_run_id [Required] Gets the remediation_run_id of this RemediationRunStage.
status [Required] Gets the status of this RemediationRunStage.
summary Gets the summary of this RemediationRunStage.
time_created [Required] Gets the time_created of this RemediationRunStage.
time_finished Gets the time_finished of this RemediationRunStage.
time_started Gets the time_started of this RemediationRunStage.
type [Required] Gets the type of this RemediationRunStage.

Methods

__init__(**kwargs) Initializes a new RemediationRunStage 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.
NEXT_STAGE_TYPE_APPLY = 'APPLY'

A constant which can be used with the next_stage_type property of a RemediationRunStage. This constant has a value of “APPLY”

NEXT_STAGE_TYPE_DETECT = 'DETECT'

A constant which can be used with the next_stage_type property of a RemediationRunStage. This constant has a value of “DETECT”

NEXT_STAGE_TYPE_RECOMMEND = 'RECOMMEND'

A constant which can be used with the next_stage_type property of a RemediationRunStage. This constant has a value of “RECOMMEND”

NEXT_STAGE_TYPE_VERIFY = 'VERIFY'

A constant which can be used with the next_stage_type property of a RemediationRunStage. This constant has a value of “VERIFY”

PREVIOUS_STAGE_TYPE_APPLY = 'APPLY'

A constant which can be used with the previous_stage_type property of a RemediationRunStage. This constant has a value of “APPLY”

PREVIOUS_STAGE_TYPE_DETECT = 'DETECT'

A constant which can be used with the previous_stage_type property of a RemediationRunStage. This constant has a value of “DETECT”

PREVIOUS_STAGE_TYPE_RECOMMEND = 'RECOMMEND'

A constant which can be used with the previous_stage_type property of a RemediationRunStage. This constant has a value of “RECOMMEND”

PREVIOUS_STAGE_TYPE_VERIFY = 'VERIFY'

A constant which can be used with the previous_stage_type property of a RemediationRunStage. This constant has a value of “VERIFY”

STATUS_CANCELED = 'CANCELED'

A constant which can be used with the status property of a RemediationRunStage. This constant has a value of “CANCELED”

STATUS_CANCELING = 'CANCELING'

A constant which can be used with the status property of a RemediationRunStage. This constant has a value of “CANCELING”

STATUS_CREATED = 'CREATED'

A constant which can be used with the status property of a RemediationRunStage. This constant has a value of “CREATED”

STATUS_FAILED = 'FAILED'

A constant which can be used with the status property of a RemediationRunStage. This constant has a value of “FAILED”

STATUS_IN_PROGRESS = 'IN_PROGRESS'

A constant which can be used with the status property of a RemediationRunStage. This constant has a value of “IN_PROGRESS”

STATUS_SUCCEEDED = 'SUCCEEDED'

A constant which can be used with the status property of a RemediationRunStage. This constant has a value of “SUCCEEDED”

TYPE_APPLY = 'APPLY'

A constant which can be used with the type property of a RemediationRunStage. This constant has a value of “APPLY”

TYPE_DETECT = 'DETECT'

A constant which can be used with the type property of a RemediationRunStage. This constant has a value of “DETECT”

TYPE_RECOMMEND = 'RECOMMEND'

A constant which can be used with the type property of a RemediationRunStage. This constant has a value of “RECOMMEND”

TYPE_VERIFY = 'VERIFY'

A constant which can be used with the type property of a RemediationRunStage. This constant has a value of “VERIFY”

__init__(**kwargs)

Initializes a new RemediationRunStage 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:
  • status (str) – The value to assign to the status property of this RemediationRunStage. Allowed values for this property are: “CREATED”, “IN_PROGRESS”, “SUCCEEDED”, “FAILED”, “CANCELING”, “CANCELED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • time_created (datetime) – The value to assign to the time_created property of this RemediationRunStage.
  • time_started (datetime) – The value to assign to the time_started property of this RemediationRunStage.
  • time_finished (datetime) – The value to assign to the time_finished property of this RemediationRunStage.
  • type (str) – The value to assign to the type property of this RemediationRunStage. Allowed values for this property are: “DETECT”, “RECOMMEND”, “VERIFY”, “APPLY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • summary (str) – The value to assign to the summary property of this RemediationRunStage.
  • remediation_run_id (str) – The value to assign to the remediation_run_id property of this RemediationRunStage.
  • previous_stage_type (str) – The value to assign to the previous_stage_type property of this RemediationRunStage. Allowed values for this property are: “DETECT”, “RECOMMEND”, “VERIFY”, “APPLY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • next_stage_type (str) – The value to assign to the next_stage_type property of this RemediationRunStage. Allowed values for this property are: “DETECT”, “RECOMMEND”, “VERIFY”, “APPLY”, ‘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.

next_stage_type

Gets the next_stage_type of this RemediationRunStage. The next type of stage in the remediation run.

Allowed values for this property are: “DETECT”, “RECOMMEND”, “VERIFY”, “APPLY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The next_stage_type of this RemediationRunStage.
Return type:str
previous_stage_type

Gets the previous_stage_type of this RemediationRunStage. The previous type of stage in the remediation run.

Allowed values for this property are: “DETECT”, “RECOMMEND”, “VERIFY”, “APPLY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The previous_stage_type of this RemediationRunStage.
Return type:str
remediation_run_id

[Required] Gets the remediation_run_id of this RemediationRunStage. The Oracle Cloud identifier (OCID) of the remediation run.

Returns:The remediation_run_id of this RemediationRunStage.
Return type:str
status

[Required] Gets the status of this RemediationRunStage. The current status of a remediation run stage.

Allowed values for this property are: “CREATED”, “IN_PROGRESS”, “SUCCEEDED”, “FAILED”, “CANCELING”, “CANCELED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The status of this RemediationRunStage.
Return type:str
summary

Gets the summary of this RemediationRunStage. Information about the current step within the stage.

Returns:The summary of this RemediationRunStage.
Return type:str
time_created

[Required] Gets the time_created of this RemediationRunStage. The creation date and time of the remediation run stage (formatted according to RFC3339).

Returns:The time_created of this RemediationRunStage.
Return type:datetime
time_finished

Gets the time_finished of this RemediationRunStage. The date and time of the finish of the remediation run stage (formatted according to RFC3339).

Returns:The time_finished of this RemediationRunStage.
Return type:datetime
time_started

Gets the time_started of this RemediationRunStage. The date and time of the start of the remediation run stage (formatted according to RFC3339).

Returns:The time_started of this RemediationRunStage.
Return type:datetime
type

[Required] Gets the type of this RemediationRunStage. The type of the remediation run stage.

Allowed values for this property are: “DETECT”, “RECOMMEND”, “VERIFY”, “APPLY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The type of this RemediationRunStage.
Return type:str