-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix polymorphic skip normalization (#873)
* Fix Skip Normalize for polymorfic objects * update
- Loading branch information
Showing
8 changed files
with
2,226 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
test/integration/generated/polymorphicSkipNormalize/src/generated/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export * from "./models"; | ||
export { MediaServicesClient } from "./mediaServicesClient"; | ||
export { MediaServicesClientContext } from "./mediaServicesClientContext"; |
12 changes: 12 additions & 0 deletions
12
test/integration/generated/polymorphicSkipNormalize/src/generated/mediaServicesClient.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { MediaServicesClientContext } from "./mediaServicesClientContext"; | ||
import { MediaServicesClientOptionalParams } from "./models"; | ||
|
||
export class MediaServicesClient extends MediaServicesClientContext { | ||
/** | ||
* Initializes a new instance of the MediaServicesClient class. | ||
* @param options The parameter options | ||
*/ | ||
constructor(options?: MediaServicesClientOptionalParams) { | ||
super(options); | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...ntegration/generated/polymorphicSkipNormalize/src/generated/mediaServicesClientContext.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import * as coreHttp from "@azure/core-http"; | ||
import { MediaServicesClientOptionalParams } from "./models"; | ||
|
||
const packageName = "@azure/media-services"; | ||
const packageVersion = "1.0.0-preview1"; | ||
|
||
export class MediaServicesClientContext extends coreHttp.ServiceClient { | ||
/** | ||
* Initializes a new instance of the MediaServicesClientContext class. | ||
* @param options The parameter options | ||
*/ | ||
constructor(options?: MediaServicesClientOptionalParams) { | ||
// Initializing default values for options | ||
if (!options) { | ||
options = {}; | ||
} | ||
|
||
if (!options.userAgent) { | ||
const defaultUserAgent = coreHttp.getDefaultUserAgentValue(); | ||
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; | ||
} | ||
|
||
super(undefined, options); | ||
|
||
this.requestContentType = "application/json; charset=utf-8"; | ||
|
||
this.baseUri = options.endpoint; | ||
} | ||
} |
Oops, something went wrong.