NAME
Azure::SDK::AppConfiguration::CreateSnapshotOperation - snapshot create poller
DESCRIPTION
Tracks an asynchronous App Configuration snapshot creation request. Polling is bounded by an absolute deadline. Each delay is capped to the remaining timeout, and no new poll starts after the deadline.
CONSTRUCTOR
new
Requires snapshot, poll_operation, and get_snapshot. snapshot must be an Azure::SDK::AppConfiguration::ConfigurationSnapshot; both operations must be code references. Optional clock and sleeper callbacks replace the high-resolution system clock and sleep implementation.
METHODS
update_status
Polls once and returns the current snapshot. A successful operation fetches and returns the final snapshot. Failed or canceled operations throw an Azure::SDK::Core::Error.
wait_for_completion
my $snapshot = $operation->wait_for_completion(
poll_interval => 1,
timeout => 60,
);
Polls until the operation completes or the timeout expires. poll_interval defaults to one second and timeout defaults to 60 seconds.
ACCESSORS
snapshot
Returns the latest snapshot model held by the operation.
completed
Returns true after the operation reaches Succeeded or when its initial snapshot is already ready.
SEE ALSO
Azure::SDK::AppConfiguration, Azure::SDK::AppConfiguration::ConfigurationSnapshot