Skip to content

Commit

Permalink
[AutoPR] apimanagement/resource-manager (#386)
Browse files Browse the repository at this point in the history
* Generated from 5fd82fdceb9c8d853e96d8a2751f3bb238c65091 (#383)

Move version 2018-01-01 to stable folder

* Regenerate @azure/arm-apimanagement package
  • Loading branch information
AutorestCI authored and kpajdzik committed Nov 2, 2018
1 parent 29dbe29 commit 2086e65
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,10 @@ const packageName = "@azure/arm-apimanagement";
const packageVersion = "1.0.0-preview";

export class ApiManagementClientContext extends msRestAzure.AzureServiceClient {

credentials: msRest.ServiceClientCredentials;

apiVersion: string;

apiVersion?: string;
subscriptionId: string;

acceptLanguage: string;

longRunningOperationRetryTimeout: number;

/**
* Initializes a new instance of the ApiManagementClient class.
* @param credentials Credentials needed for the client to connect to Azure.
Expand All @@ -45,6 +38,11 @@ export class ApiManagementClientContext extends msRestAzure.AzureServiceClient {
if (!options) {
options = {};
}
if(!options.userAgent) {
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
}

super(credentials, options);

this.apiVersion = '2018-01-01';
Expand All @@ -55,7 +53,6 @@ export class ApiManagementClientContext extends msRestAzure.AzureServiceClient {
this.credentials = credentials;
this.subscriptionId = subscriptionId;

this.addUserAgentInfo(`${packageName}/${packageVersion}`);
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
this.acceptLanguage = options.acceptLanguage;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/@azure/arm-apimanagement/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "ApiManagementClient Library with typescript type definitions for node.js and browser.",
"version": "1.0.0-preview",
"dependencies": {
"ms-rest-azure-js": "^1.0.176",
"ms-rest-js": "^1.0.455",
"ms-rest-azure-js": "^1.0.181",
"ms-rest-js": "^1.0.457",
"tslib": "^1.9.3"
},
"keywords": [
Expand Down

0 comments on commit 2086e65

Please sign in to comment.