Граф коммитов

349 Коммитов

Автор SHA1 Сообщение Дата
Azure SDK Bot 42e30a982a
Increment package version after release of azcore (#23295) 2024-08-07 21:15:16 +00:00
Joel Hendrix 0495c205a1
Prep azcore 1.14.0 for release (#23293) 2024-08-07 13:38:29 -07:00
Joel Hendrix b6553d10e7
Add Attributes field to StartSpanOptions (#23284)
This simplifies creating spans with preset span attributes.
2024-08-05 17:06:19 -07:00
Joel Hendrix 1c486d7831
Include HTTP verb and URL in retry logs (#23239)
For each try, include the HTTP verb and URL in the log message so it's
clear which operation is being retried.
2024-07-24 07:07:36 -07:00
Charles Lowell fe87e2d52c Upgrade dependencies [azp skip] 2024-07-17 15:56:28 +00:00
Azure SDK Bot 6a41e64359
Increment package version after release of azcore (#23197) 2024-07-16 21:36:17 +00:00
Richard Park 94c22e63e8
[azcore] prepping for release (#23192)
* go get -u all in perf and main package
* Bumping minor version for new feature
2024-07-16 20:35:13 +00:00
Richard Park b4b4721223
[azcore] Adding in a function create a policy.Request using an existing *http.Request (#23186)
Adding in a function create a policy.Request using an already created http.Request. This is useful if you want to use our pipelines in contexts where we're not in our generated clients.
2024-07-16 10:49:02 -07:00
Charles Lowell 997700eb1f Upgrade dependencies [azp skip] 2024-07-03 14:11:16 -04:00
Joel Hendrix 156001279a
Fixed race conditions in some tests and infrastructure (#23064)
Cleaned up some lint.
2024-06-13 14:39:28 -07:00
Joel Hendrix b9d87851b8
Update to latest version of golangci-lint (#23013)
* Update to latest version of golangci-lint

* disable gocritic's ifElseChain style check

clean up misc lint
2024-06-07 12:36:04 -07:00
Azure SDK Bot 47662c5c09
Increment package version after release of azcore (#23007) 2024-06-06 21:49:33 +00:00
Joel Hendrix e58902b242
Prep azcore v1.12.0 for release (#23005)
* Prep azcore v1.12.0 for release

* tidy perf test
2024-06-06 10:44:20 -07:00
Joel Hendrix 5211f534bd
Operation-Location poller checks result property (#22980)
* Operation-Location poller checks result property

When a status monitor includes the "final response", it's found in a
JSON property named "result". When making a "final GET", the JSON path
isn't used.

* fix test

* perf tests
2024-06-04 14:43:10 -07:00
Joel Hendrix b2750210ab
Add NewUUID to runtime package (#22953)
For use by generated code to produce UUIDs.
2024-05-28 15:21:05 -07:00
Joel Hendrix ebabe16d31
Support additional success codes when fetching pages (#22932)
Add option to specify additional HTTP status codes indicating success in
pager helper.
2024-05-21 12:47:03 -07:00
Rick Winter e13ea6e16a
Update packages (#22843) 2024-05-06 15:28:59 +00:00
Charles Lowell c23d0097f9
Upgrade all dependencies (#22835) 2024-05-03 11:52:51 -07:00
Rick Winter 05d86a4815
Update dependencies (#22797) 2024-04-29 19:45:10 +00:00
Charles Lowell 98dfe3495d
Upgrade modules to sdk/internal v1.6.0 (#22752) 2024-04-16 17:05:34 -07:00
Azure SDK Bot 43b6420896
Increment package version after release of azcore (#22682) 2024-04-02 23:29:43 +00:00
Joel Hendrix 76e5495a4d
Prep azcore@v1.11.1 for release (#22680) 2024-04-02 15:56:49 -07:00
Joel Hendrix 51ef61545a
runtime.Poller.Result won't be done on non-terminal error (#22675)
* runtime.Poller.Result won't be done on non-terminal error

If the underlying error when retrieving the final result is non
terminal, don't mark the poller as done so callers can retry.

* expand list of transient HTTP status codes
2024-04-02 15:37:37 -07:00
Joel Hendrix 4116d5d5bf
Don't consider 408 as terminal failure for Location poller (#22674)
Treat 408 the same as 429, preserving state and returning the response.
2024-04-02 13:33:52 -07:00
Azure SDK Bot c4b81c2796
Increment package version after release of azcore (#22660) 2024-04-01 16:32:39 +00:00
Joel Hendrix 48635ca6f3
Prep azcore@v1.11.0 for release (#22659)
* Prep azcore@v1.11.0 for release

* update perf tests
2024-04-01 08:26:01 -07:00
Rick Winter 40d267504b
Update loc.go (#22657)
Modify comment for readability.
2024-03-29 18:09:08 +00:00
Joel Hendrix 3c808793a7
Don't consider 429 as terminal failure for Location poller (#22651)
If the polling request is being throttled, preserve the current state
and return the *http.Response.
2024-03-29 09:13:18 -07:00
Joel Hendrix ce45097b4b
Improved support for multipart/form payloads (#22581)
* Improved support for multipart/form payloads

Added type MultipartContent to allow specifying Content-Type and file
name for a payload.
Fixed an issue in SetMultipartFormData that would incorrectly stringify
raw JSON data.

* refactor type checking

* refactor

* use type switch

* update doc comment

* fix Content-Type for non-streaming values

* share quoteEscaper

* remove redundant param
2024-03-21 10:56:14 -07:00
Joel Hendrix d80f30f8d3
Add AllowInsecureAuth to ClientOptions (#22573)
* Add AllowInsecureAuth to ClientOptions

When true, allows authenticated requests over HTTP.

* fix doc comments

* refine doc comments

* rename

* improve doc string
2024-03-18 21:43:34 +00:00
Joel Hendrix f803cc818d
Add StatusCodes option to ARM RP registration policy (#22577)
* Add StatusCodes option to ARM RP registration policy

This lets customers work around services with non-conformant behavior.
Replaced custom resource type parsing with in-box version.

* fix bad merge conflict resolution
2024-03-18 13:38:35 -07:00
Scott Beddall 6289abf0dc
`1ES-template` conversion (#22590)
* Refactor build pipelines to be compatible with 1es-templates
* Move platform matrices to image.yml variable based environment variaables
2024-03-15 11:06:42 -07:00
Joel Hendrix f0ed3b328c
Replace interface{} with any (#22580) 2024-03-12 17:21:42 +00:00
Azure SDK Bot c13b72d427
Increment package version after release of azcore (#22488) 2024-02-29 15:04:35 -08:00
Joel Hendrix 91de7c609e
Prep azcore for release (#22481)
* Prep azcore for release

* fix type-o in comment
2024-02-29 13:31:39 -08:00
Joel Hendrix d742ee853b
Add MatchConditions to azcore (#22476) 2024-02-29 06:55:36 -08:00
Joel Hendrix a8a12bbc53
Escape semicolons in query params before parsing (#22460)
For compat reasons, url.ParseQuery will reject semicolons within query
params. So, we must escape them first.
2024-02-27 10:02:15 -08:00
Joel Hendrix 89ee9d0ee5
Add logging event EventResponseError (#22411)
* Add logging event EventResponseError

This event is logged whenever an azcore.ResponseError is created. The
contents are from ResponseError.Error().
Add NewResponseErrorWithErrorCode to support creating ResponseErrors
when the error code is in a non-standard location.

* cleanup

* verify no extra logs
2024-02-21 14:04:53 -08:00
Joel Hendrix 9732d67866
Fix potential race between NullValue and IsNullValue (#22410)
Note that since IsNullValue is on a hot path, it must never block in the
common case.
2024-02-20 11:13:27 -08:00
Azure SDK Bot 1e48089573
Increment package version after release of azcore (#22353) 2024-02-06 16:36:57 +00:00
Joel Hendrix c802646e69
Update to latest internal module (#22149)
* Update to latest internal module

Add test for ResponseError with nil response body.

* go mod tidy

* prep for release
2024-02-06 08:04:07 -08:00
Joel Hendrix 572ba1f275
JSON marshaling helpers will preserve Content-Type (#22309)
* JSON marshaling helpers will preserve Content-Type

The codegen for TypeSpec can explicitly set the Content-Type header. We
must prefer this value when set.

* fix doc comment
2024-01-30 12:53:18 -08:00
Azure SDK Bot 3a1e9b9fed
Increment package version after release of azcore (#22124) 2023-12-11 16:49:29 +00:00
Joel Hendrix bfa13229ab
Prep azcore for release (#22122)
* Prep azcore for release

* update perf test
2023-12-08 16:01:54 -08:00
Joel Hendrix e96bba7214
Add more retry after headers to check during retries (#22121)
* Add more retry after headers to check during retries

Include the headers that provide sub-second granularity.

* add clarifying comment and negative tests

* simplify custom
2023-12-08 15:28:54 -08:00
Azure SDK Bot 2ddf1e52ff
Increment package version after release of azcore (#21898) 2023-11-07 00:05:21 +00:00
Joel Hendrix a33741bba5
Prep azcore for release (#21879) 2023-11-06 12:12:20 -08:00
Joel Hendrix 440232ec65
Strip off package name for telemetry policy (#21894)
If a fully qualified module name is provided.
2023-11-06 11:57:55 -08:00
Joel Hendrix 8c1a49630f
Rename clientName param to moduleName (#21893)
Per spec, the tracer name should be the name of the module.
Removed some unnecessary code.
2023-11-06 10:45:38 -08:00
Joel Hendrix 637c5ed84d
Update to latest internal module (#21872)
* Update to latest internal module

Used NonRetriableError from internal.

* update perf test
2023-11-03 07:12:14 -07:00