Skip to content

Commit

Permalink
[AutoPR] authorization/resource-manager (#410)
Browse files Browse the repository at this point in the history
* Generated from d4fccc48490d9e1cc66815caa85f7dc1ae5ab473 (#401)

adding PrincipalType

* Regenerated "@azure/arm-authorization" SDK.

* Remove npmignores
  • Loading branch information
AutorestCI authored and kpajdzik committed Nov 6, 2018
1 parent 19587a3 commit 9cb048e
Show file tree
Hide file tree
Showing 14 changed files with 387 additions and 383 deletions.
35 changes: 0 additions & 35 deletions packages/@azure/arm-authorization/.npmignore

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class AuthorizationManagementClient extends AuthorizationManagementClientContext
// Operation groups
classicAdministrators: operations.ClassicAdministrators;
providerOperationsMetadata: operations.ProviderOperationsMetadataOperations;
permissions: operations.Permissions;
roleAssignments: operations.RoleAssignments;
permissions: operations.Permissions;
roleDefinitions: operations.RoleDefinitions;
denyAssignments: operations.DenyAssignments;

Expand All @@ -34,8 +34,8 @@ class AuthorizationManagementClient extends AuthorizationManagementClientContext
super(credentials, subscriptionId, options);
this.classicAdministrators = new operations.ClassicAdministrators(this);
this.providerOperationsMetadata = new operations.ProviderOperationsMetadataOperations(this);
this.permissions = new operations.Permissions(this);
this.roleAssignments = new operations.RoleAssignments(this);
this.permissions = new operations.Permissions(this);
this.roleDefinitions = new operations.RoleDefinitions(this);
this.denyAssignments = new operations.DenyAssignments(this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import * as msRest from "ms-rest-js";
import * as msRestAzure from "ms-rest-azure-js";

const packageName = "@azure/arm-authorization";
const packageVersion = "1.0.0-preview";
const packageVersion = "0.1.0";

export class AuthorizationManagementClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
Expand All @@ -36,6 +36,11 @@ export class AuthorizationManagementClientContext extends msRestAzure.AzureServi
if (!options) {
options = {};
}
if(!options.userAgent) {
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
}

super(credentials, options);

this.acceptLanguage = 'en-US';
Expand All @@ -45,7 +50,6 @@ export class AuthorizationManagementClientContext extends msRestAzure.AzureServi
this.credentials = credentials;
this.subscriptionId = subscriptionId;

this.addUserAgentInfo(`${packageName}/${packageVersion}`);
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
this.acceptLanguage = options.acceptLanguage;
}
Expand Down
Loading

0 comments on commit 9cb048e

Please sign in to comment.