MetadataRepairBody

pydantic model openapi_client.models.metadata_repair_body.MetadataRepairBody

Request body for metadata repair. Fields vary by resource_type; unused for jobs, schedules, and data-pipelines.

Fields:
field mode: Optional[StrictStr] = None (alias 'Mode')

report for dry-run, repair to apply fixes. Required for users, datasets, and access-parity; defaults to repair for datasources.

field resource_id: Optional[StrictStr] = None (alias 'ResourceId')

Resource id to repair (user, dataset, or datasource id). Required for single-resource users/datasets and always for datasources.

field batch_repair: Optional[StrictBool] = False (alias 'BatchRepair')

When true, runs batch repair/report for all applicable resources instead of a single ResourceId. Supported for users and datasets only. Defaults to false.

field repair_partitions: Optional[StrictBool] = False (alias 'RepairPartitions')

When true, also repairs dataset partitions. Applicable only when resource_type is datasets. Defaults to false.

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 MetadataRepairBody 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 MetadataRepairBody from a dict

Return type:

Optional[Self]