ETLJob

class openapi_client.models.etl_job.ETLJob(**data)[source]

Bases: BaseModel

last_modified_by: Optional[StrictStr]
job_name: Optional[StrictStr]
script_location: Optional[StrictStr]
is_active: Optional[StrictStr]
description: Optional[StrictStr]
role_used: Optional[StrictStr]
last_modified: Optional[StrictStr]
allocated_capacity: Optional[Union[StrictFloat, StrictInt]]
max_capacity: Optional[Union[StrictFloat, StrictInt]]
default_arguments: Optional[Dict[str, StrictStr]]
etl_job_type: Optional[StrictStr]
creation_time: Optional[StrictStr]
created_by: Optional[StrictStr]
registration_status: Optional[StrictStr]
id: Optional[StrictStr]
dataset_access: Optional[DatasetAccess]
parameter_access: Optional[List[StrictStr]]
max_retries: Optional[StrictInt]
timeout: Optional[StrictInt]
max_concurrent_runs: Optional[StrictInt]
notify_delay_after: Optional[StrictInt]
python_version: Optional[StrictStr]
glue_version: Optional[StrictStr]
worker_type: Optional[StrictStr]
number_of_workers: Optional[StrictInt]
keywords: Optional[List[StrictStr]]
scala_version: Optional[StrictStr]
job_book_mark_option: Optional[StrictStr]
network_configuration: Optional[StrictStr]
domain_access: Optional[DomainAccess]
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 ETLJob 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 ETLJob 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), 'created_by': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='CreatedBy', alias_priority=2), 'creation_time': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='CreationTime', alias_priority=2), 'dataset_access': FieldInfo(annotation=Union[DatasetAccess, NoneType], required=False, alias='DatasetAccess', 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), 'domain_access': FieldInfo(annotation=Union[DomainAccess, NoneType], required=False, alias='DomainAccess', alias_priority=2), 'etl_job_type': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='ETLJobType', alias_priority=2), 'glue_version': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='GlueVersion', alias_priority=2), 'id': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='Id', alias_priority=2), 'is_active': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='IsActive', alias_priority=2), 'is_auto_scaling_enabled': FieldInfo(annotation=Union[Annotated[bool, Strict(strict=True)], NoneType], required=False, alias='IsAutoScalingEnabled', alias_priority=2), 'job_book_mark_option': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='JobBookMarkOption', alias_priority=2), 'job_name': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='JobName', alias_priority=2), 'keywords': FieldInfo(annotation=Union[List[Annotated[str, Strict(strict=True)]], NoneType], required=False, alias='Keywords', alias_priority=2), 'last_modified': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='LastModified', alias_priority=2), 'last_modified_by': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='LastModifiedBy', 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), 'max_retries': FieldInfo(annotation=Union[Annotated[int, Strict(strict=True)], NoneType], required=False, alias='MaxRetries', 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), 'parameter_access': FieldInfo(annotation=Union[List[Annotated[str, Strict(strict=True)]], NoneType], required=False, alias='ParameterAccess', alias_priority=2), 'python_version': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='PythonVersion', alias_priority=2), 'registration_status': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='RegistrationStatus', alias_priority=2), 'role_used': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='RoleUsed', alias_priority=2), 'scala_version': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='ScalaVersion', alias_priority=2), 'script_location': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='ScriptLocation', alias_priority=2), 'timeout': FieldInfo(annotation=Union[Annotated[int, Strict(strict=True)], NoneType], required=False, alias='Timeout', alias_priority=2), '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