CreateComputeTaskDetails

class oci.batch.models.CreateComputeTaskDetails(**kwargs)

Bases: oci.batch.models.create_batch_task_details.CreateBatchTaskDetails

compute task represents a single executable command together with its dependencies and resources.

Attributes

TYPE_COMPUTE str(object=’’) -> str
arguments Gets the arguments of this CreateComputeTaskDetails.
batch_task_environment_id [Required] Gets the batch_task_environment_id of this CreateComputeTaskDetails.
batch_task_profile_id Gets the batch_task_profile_id of this CreateComputeTaskDetails.
command Gets the command of this CreateComputeTaskDetails.
dependencies Gets the dependencies of this CreateBatchTaskDetails.
description Gets the description of this CreateBatchTaskDetails.
entitlement_claims Gets the entitlement_claims of this CreateBatchTaskDetails.
environment_variables Gets the environment_variables of this CreateBatchTaskDetails.
fleet_assignment_policy Gets the fleet_assignment_policy of this CreateComputeTaskDetails.
name [Required] Gets the name of this CreateBatchTaskDetails.
type [Required] Gets the type of this CreateBatchTaskDetails.

Methods

__init__(**kwargs) Initializes a new CreateComputeTaskDetails 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.
TYPE_COMPUTE = 'COMPUTE'
__init__(**kwargs)

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

Parameters:
  • name (str) – The value to assign to the name property of this CreateComputeTaskDetails.
  • description (str) – The value to assign to the description property of this CreateComputeTaskDetails.
  • type (str) – The value to assign to the type property of this CreateComputeTaskDetails. Allowed values for this property are: “COMPUTE”
  • entitlement_claims (list[str]) – The value to assign to the entitlement_claims property of this CreateComputeTaskDetails.
  • dependencies (list[str]) – The value to assign to the dependencies property of this CreateComputeTaskDetails.
  • environment_variables (list[oci.batch.models.EnvironmentVariable]) – The value to assign to the environment_variables property of this CreateComputeTaskDetails.
  • batch_task_profile_id (str) – The value to assign to the batch_task_profile_id property of this CreateComputeTaskDetails.
  • command (list[str]) – The value to assign to the command property of this CreateComputeTaskDetails.
  • arguments (list[str]) – The value to assign to the arguments property of this CreateComputeTaskDetails.
  • fleet_assignment_policy (oci.batch.models.FleetAssignmentPolicy) – The value to assign to the fleet_assignment_policy property of this CreateComputeTaskDetails.
  • batch_task_environment_id (str) – The value to assign to the batch_task_environment_id property of this CreateComputeTaskDetails.
arguments

Gets the arguments of this CreateComputeTaskDetails. Task arguments.

Returns:The arguments of this CreateComputeTaskDetails.
Return type:list[str]
batch_task_environment_id

[Required] Gets the batch_task_environment_id of this CreateComputeTaskDetails. The OCID of the BatchTaskEnvironment.

Returns:The batch_task_environment_id of this CreateComputeTaskDetails.
Return type:str
batch_task_profile_id

Gets the batch_task_profile_id of this CreateComputeTaskDetails. The OCID of the batch task profile used for this task.

Returns:The batch_task_profile_id of this CreateComputeTaskDetails.
Return type:str
command

Gets the command of this CreateComputeTaskDetails. An executable command to start the processing of this task.

Returns:The command of this CreateComputeTaskDetails.
Return type:list[str]
dependencies

Gets the dependencies of this CreateBatchTaskDetails. A list of tasks from the same job this task depends on referenced by name.

Returns:The dependencies of this CreateBatchTaskDetails.
Return type:list[str]
description

Gets the description of this CreateBatchTaskDetails. An optional description that provides additional context next to the displayName.

Returns:The description of this CreateBatchTaskDetails.
Return type:str
entitlement_claims

Gets the entitlement_claims of this CreateBatchTaskDetails. A list of resources (for example licences) this task needs for its execution.

Returns:The entitlement_claims of this CreateBatchTaskDetails.
Return type:list[str]
environment_variables

Gets the environment_variables of this CreateBatchTaskDetails. Environment variables to use for the task execution.

Returns:The environment_variables of this CreateBatchTaskDetails.
Return type:list[oci.batch.models.EnvironmentVariable]
fleet_assignment_policy

Gets the fleet_assignment_policy of this CreateComputeTaskDetails.

Returns:The fleet_assignment_policy of this CreateComputeTaskDetails.
Return type:oci.batch.models.FleetAssignmentPolicy
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.

name

[Required] Gets the name of this CreateBatchTaskDetails. The name of the batch task. It must be unique within its parent batch job.

Returns:The name of this CreateBatchTaskDetails.
Return type:str
type

[Required] Gets the type of this CreateBatchTaskDetails. Type of the batch task. Also serves as a discriminator for sub-entities.

Allowed values for this property are: “COMPUTE”

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