LongRunningOperation Class
Provides default logic for interpreting operation responses and status updates.
- Inheritance
-
builtins.objectLongRunningOperation
Constructor
LongRunningOperation(response, deserialization_callback, lro_options=None, **kwargs)
Parameters
- response
- <xref:requests.Response>
The initial response.
- kwargs
Unused for now
Methods
| get_status_from_async |
Process the latest status update retrieved from a 'azure-asyncoperation' header. |
| get_status_from_location |
Process the latest status update retrieved from a 'location' header. |
| get_status_from_resource |
Process the latest status update retrieved from the same URL as the previous request. |
| get_status_link | |
| parse_resource |
Assuming this response is a resource, use the deserialization callback to parse it. If body is empty, assuming no resource to return. |
| set_async_url_if_present | |
| set_initial_status |
Process first response after initiating long running operation and set self.status attribute. |
| should_do_final_get |
Check whether the polling should end doing a final GET. |
get_status_from_async
Process the latest status update retrieved from a 'azure-asyncoperation' header.
get_status_from_async(response)
Parameters
- response
- <xref:requests.Response>
latest REST call response.
Exceptions
get_status_from_location
Process the latest status update retrieved from a 'location' header.
get_status_from_location(response)
Parameters
- response
- <xref:requests.Response>
latest REST call response.
Exceptions
get_status_from_resource
Process the latest status update retrieved from the same URL as the previous request.
get_status_from_resource(response)
Parameters
- response
- <xref:requests.Response>
latest REST call response.
Exceptions
get_status_link
get_status_link()
Exceptions
parse_resource
Assuming this response is a resource, use the deserialization callback to parse it. If body is empty, assuming no resource to return.
parse_resource(response)
Parameters
- response
Exceptions
set_async_url_if_present
set_async_url_if_present(response)
Parameters
- response
Exceptions
set_initial_status
Process first response after initiating long running operation and set self.status attribute.
set_initial_status(response)
Parameters
- response
- <xref:requests.Response>
initial REST call response.
Exceptions
should_do_final_get
Check whether the polling should end doing a final GET.
should_do_final_get()
Parameters
- response
- <xref:requests.Response>
latest REST call response.
Return type
Exceptions
Feedback
Submit and view feedback for