Skip to content

Conversation

@chlowell
Copy link
Member

@chlowell chlowell commented Oct 5, 2021

The next version of azcore doesn't contain azcore.Credential, so client constructors must be explicit about the credential types they accept. Pretty straightforward here because there's only one credential type. I renamed the constructor NewCosmosClient -> NewClientWithSharedKey to align with upcoming guidelines for the SDK (the "good" name, NewClient, would go to a constructor taking azcore.TokenCredential, i.e. an Azure AD credential).

@chlowell chlowell added Cosmos Client This issue points to a problem in the data-plane of the library. labels Oct 5, 2021
@chlowell chlowell requested a review from ealsur October 5, 2021 16:26
@chlowell chlowell requested a review from ausfeldt as a code owner October 5, 2021 16:26
@chlowell chlowell requested a review from RickWinter October 5, 2021 16:26
@ealsur
Copy link
Member

ealsur commented Oct 5, 2021

@chlowell The recommendation then is to have NewClient for Azure AD scenarios and NewClientWithSharedKey for the other?

@chlowell
Copy link
Member Author

chlowell commented Oct 5, 2021

Yes.

@ealsur
Copy link
Member

ealsur commented Oct 5, 2021

@ealsur ealsur merged commit ff3d99d into Azure:main Oct 5, 2021
@chlowell chlowell deleted the cosmos-ctor-refactor branch March 8, 2023 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Client This issue points to a problem in the data-plane of the library. Cosmos

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants