Operation Class

Record to track long running operation.

Inheritance
Operation

Constructor

Operation(*, operation_state=None, created_timestamp: str = None, last_action_timestamp: str = None, resource_location: str = None, user_id: str = None, operation_id: str = None, error_response=None, **kwargs) -> None

Parameters

operation_state
str or OperationStateType
Required

Operation state. Possible values include: 'Failed', 'NotStarted', 'Running', 'Succeeded'

created_timestamp
str
Required

Timestamp when the operation was created.

last_action_timestamp
str
Required

Timestamp when the current state was entered.

resource_location
str
Required

Relative URI to the target resource location for completed resources.

user_id
str
Required

User Id

operation_id
str
Required

Operation Id.

error_response
ErrorResponse
Required

Error details in case of failures.