ScriptBasedExecutionDetails

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

Bases: oci.fleet_apps_management.models.execution_details.ExecutionDetails

Details for script-based execution.

Attributes

EXECUTION_TYPE_API str(object=’’) -> str
EXECUTION_TYPE_SCRIPT str(object=’’) -> str
EXECUTION_TYPE_TERRAFORM str(object=’’) -> str
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.
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'
EXECUTION_TYPE_SCRIPT = 'SCRIPT'
EXECUTION_TYPE_TERRAFORM = '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.
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
content

Gets the content of this ScriptBasedExecutionDetails.

Returns:The content of this ScriptBasedExecutionDetails.
Return type:oci.fleet_apps_management.models.ContentDetails
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]
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.

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
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
variables

Gets the variables of this ScriptBasedExecutionDetails.

Returns:The variables of this ScriptBasedExecutionDetails.
Return type:oci.fleet_apps_management.models.TaskVariable