ScriptBasedExecutionDetails

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

Bases: ExecutionDetails

Details for script-based execution.

Attributes:

EXECUTION_TYPE_API

A constant which can be used with the execution_type property of a ExecutionDetails.

EXECUTION_TYPE_SCRIPT

A constant which can be used with the execution_type property of a ExecutionDetails.

EXECUTION_TYPE_TERRAFORM

A constant which can be used with the execution_type property of a ExecutionDetails.

command

Gets the command of this ScriptBasedExecutionDetails.

content

Gets the content of this ScriptBasedExecutionDetails.

credentials

Gets the credentials of this ScriptBasedExecutionDetails.

execution_type

[Required] Gets the execution_type of this ExecutionDetails.

is_executable_content

Gets the is_executable_content of this ScriptBasedExecutionDetails.

is_locked

Gets the is_locked of this ScriptBasedExecutionDetails.

system_variables

Gets the system_variables of this ScriptBasedExecutionDetails.

variables

Gets the variables of this ScriptBasedExecutionDetails.

Methods:

__init__(**kwargs)

Initializes a new ScriptBasedExecutionDetails 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.

EXECUTION_TYPE_API = 'API'

A constant which can be used with the execution_type property of a ExecutionDetails. This constant has a value of “API”

EXECUTION_TYPE_SCRIPT = 'SCRIPT'

A constant which can be used with the execution_type property of a ExecutionDetails. This constant has a value of “SCRIPT”

EXECUTION_TYPE_TERRAFORM = 'TERRAFORM'

A constant which can be used with the execution_type property of a ExecutionDetails. This constant has a value of “TERRAFORM”

__init__(**kwargs)

Initializes a new ScriptBasedExecutionDetails object with values from keyword arguments. The default value of the execution_type attribute of this class is SCRIPT and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • execution_type (str) – The value to assign to the execution_type property of this ScriptBasedExecutionDetails. Allowed values for this property are: “SCRIPT”, “API”, “TERRAFORM”

  • variables (oci.fleet_apps_management.models.TaskVariable) – The value to assign to the variables property of this ScriptBasedExecutionDetails.

  • content (oci.fleet_apps_management.models.ContentDetails) – The value to assign to the content property of this ScriptBasedExecutionDetails.

  • command (str) – The value to assign to the command property of this ScriptBasedExecutionDetails.

  • credentials (list[oci.fleet_apps_management.models.ConfigAssociationDetails]) – The value to assign to the credentials property of this ScriptBasedExecutionDetails.

  • is_locked (bool) – The value to assign to the is_locked property of this ScriptBasedExecutionDetails.

  • is_executable_content (bool) – The value to assign to the is_executable_content property of this ScriptBasedExecutionDetails.

  • system_variables (list[str]) – The value to assign to the system_variables property of this ScriptBasedExecutionDetails.

property command

Gets the command of this ScriptBasedExecutionDetails. Optional command to execute the content. You can provide any commands/arguments that can’t be part of the script.

Returns

The command of this ScriptBasedExecutionDetails.

Return type

str

property content

Gets the content of this ScriptBasedExecutionDetails.

Returns

The content of this ScriptBasedExecutionDetails.

Return type

oci.fleet_apps_management.models.ContentDetails

property credentials

Gets the credentials of this ScriptBasedExecutionDetails. Credentials required for executing the task.

Returns

The credentials of this ScriptBasedExecutionDetails.

Return type

list[oci.fleet_apps_management.models.ConfigAssociationDetails]

property execution_type

[Required] Gets the execution_type of this ExecutionDetails. The action type of the task

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

Returns

The execution_type of this ExecutionDetails.

Return type

str

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 is_executable_content

Gets the is_executable_content of this ScriptBasedExecutionDetails. Is the Content an executable file?

Returns

The is_executable_content of this ScriptBasedExecutionDetails.

Return type

bool

property is_locked

Gets the is_locked of this ScriptBasedExecutionDetails. Is the script locked to prevent changes directly in Object Storage?

Returns

The is_locked of this ScriptBasedExecutionDetails.

Return type

bool

property system_variables

Gets the system_variables of this ScriptBasedExecutionDetails. The list of system variables.

Returns

The system_variables of this ScriptBasedExecutionDetails.

Return type

list[str]

property variables

Gets the variables of this ScriptBasedExecutionDetails.

Returns

The variables of this ScriptBasedExecutionDetails.

Return type

oci.fleet_apps_management.models.TaskVariable