LongRunningOperation Class
Provides default logic for interpreting operation responses and status updates.
- Inheritance
-
LongRunningOperation
Constructor
LongRunningOperation()
Parameters
- kwargs
Required
Unused for now
Methods
| can_poll |
Answer if this polling method could be used. |
| get_final_get_url |
If a final GET is needed, returns the URL. |
| get_polling_url |
Return the polling URL. |
| get_status |
Return the status string extracted from this response. |
| set_initial_status |
Process first response after initiating long running operation. |
can_poll
Answer if this polling method could be used.
abstract can_poll(pipeline_response: PipelineResponseType) -> bool
Parameters
- pipeline_response
Required
get_final_get_url
If a final GET is needed, returns the URL.
abstract get_final_get_url(pipeline_response: PipelineResponseType) -> Optional[str]
Parameters
- pipeline_response
Required
Return type
get_polling_url
Return the polling URL.
abstract get_polling_url() -> str
get_status
Return the status string extracted from this response.
abstract get_status(pipeline_response: PipelineResponseType) -> str
Parameters
- pipeline_response
Required
set_initial_status
Process first response after initiating long running operation.
abstract set_initial_status(pipeline_response: PipelineResponseType) -> str
Parameters
Feedback
Submit and view feedback for