StatusCheckPolling Class

Should be the fallback polling, that don't poll but exit successfully if not other polling are detected and status code is 2xx.

Inheritance
StatusCheckPolling

Constructor

StatusCheckPolling()

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 and set self.status attribute.

can_poll

Answer if this polling method could be used.

can_poll(pipeline_response: PipelineResponseType) -> bool

Parameters

pipeline_response
Required

get_final_get_url

If a final GET is needed, returns the URL.

get_final_get_url(pipeline_response: PipelineResponseType) -> Optional[str]

Parameters

pipeline_response
Required

Return type

str

get_polling_url

Return the polling URL.

get_polling_url() -> str

get_status

Return the status string extracted from this response.

get_status(pipeline_response: PipelineResponseType) -> str

Parameters

pipeline_response
Required

set_initial_status

Process first response after initiating long running operation and set self.status attribute.

set_initial_status(pipeline_response: PipelineResponseType) -> str

Parameters

response
PipelineResponse
Required

initial REST call response.