DatasourceSyncJobDetails

pydantic model openapi_client.models.datasource_sync_job_details.DatasourceSyncJobDetails

GET /datasources/{datasource_id}/sync-jobs/{job_id} response. DatasourceId and JobReportLocation are removed before return. ResourcesToSync is “All” when it matched the full supported set, otherwise a comma-separated string (or the stored string).

Fields:
field job_id: Optional[StrictStr] = None (alias 'JobId')

Sync job run UUID.

field glue_job_run_id: Optional[StrictStr] = None (alias 'GlueJobRunId')

Catalog Glue run id, or “n/a” for the external-amorphic / metadataonly path.

field job_status: Optional[StrictStr] = None (alias 'JobStatus')

Common values include STARTING, RUNNING, STOPPING, STOPPED, SUCCEEDED, FAILED.

field job_start_time: Optional[StrictStr] = None (alias 'JobStartTime')

Job start timestamp.

field job_end_time: Optional[StrictStr] = None (alias 'JobEndTime')

Job end timestamp when terminal.

field triggered_by: Optional[StrictStr] = None (alias 'TriggeredBy')

User id that started the job.

field resources_to_sync: Optional[StrictStr] = None (alias 'ResourcesToSync')

“All” when every supported Amorphic resource type was selected; otherwise comma-separated names (for example “datasets, glossaries”).

field max_runtime_hours: Optional[StrictInt] = None (alias 'MaxRuntimeHours')

App-level auto-stop hours for catalog Glue sync (default 10 at trigger).

field root_job_id: Optional[StrictStr] = None (alias 'RootJobId')

Root JobId of a resume chain.

field resume_from_job_id: Optional[StrictStr] = None (alias 'ResumeFromJobId')

Predecessor JobId when this run is a resume; null for fresh runs.

field chain_start_time: Optional[StrictStr] = None (alias 'ChainStartTime')

Start time of the logical sync chain (carried across resumes).

field force_sync: Optional[StrictStr] = None (alias 'ForceSync')

Per-run force_sync flag stored at trigger/resume.

field enable_orphan_cleanup: Optional[StrictStr] = None (alias 'EnableOrphanCleanup')

Per-run orphan cleanup flag stored at trigger/resume.

field stopped_by: Optional[StrictStr] = None (alias 'StoppedBy')

User id that requested stop (when stop was triggered).

field log_status: Optional[StrictStr] = None (alias 'LogStatus')

When AVAILABLE, LogsDownloadURL is populated with a presigned GET URL for the job report.

field job_metrics: Optional[DatasourceSyncJobDetailsJobMetrics] = None (alias 'JobMetrics')
field message: Optional[StrictStr] = None (alias 'Message')

Status message on the job record (for example stop notes).

field logs_download_url: Optional[StrictStr] = None (alias 'LogsDownloadURL')

Presigned S3 URL for {job_id}.json when LogStatus is AVAILABLE.

field last_modified_by: Optional[StrictStr] = None (alias 'LastModifiedBy')

User id that last updated the sync job record.

field last_modified_time: Optional[StrictStr] = None (alias 'LastModifiedTime')

Timestamp when the sync job record was last updated.

to_str()

Returns the string representation of the model using alias

Return type:

str

to_json()

Returns the JSON representation of the model using alias

Return type:

str

classmethod from_json(json_str)

Create an instance of DatasourceSyncJobDetails from a JSON string

Return type:

Optional[Self]

to_dict()

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)

Create an instance of DatasourceSyncJobDetails from a dict

Return type:

Optional[Self]