BatchTask

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

Bases: object

A batch task contains common properties for all types of job tasks.

Attributes

LIFECYCLE_STATE_ACCEPTED A constant which can be used with the lifecycle_state property of a BatchTask.
LIFECYCLE_STATE_CANCELED A constant which can be used with the lifecycle_state property of a BatchTask.
LIFECYCLE_STATE_CANCELING A constant which can be used with the lifecycle_state property of a BatchTask.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a BatchTask.
LIFECYCLE_STATE_IN_PROGRESS A constant which can be used with the lifecycle_state property of a BatchTask.
LIFECYCLE_STATE_SUCCEEDED A constant which can be used with the lifecycle_state property of a BatchTask.
LIFECYCLE_STATE_WAITING A constant which can be used with the lifecycle_state property of a BatchTask.
TYPE_COMPUTE A constant which can be used with the type property of a BatchTask.
dependencies [Required] Gets the dependencies of this BatchTask.
description Gets the description of this BatchTask.
entitlement_claims [Required] Gets the entitlement_claims of this BatchTask.
environment_variables [Required] Gets the environment_variables of this BatchTask.
id [Required] Gets the id of this BatchTask.
lifecycle_details Gets the lifecycle_details of this BatchTask.
lifecycle_state Gets the lifecycle_state of this BatchTask.
name [Required] Gets the name of this BatchTask.
type [Required] Gets the type of this BatchTask.

Methods

__init__(**kwargs) Initializes a new BatchTask 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.
LIFECYCLE_STATE_ACCEPTED = 'ACCEPTED'

A constant which can be used with the lifecycle_state property of a BatchTask. This constant has a value of “ACCEPTED”

LIFECYCLE_STATE_CANCELED = 'CANCELED'

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

LIFECYCLE_STATE_CANCELING = 'CANCELING'

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

LIFECYCLE_STATE_FAILED = 'FAILED'

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

LIFECYCLE_STATE_IN_PROGRESS = 'IN_PROGRESS'

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

LIFECYCLE_STATE_SUCCEEDED = 'SUCCEEDED'

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

LIFECYCLE_STATE_WAITING = 'WAITING'

A constant which can be used with the lifecycle_state property of a BatchTask. This constant has a value of “WAITING”

TYPE_COMPUTE = 'COMPUTE'

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

__init__(**kwargs)

Initializes a new BatchTask 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:
  • id (str) – The value to assign to the id property of this BatchTask.
  • name (str) – The value to assign to the name property of this BatchTask.
  • description (str) – The value to assign to the description property of this BatchTask.
  • type (str) – The value to assign to the type property of this BatchTask. Allowed values for this property are: “COMPUTE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this BatchTask. Allowed values for this property are: “ACCEPTED”, “WAITING”, “IN_PROGRESS”, “SUCCEEDED”, “FAILED”, “CANCELING”, “CANCELED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • lifecycle_details (str) – The value to assign to the lifecycle_details property of this BatchTask.
  • entitlement_claims (list[str]) – The value to assign to the entitlement_claims property of this BatchTask.
  • dependencies (list[str]) – The value to assign to the dependencies property of this BatchTask.
  • environment_variables (list[oci.batch.models.EnvironmentVariable]) – The value to assign to the environment_variables property of this BatchTask.
dependencies

[Required] Gets the dependencies of this BatchTask. A list of tasks from the same job this task depends on referenced by name.

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

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

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

[Required] Gets the entitlement_claims of this BatchTask. A list of resources (for example licences) this task needs for its execution.

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

[Required] Gets the environment_variables of this BatchTask. Environment variables to use for the task execution.

Returns:The environment_variables of this BatchTask.
Return type:list[oci.batch.models.EnvironmentVariable]
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.

id

[Required] Gets the id of this BatchTask. The UUID of batch task.

Returns:The id of this BatchTask.
Return type:str
lifecycle_details

Gets the lifecycle_details of this BatchTask. A message that describes the current state of the batch task in more detail. For example, can be used to provide actionable information for a resource in the Failed state.

Returns:The lifecycle_details of this BatchTask.
Return type:str
lifecycle_state

Gets the lifecycle_state of this BatchTask. The current state of the batch task.

Allowed values for this property are: “ACCEPTED”, “WAITING”, “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 lifecycle_state of this BatchTask.
Return type:str
name

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

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

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

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

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