OperationResource Class

Operation Resource.

Inheritance
OperationResource

Constructor

OperationResource(*, end_time: Optional[datetime.datetime] = None, error: Optional[_models.Error] = None, id: Optional[str] = None, name: Optional[str] = None, status: Optional[str] = None, start_time: Optional[datetime.datetime] = None, **kwargs)

Variables

end_time
datetime

End time of the operation.

error
Error

Required if status == failed or status == canceled. This is the OData v4 error format, used by the RPC and will go into the v2.2 Azure REST API guidelines.

id
str

It should match what is used to GET the operation result.

name
str

It must match the last segment of the "id" field, and will typically be a GUID / system generated value.

status
str

The status of the operation. (InProgress/Success/Failed/Cancelled).

start_time
datetime

Start time of the operation.