-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[ContainerRegistry] switch to use official TS code generator #15777
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
Changes from 1 commit
154ca4b
3781364
68743c7
7965a39
ec13e78
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,17 +27,24 @@ export class GeneratedClientContext extends coreClient.ServiceClient { | |
| if (!options) { | ||
| options = {}; | ||
| } | ||
|
|
||
| const defaults: GeneratedClientOptionalParams = { | ||
| requestContentType: "application/json; charset=utf-8" | ||
| }; | ||
|
|
||
| const packageDetails = `azsdk-js-container-registry/1.0.0-beta.4`; | ||
| const userAgentPrefix = | ||
| options.userAgentOptions && options.userAgentOptions.userAgentPrefix | ||
| ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` | ||
| : `${packageDetails}`; | ||
| options.userAgentOptions = { | ||
| userAgentPrefix: userAgentPrefix | ||
|
||
| }; | ||
|
|
||
| const optionsWithDefaults = { | ||
| ...defaults, | ||
| ...options, | ||
| baseUri: options.endpoint || "{url}" | ||
| }; | ||
|
|
||
| super(optionsWithDefaults); | ||
| // Parameter assignments | ||
| this.url = url; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.