Releases: Azure/go-autorest
v13.0.1
Bug Fixes
- Fixed
autorest.WithQueryParameters()
so that it properly encodes multi-value query parameters.
v13.0.0
Breaking Changes
The tracing
package has been rewritten to provide a common interface for consumers to wire in the tracing package of their choice.
What this means is that by default no tracing provider will be compiled into your program and setting the AZURE_SDK_TRACING_ENABLED
environment variable will have no effect. To enable this previous behavior you must now add the following include to your source file.
include _ "github.com/Azure/go-autorest/tracing/opencensus"
The APIs required by autorest-generated code have remained but some APIs have been removed and new ones added.
The following APIs and variables have been removed (the majority of them were moved to the opencensus
package).
- tracing.Transport
- tracing.Enable()
- tracing.EnableWithAIForwarding()
- tracing.Disable()
The following APIs and types have been added
- tracing.Tracer
- tracing.Register()
To hook up a tracer simply call tracing.Register()
passing in a type that satisfies the tracing.Tracer
interface.
v12.4.3
Bug Fixes
autorest.MultiTenantServicePrincipalTokenAuthorizer
will now properly add its auxiliary bearer tokens.
v12.4.2
Bug Fixes
- Improvements to the fixes made in v12.4.1.
- Remove
override
stanza from Gopkg.toml andreplace
directive from go.mod as they don't apply when being consumed as a dependency. - Switched to latest version of
ocagent
that still depends on protobuf v1.2. - Add indirect dependencies to the
required
clause with matchingconstraint
stanzas so thatdep
dependencies match go.sum.
- Remove
v12.4.1
Bug Fixes
- Updated OpenCensus and OCAgent versions to versions that don't depend on v1.3+ of protobuf as it was breaking kubernetes.
- Pinned opencensus-proto to a version that's compatible with our versions of OpenCensus and OCAgent.
v12.4.0
New Features
- Added
autorest.WithPrepareDecorators
andautorest.GetPrepareDecorators
for adding and retrieving a custom chain of PrepareDecorators to the provided context.
v12.3.0
New Features
- Support for multi-tenant via x-ms-authorization-auxiliary header has been added for client credentials with
secret scenario; this basically bundles multiple OAuthConfig and ServicePrincipalToken types into corresponding
MultiTenant* types along with a new authorizer that adds the primary and auxiliary token headers to the reqest.
The authenticaion helpers have been updated to support this scenario; if environment var AZURE_AUXILIARY_TENANT_IDS
is set with a semicolon delimited list of tenants the multi-tenant codepath will kick in to create the appropriate authorizer.
Seeadal.NewMultiTenantOAuthConfig
,adal.NewMultiTenantServicePrincipalToken
andautorest.NewMultiTenantServicePrincipalTokenAuthorizer
along with their supporting types and methods. - Added
autorest.WithSendDecorators
andautorest.GetSendDecorators
for adding and retrieving a custom chain of SendDecorators to the provided context. - Added
autorest.DoRetryForStatusCodesWithCap
andautorest.DelayForBackoffWithCap
to enforce an upper bound on the duration between retries.
v12.2.0
New Features
- Added
autorest.WithXML
,autorest.AsMerge
,autorest.WithBytes
preparer decorators. - Added
autorest.ByUnmarshallingBytes
response decorator. - Added
Response.IsHTTPStatus
andResponse.HasHTTPStatus
helper methods for inspecting HTTP status code inautorest.Response
types.
Bug Fixes
autorest.DelayWithRetryAfter
now supports HTTP-Dates in theRetry-After
header and is not limited to just 429 status codes.
v12.1.0
New Features
- Added
to.ByteSlicePtr()
. - Added blob/queue storage resource ID to
azure.ResourceIdentifier
.
v11.1.2
Bug Fixes (back-ports)
- If zero bytes are read from a polling response body don't attempt to unmarshal them.
- For an LRO PUT operation the final GET URL was incorrectly set to the Location polling header in some cases.
- In
Future.WaitForCompletionRef()
if the provided context has a deadline don't add the default deadline.