DocumentModelSummary Class

A summary of document model information including the model ID, its description, and when the model was created.

New in version 2023-07-31: The expires_on property.

Inheritance
builtins.object
DocumentModelSummary

Constructor

DocumentModelSummary(**kwargs: Any)

Methods

from_dict

Converts a dict in the shape of a DocumentModelSummary to the model itself.

to_dict

Returns a dict representation of DocumentModelSummary.

from_dict

Converts a dict in the shape of a DocumentModelSummary to the model itself.

from_dict(data: Dict[str, Any]) -> DocumentModelSummary

Parameters

Name Description
data
Required

A dictionary in the shape of DocumentModelSummary.

Returns

Type Description

DocumentModelSummary

to_dict

Returns a dict representation of DocumentModelSummary.

to_dict() -> Dict[str, Any]

Returns

Type Description

Dict[str, Any]

Attributes

api_version

API version used to create this model.

api_version: str | None

created_on

Date and time (UTC) when the model was created.

created_on: datetime

description

A description for the model.

description: str | None

expires_on

Date and time (UTC) when the document model will expire.

expires_on: datetime | None

model_id

Unique model id.

model_id: str

tags

List of user defined key-value tag attributes associated with the model.

tags: Dict[str, str] | None