NL2SQLTrainingDocumentUploadUrlResponse

pydantic model openapi_client.models.nl2_sql_training_document_upload_url_response.NL2SQLTrainingDocumentUploadUrlResponse

Success body for GET /nl2sql/training-documents/{id}?action=get_upload_url. Upload the file by issuing an HTTP PUT to the returned URL. The file is recorded against the document as soon as the URL is issued, before the upload itself completes.

Fields:
field upload_url: StrictStr [Required] (alias 'UploadURL')

Presigned URL to PUT the training file to. Time-limited, so use it promptly.

Constraints:
  • strict = True

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

Return type:

Optional[Self]