ComponentProperties

class oci.fleet_apps_management.models.ComponentProperties(**kwargs)

Bases: object

The properties of the task.

Attributes

ACTION_ON_FAILURE_ABORT A constant which can be used with the action_on_failure property of a ComponentProperties.
ACTION_ON_FAILURE_CONTINUE A constant which can be used with the action_on_failure property of a ComponentProperties.
ACTION_ON_FAILURE_ROLLBACK A constant which can be used with the action_on_failure property of a ComponentProperties.
action_on_failure [Required] Gets the action_on_failure of this ComponentProperties.
condition Gets the condition of this ComponentProperties.
run_on Gets the run_on of this ComponentProperties.

Methods

__init__(**kwargs) Initializes a new ComponentProperties object with values from keyword arguments.
ACTION_ON_FAILURE_ABORT = 'ABORT'

A constant which can be used with the action_on_failure property of a ComponentProperties. This constant has a value of “ABORT”

ACTION_ON_FAILURE_CONTINUE = 'CONTINUE'

A constant which can be used with the action_on_failure property of a ComponentProperties. This constant has a value of “CONTINUE”

ACTION_ON_FAILURE_ROLLBACK = 'ROLLBACK'

A constant which can be used with the action_on_failure property of a ComponentProperties. This constant has a value of “ROLLBACK”

__init__(**kwargs)

Initializes a new ComponentProperties object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • run_on (str) – The value to assign to the run_on property of this ComponentProperties.
  • condition (str) – The value to assign to the condition property of this ComponentProperties.
  • action_on_failure (str) – The value to assign to the action_on_failure property of this ComponentProperties. Allowed values for this property are: “ABORT”, “CONTINUE”, “ROLLBACK”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
action_on_failure

[Required] Gets the action_on_failure of this ComponentProperties. The action to be taken in case of task failure.

Allowed values for this property are: “ABORT”, “CONTINUE”, “ROLLBACK”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The action_on_failure of this ComponentProperties.
Return type:str
condition

Gets the condition of this ComponentProperties. The condition in which the task is to be executed.

Returns:The condition of this ComponentProperties.
Return type:str
run_on

Gets the run_on of this ComponentProperties. The hosts to execute on.

Returns:The run_on of this ComponentProperties.
Return type:str