次の方法で共有


UpdateMemoriesLROPollingMethod Class

A custom polling method implementation for Memory Store updates.

Constructor

UpdateMemoriesLROPollingMethod(timeout: float = 30, lro_algorithms: Sequence[LongRunningOperation[HttpRequestTypeVar, AllHttpResponseTypeVar]] | None = None, lro_options: Dict[str, Any] | None = None, path_format_arguments: Dict[str, str] | None = None, **operation_config: Any)

Parameters

Name Description
timeout
Default value: 30
lro_algorithms
Default value: None
lro_options
Default value: None
path_format_arguments
Default value: None

Methods

finished

Is this polling finished?

from_continuation_token
get_continuation_token
initialize

Set the initial status of this LRO.

request_status

Do a simple GET to this status link.

This method re-inject 'x-ms-client-request-id'.

resource

Return the built resource.

run
status

Return the current status as a string.

update_status

Update the current status of the LRO.

finished

Is this polling finished?

finished() -> bool

Returns

Type Description

True/False for whether polling is complete.

from_continuation_token

from_continuation_token(continuation_token: str, **kwargs: Any) -> Tuple

Parameters

Name Description
continuation_token
Required

get_continuation_token

get_continuation_token() -> str

initialize

Set the initial status of this LRO.

initialize(client: PipelineClientType, initial_response: PipelineResponse[HttpRequestTypeVar, AllHttpResponseTypeVar], deserialization_callback: Callable[[PipelineResponse[HttpRequestTypeVar, AllHttpResponseTypeVar]], PollingReturnType_co]) -> None

Parameters

Name Description
client
Required
<xref:azure.core.pipeline.PipelineClient>

The Azure Core Pipeline client used to make request.

initial_response
Required

The initial response for the call.

deserialization_callback
Required

A callback function to deserialize the final response.

Exceptions

Type Description
azure.core.HttpResponseError

If initial status is incorrect LRO state

request_status

Do a simple GET to this status link.

This method re-inject 'x-ms-client-request-id'.

request_status(status_link: str) -> PipelineResponse[HttpRequestTypeVar, HttpResponseTypeVar]

Parameters

Name Description
status_link
Required
str

The URL to poll.

Returns

Type Description

The response of the status request.

resource

Return the built resource.

resource() -> PollingReturnType_co

Returns

Type Description
any

The built resource.

run

run() -> None

status

Return the current status as a string.

status() -> str

Returns

Type Description
str

The current status.

update_status

Update the current status of the LRO.

update_status() -> None