ModelOperationInfo Class

Model operation information, including the kind and status of the operation, when it was created, and more.

Note that operation information only persists for 24 hours. If the operation was successful, the model can be accessed using the <xref:azure.ai.formrecognizer.get_model> or <xref:azure.ai.formrecognizer.list_models> APIs. To find out why an operation failed, use <xref:azure.ai.formrecognizer.get_operation> and provide the operation_id.

New in version v2022-01-30-preview: The api_version and tags properties

Inheritance
builtins.object
ModelOperationInfo

Constructor

ModelOperationInfo(**kwargs)

Variables

operation_id
str

Operation ID.

status
str

Operation status. Possible values include: "notStarted", "running", "failed", "succeeded", "canceled".

percent_completed
int

Operation progress (0-100).

created_on
datetime

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

last_updated_on
datetime

Date and time (UTC) when the operation was last updated.

kind
str

Type of operation. Possible values include: "documentModelBuild", "documentModelCompose", "documentModelCopyTo".

resource_location
str

URL of the resource targeted by this operation.

api_version
str

API version used to create this operation.

tags
dict[str, str]

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

Methods

from_dict

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

to_dict

Returns a dict representation of ModelOperationInfo.

from_dict

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

from_dict(data: dict) -> azure.ai.formrecognizer._models.ModelOperationInfo

Parameters

data
dict
Required

A dictionary in the shape of ModelOperationInfo.

data
Required

Returns

ModelOperationInfo

Return type

to_dict

Returns a dict representation of ModelOperationInfo.

to_dict() -> dict

Returns

dict

Return type