LongRunningOperation Class
Provides default logic for interpreting operation responses and status updates.
- Inheritance
-
builtins.objectLongRunningOperation
Constructor
LongRunningOperation(response, outputs)
Parameters
- response
- outputs
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. |
| 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
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