ExecutionStatus

class openapi_client.models.execution_status.ExecutionStatus(**data)[source]

Bases: BaseModel

id: Optional[StrictStr]
job_id: Optional[StrictStr]
job_run_state: Optional[StrictStr]
started_on: Optional[StrictStr]
last_modified_on: Optional[StrictStr]
completed_on: Optional[StrictStr]
default_arguments: Optional[Dict[str, StrictStr]]
message: Optional[StrictStr]
metrics: Optional[Dict[str, Any]]
allocated_capacity: Optional[Union[StrictFloat, StrictInt]]
max_capacity: Optional[Union[StrictFloat, StrictInt]]
execution_time: Optional[StrictInt]
time_out: Optional[StrictInt]
notify_delay_after: Optional[StrictInt]
worker_type: Optional[StrictStr]
number_of_workers: Optional[StrictInt]
extra_metadata: Optional[ExecutionStatusExtraMetadata]
network_configuration: Optional[StrictStr]
description: Optional[StrictStr]
job_name: Optional[StrictStr]
max_concurrent_runs: Optional[StrictInt]
job_bookmark_option: Optional[StrictStr]
start_time: Optional[StrictStr]
extra_resource_access: Optional[ExecutionStatusExtraResourceAccess]
log_status: Optional[StrictStr]
s3_log_path: Optional[Dict[str, Any]]
is_auto_scaling_enabled: Optional[StrictBool]
model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

to_str()[source]

Returns the string representation of the model using alias

Return type:

str

to_json()[source]

Returns the JSON representation of the model using alias

Return type:

str

classmethod from_json(json_str)[source]

Create an instance of ExecutionStatus from a JSON string

Return type:

Optional[Self]

to_dict()[source]

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True):

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

Return type:

Dict[str, Any]

classmethod from_dict(obj)[source]

Create an instance of ExecutionStatus from a dict

Return type:

Optional[Self]

model_fields: ClassVar[dict[str, FieldInfo]] = {'allocated_capacity': FieldInfo(annotation=Union[Annotated[float, Strict(strict=True)], Annotated[int, Strict(strict=True)], NoneType], required=False, alias='AllocatedCapacity', alias_priority=2), 'completed_on': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='CompletedOn', alias_priority=2), 'default_arguments': FieldInfo(annotation=Union[Dict[str, Annotated[str, Strict(strict=True)]], NoneType], required=False, alias='DefaultArguments', alias_priority=2), 'description': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='Description', alias_priority=2), 'execution_time': FieldInfo(annotation=Union[Annotated[int, Strict(strict=True)], NoneType], required=False, alias='ExecutionTime', alias_priority=2, description='Number in seconds'), 'extra_metadata': FieldInfo(annotation=Union[ExecutionStatusExtraMetadata, NoneType], required=False, alias='ExtraMetadata', alias_priority=2), 'extra_resource_access': FieldInfo(annotation=Union[ExecutionStatusExtraResourceAccess, NoneType], required=False, alias='ExtraResourceAccess', alias_priority=2), 'id': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='Id', alias_priority=2), 'is_auto_scaling_enabled': FieldInfo(annotation=Union[Annotated[bool, Strict(strict=True)], NoneType], required=False, alias='IsAutoScalingEnabled', alias_priority=2), 'job_bookmark_option': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='JobBookmarkOption', alias_priority=2), 'job_id': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='JobId', alias_priority=2), 'job_name': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='JobName', alias_priority=2), 'job_run_state': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='JobRunState', alias_priority=2), 'last_modified_on': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='LastModifiedOn', alias_priority=2), 'log_status': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='LogStatus', alias_priority=2), 'max_capacity': FieldInfo(annotation=Union[Annotated[float, Strict(strict=True)], Annotated[int, Strict(strict=True)], NoneType], required=False, alias='MaxCapacity', alias_priority=2), 'max_concurrent_runs': FieldInfo(annotation=Union[Annotated[int, Strict(strict=True)], NoneType], required=False, alias='MaxConcurrentRuns', alias_priority=2), 'message': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='Message', alias_priority=2), 'metrics': FieldInfo(annotation=Union[Dict[str, Any], NoneType], required=False, alias='Metrics', alias_priority=2), 'network_configuration': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='NetworkConfiguration', alias_priority=2), 'notify_delay_after': FieldInfo(annotation=Union[Annotated[int, Strict(strict=True)], NoneType], required=False, alias='NotifyDelayAfter', alias_priority=2), 'number_of_workers': FieldInfo(annotation=Union[Annotated[int, Strict(strict=True)], NoneType], required=False, alias='NumberOfWorkers', alias_priority=2), 's3_log_path': FieldInfo(annotation=Union[Dict[str, Any], NoneType], required=False, alias='S3LogPath', alias_priority=2), 'start_time': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='StartTime', alias_priority=2), 'started_on': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='StartedOn', alias_priority=2), 'time_out': FieldInfo(annotation=Union[Annotated[int, Strict(strict=True)], NoneType], required=False, alias='TimeOut', alias_priority=2, description='Number in minutes'), 'worker_type': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='WorkerType', alias_priority=2)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

model_post_init(__context)

This function is meant to behave like a BaseModel method to initialise private attributes.

It takes context as an argument since that’s what pydantic-core passes when calling it.

Parameters:
  • self (BaseModel) – The BaseModel instance.

  • __context (Any) – The context.

Return type:

None