Skip to content

Releases: Azure/go-autorest

v13.0.1

06 Sep 23:14
69b4126
Compare
Choose a tag to compare

Bug Fixes

  • Fixed autorest.WithQueryParameters() so that it properly encodes multi-value query parameters.

v13.0.0

15 Aug 16:27
5e7a399
Compare
Choose a tag to compare

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

09 Aug 17:04
880eb0e
Compare
Choose a tag to compare

Bug Fixes

  • autorest.MultiTenantServicePrincipalTokenAuthorizer will now properly add its auxiliary bearer tokens.

v12.4.2

06 Aug 22:43
7166fb3
Compare
Choose a tag to compare

Bug Fixes

  • Improvements to the fixes made in v12.4.1.
    • Remove override stanza from Gopkg.toml and replace 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 matching constraint stanzas so that dep dependencies match go.sum.

v12.4.1

01 Aug 15:22
ba1147d
Compare
Choose a tag to compare

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

30 Jul 19:57
efe8ae7
Compare
Choose a tag to compare

New Features

  • Added autorest.WithPrepareDecorators and autorest.GetPrepareDecorators for adding and retrieving a custom chain of PrepareDecorators to the provided context.

v12.3.0

08 Jul 18:01
2913f26
Compare
Choose a tag to compare

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.
    See adal.NewMultiTenantOAuthConfig, adal.NewMultiTenantServicePrincipalToken and autorest.NewMultiTenantServicePrincipalTokenAuthorizer
    along with their supporting types and methods.
  • Added autorest.WithSendDecorators and autorest.GetSendDecorators for adding and retrieving a custom chain of SendDecorators to the provided context.
  • Added autorest.DoRetryForStatusCodesWithCap and autorest.DelayForBackoffWithCap to enforce an upper bound on the duration between retries.

v12.2.0

25 Jun 16:41
09205e8
Compare
Choose a tag to compare

New Features

  • Added autorest.WithXML, autorest.AsMerge, autorest.WithBytes preparer decorators.
  • Added autorest.ByUnmarshallingBytes response decorator.
  • Added Response.IsHTTPStatus and Response.HasHTTPStatus helper methods for inspecting HTTP status code in autorest.Response types.

Bug Fixes

  • autorest.DelayWithRetryAfter now supports HTTP-Dates in the Retry-After header and is not limited to just 429 status codes.

v12.1.0

20 May 22:40
f29a2ec
Compare
Choose a tag to compare

New Features

  • Added to.ByteSlicePtr().
  • Added blob/queue storage resource ID to azure.ResourceIdentifier.

v11.1.2

24 Apr 15:52
1ffcc88
Compare
Choose a tag to compare

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.