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

Dpg code gen fix docs #1861

Merged
merged 16 commits into from
May 29, 2023
Merged

Dpg code gen fix docs #1861

merged 16 commits into from
May 29, 2023

Conversation

joheredi
Copy link
Member

The classical client was missing method names. Adding them, also a couple of other fixes:

  • Remove calculated type for deserialize operation parameter
  • Added return type to send function
  • renamed client options after the client

@joheredi joheredi requested a review from sarangan12 as a code owner May 19, 2023 04:17
* Upgrade the cadl-ranch version

* Add test cases for encode

* Typo fix

* Change to workspace
@MaryGao
Copy link
Member

MaryGao commented May 25, 2023

may fix this #1841

new Set(operation.responses.flatMap((r) => r.statusCodes)).values()
);

statusCodes.push("Default");
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 consider LogicalResponse here ? @MaryGao

export class EventGridClient {
private _client: EventGridContext;

/** Azure Messaging EventGrid Client */
constructor(
endpoint: string,
credential: KeyCredential,
options: ClientOptions = {}
options: EventGridClientOptions = {}
Copy link
Member

Choose a reason for hiding this comment

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

Just a reminder, may need to check the ClientOptions in the rest level. Also, should we generate EventGridClientOptions if there's no actual difference between EventGridClientOptions and ClientOptions ? For RLC, the answer is no, right now.

Copy link
Member Author

Choose a reason for hiding this comment

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

Let's add the logic to remove if no client level parameters in a separate PR

@qiaozha qiaozha merged commit df35b83 into Azure:main May 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants