1.0.0 (2022-05-12)
Features Added
- Added interface
runtime.PollingHandler
to support custom poller implementations.- Added field
PollingHandler
of this type toruntime.NewPollerOptions[T]
andruntime.NewPollerFromResumeTokenOptions[T]
.
- Added field
Breaking Changes
- Renamed
cloud.Configuration.LoginEndpoint
to.ActiveDirectoryAuthorityHost
- Renamed
cloud.AzurePublicCloud
tocloud.AzurePublic
- Removed
AuxiliaryTenants
field fromarm/ClientOptions
andarm/policy/BearerTokenOptions
- Removed
TokenRequestOptions.TenantID
Poller[T].PollUntilDone()
now takes anoptions *PollUntilDoneOptions
param instead offreq time.Duration
- Removed
arm/runtime.Poller[T]
,arm/runtime.NewPoller[T]()
andarm/runtime.NewPollerFromResumeToken[T]()
- Removed
arm/runtime.FinalStateVia
and relatedconst
values - Renamed
runtime.PageProcessor
toruntime.PagingHandler
- The
arm/runtime.ProviderRepsonse
andarm/runtime.Provider
types are no longer exported. - Renamed
NewRequestIdPolicy()
toNewRequestIDPolicy()
TokenCredential.GetToken
now returnsAccessToken
by value.
Bugs Fixed
- When per-try timeouts are enabled, only cancel the context after the body has been read and closed.
- The
Operation-Location
poller now properly handlesfinal-state-via
values. - Improvements in
runtime.Poller[T]
Poll()
shouldn't cache errors, allowing for additional retries when in a non-terminal state.Result()
will cache the terminal result or error but not transient errors, allowing for additional retries.
Other Changes
- Updated to latest
internal
module and absorbed breaking changes.- Use
temporal.Resource
and deleted copy.
- Use
- The internal poller implementation has been refactored.
- The implementation in
internal/pollers/poller.go
has been merged intoruntime/poller.go
with some slight modification. - The internal poller types had their methods updated to conform to the
runtime.PollingHandler
interface. - The creation of resume tokens has been refactored so that implementers of
runtime.PollingHandler
don't need to know about it.
- The implementation in
NewPipeline()
places policies fromClientOptions
after policies fromPipelineOptions
- Default User-Agent headers no longer include
azcore
version information