-
Notifications
You must be signed in to change notification settings - Fork 73
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
rename client class name for rlc #1349
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking care of this! Just a couple of nits about how the factories are exported.
test/smoke/generated/purview-administration-rest/review/purview-administration-rest.api.md
Show resolved
Hide resolved
@@ -884,6 +880,10 @@ export interface CascadeDeleteJobOutput { | |||
status?: string; | |||
} | |||
|
|||
// @public (undocumented) | |||
function createClient(Endpoint: string, options?: ClientOptions): AzureAgriFoodPlatformDataPlaneServiceClient; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should only export this as the default export to leave for later adding a second client, what do you think @joheredi ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice if we could somehow make this clear in api-extractor or else api reviews are going to be misleading
test/smoke/generated/purview-administration-rest/review/purview-administration-rest.api.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left another comment after another pass
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change the export to as createClient
for multi-client packages
Currently we are adding a
Like
suffix for client class name, and keep the title name as client factory name.In this PR, we will add a
Client
suffix for client class name, if it's not end withClient
. and usecreateClient
as the client factory name. and remove the default export of client factory name for multi-clients.