GroupTask

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

Bases: oci.batch.models.batch_task.BatchTask

Group task is a construct that represents a container of tasks for execution.

Attributes

LIFECYCLE_STATE_ACCEPTED str(object=’’) -> str
LIFECYCLE_STATE_CANCELED str(object=’’) -> str
LIFECYCLE_STATE_CANCELING str(object=’’) -> str
LIFECYCLE_STATE_FAILED str(object=’’) -> str
LIFECYCLE_STATE_IN_PROGRESS str(object=’’) -> str
LIFECYCLE_STATE_SUCCEEDED str(object=’’) -> str
LIFECYCLE_STATE_WAITING str(object=’’) -> str
TYPE_COMPUTE str(object=’’) -> str
TYPE_GROUP str(object=’’) -> str
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.
group_task_name Gets the group_task_name of this BatchTask.
hierarchical_name Gets the hierarchical_name 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.
tasks Gets the tasks of this GroupTask.
type [Required] Gets the type of this BatchTask.

Methods

__init__(**kwargs) Initializes a new GroupTask 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'
LIFECYCLE_STATE_CANCELED = 'CANCELED'
LIFECYCLE_STATE_CANCELING = 'CANCELING'
LIFECYCLE_STATE_FAILED = 'FAILED'
LIFECYCLE_STATE_IN_PROGRESS = 'IN_PROGRESS'
LIFECYCLE_STATE_SUCCEEDED = 'SUCCEEDED'
LIFECYCLE_STATE_WAITING = 'WAITING'
TYPE_COMPUTE = 'COMPUTE'
TYPE_GROUP = 'GROUP'
__init__(**kwargs)

Initializes a new GroupTask object with values from keyword arguments. The default value of the type attribute of this class is GROUP and it should not be changed. 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 GroupTask.
  • name (str) – The value to assign to the name property of this GroupTask.
  • hierarchical_name (str) – The value to assign to the hierarchical_name property of this GroupTask.
  • group_task_name (str) – The value to assign to the group_task_name property of this GroupTask.
  • description (str) – The value to assign to the description property of this GroupTask.
  • type (str) – The value to assign to the type property of this GroupTask. Allowed values for this property are: “COMPUTE”, “GROUP”
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this GroupTask. Allowed values for this property are: “ACCEPTED”, “WAITING”, “IN_PROGRESS”, “SUCCEEDED”, “FAILED”, “CANCELING”, “CANCELED”
  • lifecycle_details (str) – The value to assign to the lifecycle_details property of this GroupTask.
  • entitlement_claims (list[str]) – The value to assign to the entitlement_claims property of this GroupTask.
  • dependencies (list[str]) – The value to assign to the dependencies property of this GroupTask.
  • environment_variables (list[oci.batch.models.EnvironmentVariable]) – The value to assign to the environment_variables property of this GroupTask.
  • tasks (list[str]) – The value to assign to the tasks property of this GroupTask.
dependencies

[Required] Gets the dependencies of this BatchTask. A list of tasks on which this tasks depends, referenced by name. Dependencies must be within the same parent (job or group task). For tasks within a group task, all dependencies must also be within that same group task.

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.

group_task_name

Gets the group_task_name of this BatchTask. The hierarchical name of the group task. Null for top-level tasks.

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

Gets the hierarchical_name of this BatchTask. The hierarchical name of the task, which incorporates names of all parent group tasks, separated by “.” (dot symbol). Maximum nesting depth is 4 levels. Example: groupTaskA.nestedGroupTaskB.thisTaskName

Returns:The hierarchical_name of this BatchTask.
Return type:str
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
tasks

Gets the tasks of this GroupTask. The names of tasks contained directly (non-recursively) within this group task.

Returns:The tasks of this GroupTask.
Return type:list[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”, “GROUP”, ‘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