Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Context to RequestOptions #25134

Merged

Conversation

alzimmermsft
Copy link
Member

@alzimmermsft alzimmermsft commented Nov 2, 2021

This PR adds Context to RequestOptions. Having Context on RequestOptions allows for a simplification of LLC APIs. RequestOptions should only be used in LLC APIs, so this won't affect current SDKs.

@alzimmermsft alzimmermsft added Client This issue points to a problem in the data-plane of the library. Azure.Core azure-core labels Nov 2, 2021
@alzimmermsft alzimmermsft self-assigned this Nov 2, 2021
@azure-sdk
Copy link
Collaborator

API changes have been detected in com.azure:azure-core. You can review API changes here

API changes

+         public RequestOptions setContext(Context context) 

Copy link
Member

@lmolkova lmolkova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add tests?

Copy link
Contributor

@pallavit pallavit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

RequestOptions options = methodParser.setRequestOptions(args);
if (options != null) {
Context optionsContext = options.getContext();
if (optionsContext != null && optionsContext != Context.NONE) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we add a perf test for this?
/cc @g2vinay

@alzimmermsft
Copy link
Member Author

/check-enforcer override

@alzimmermsft alzimmermsft merged commit 411eb6e into Azure:main Nov 2, 2021
@alzimmermsft alzimmermsft deleted the AzCore_AddContextToRequestOptions branch November 2, 2021 19:25
azure-sdk pushed a commit to azure-sdk/azure-sdk-for-java that referenced this pull request Aug 25, 2023
[Fleet] API 2023-06-15-preview (Azure#25027)

* Adds base for updating Microsoft.ContainerService/fleet from version preview/2023-03-15-preview to version 2023-06-15-preview

* Updates readme

* Updates API version in new specs and examples

* [Fleet][Dev] API 0615 changes (Azure#25020)

* Adds base for updating Microsoft.ContainerService/fleet from version preview/2023-03-15-preview to version 2023-06-15-preview

* Updates readme

* Updates API version in new specs and examples

* sync with ADO repo

* exclude unneeded file changes

* revert tsp config

* revert helpers.tsp

* remove package files

* remove package files

* add known word containerd

* format

* remove .npmrc

* revert custom word

* revert package-lock.json

* re-generate json

* add example

* add example

* fix read-only fields

* fix read-only fields

* re-generate json with latest compiler

* add custom word back

* re-generate json

* restore config

* add examples

* add examples

* add examples

* add examples

* add examples

* add examples

* prettier

* fix examples

* git ignore

* review commoents

* fix examples

* make node image selection optional

* fix warnings

* fix warnings

* fix warnings

* fix docs

* revert package changes

* compile

* fix tspconfig (Azure#25031)

* [Fleet][readmes] Dev aks fleet 2023 06 15 preview readmes (Azure#25033)

* update readmes
* fix readme mistake

* fix operationid warnings (Azure#25109)

* tsp format (Azure#25111)

* Fix aks fleet 2023 06 15 preview patchasync from 0615 (Azure#25131)

* do the breaking change only from 0615

* fix patch

* compile to get examples

* remove sample

* fix member upate operation (Azure#25134)

* revert extension removal (Azure#25189)

* generate with type spec v0.47.0 (Azure#25484)

---------

Co-authored-by: Stéphane Erbrech <stephane.erbrech@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure.Core azure-core Client This issue points to a problem in the data-plane of the library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants