From d518a803810fe48d850af44c7789e1a2591e9977 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Thu, 13 Aug 2020 00:00:37 +0000 Subject: [PATCH] Update from master --- .../arm-authorization/LICENSE.txt | 2 +- sdk/authorization/arm-authorization/README.md | 57 +-- .../arm-authorization/package.json | 16 +- .../arm-authorization/rollup.config.js | 2 +- .../src/authorizationManagementClient.ts | 4 +- .../authorizationManagementClientContext.ts | 2 +- .../arm-authorization/src/models/index.ts | 476 +++++++++--------- .../arm-authorization/src/models/mappers.ts | 306 ++++++----- .../src/models/parameters.ts | 4 +- .../src/operations/denyAssignments.ts | 12 +- .../arm-authorization/src/operations/index.ts | 2 +- .../src/operations/roleAssignments.ts | 20 +- .../arm-authorization/tsconfig.json | 2 +- 13 files changed, 480 insertions(+), 425 deletions(-) diff --git a/sdk/authorization/arm-authorization/LICENSE.txt b/sdk/authorization/arm-authorization/LICENSE.txt index b73b4a1293c3..ea8fb1516028 100644 --- a/sdk/authorization/arm-authorization/LICENSE.txt +++ b/sdk/authorization/arm-authorization/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2019 Microsoft +Copyright (c) 2020 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/authorization/arm-authorization/README.md b/sdk/authorization/arm-authorization/README.md index 00b867f0df83..50726c907263 100644 --- a/sdk/authorization/arm-authorization/README.md +++ b/sdk/authorization/arm-authorization/README.md @@ -19,29 +19,29 @@ npm install @azure/arm-authorization ##### Install @azure/ms-rest-nodeauth +- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. ```bash -npm install @azure/ms-rest-nodeauth +npm install @azure/ms-rest-nodeauth@"^3.0.0" ``` ##### Sample code -```javascript -const { AuthorizationManagementClient } = require("@azure/arm-authorization"); -const { interactiveLogin } = require("@azure/ms-rest-nodeauth"); - +```typescript +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; +import { AuthorizationManagementClient, AuthorizationManagementModels, AuthorizationManagementMappers } from "@azure/arm-authorization"; const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -interactiveLogin() - .then((creds) => { - const client = new AuthorizationManagementClient(creds, subscriptionId); - client.classicAdministrators.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); - }) - .catch((err) => { - console.error(err); +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new AuthorizationManagementClient(creds, subscriptionId); + client.classicAdministrators.list().then((result) => { + console.log("The result is:"); + console.log(result); }); +}).catch((err) => { + console.error(err); +}); ``` #### browser - Authentication, client creation and list classicAdministrators as an example written in JavaScript. @@ -57,7 +57,6 @@ npm install @azure/ms-rest-browserauth See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - index.html - ```html @@ -71,27 +70,21 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to const subscriptionId = ""; const authManager = new msAuth.AuthManager({ clientId: "", - tenant: "", + tenant: "" }); authManager.finalizeLogin().then((res) => { if (!res.isLoggedIn) { // may cause redirects authManager.login(); } - const client = new Azure.ArmAuthorization.AuthorizationManagementClient( - res.creds, - subscriptionId - ); - client.classicAdministrators - .list() - .then((result) => { - console.log("The result is:"); - console.log(result); - }) - .catch((err) => { - console.log("An error occurred:"); - console.error(err); - }); + const client = new Azure.ArmAuthorization.AuthorizationManagementClient(res.creds, subscriptionId); + client.classicAdministrators.list().then((result) => { + console.log("The result is:"); + console.log(result); + }).catch((err) => { + console.log("An error occurred:"); + console.error(err); + }); }); @@ -103,4 +96,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fauthorization%2Farm-authorization%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/authorization/arm-authorization/README.png) diff --git a/sdk/authorization/arm-authorization/package.json b/sdk/authorization/arm-authorization/package.json index e8c1c708f434..fef2ab3a0855 100644 --- a/sdk/authorization/arm-authorization/package.json +++ b/sdk/authorization/arm-authorization/package.json @@ -2,11 +2,11 @@ "name": "@azure/arm-authorization", "author": "Microsoft Corporation", "description": "AuthorizationManagementClient Library with typescript type definitions for node.js and browser.", - "version": "8.3.3", + "version": "8.3.2", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.0", - "@azure/ms-rest-js": "^2.0.3", - "tslib": "^1.9.3" + "@azure/ms-rest-azure-js": "^2.0.1", + "@azure/ms-rest-js": "^2.0.4", + "tslib": "^1.10.0" }, "keywords": [ "node", @@ -20,11 +20,11 @@ "module": "./esm/authorizationManagementClient.js", "types": "./esm/authorizationManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", - "rollup": "^0.66.2", - "rollup-plugin-node-resolve": "^3.4.0", + "typescript": "^3.5.3", + "rollup": "^1.18.0", + "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", - "uglify-js": "^3.4.9" + "uglify-js": "^3.6.0" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/authorization/arm-authorization", "repository": { diff --git a/sdk/authorization/arm-authorization/rollup.config.js b/sdk/authorization/arm-authorization/rollup.config.js index 72dc3f8ec5c7..97e514a0c02d 100644 --- a/sdk/authorization/arm-authorization/rollup.config.js +++ b/sdk/authorization/arm-authorization/rollup.config.js @@ -29,7 +29,7 @@ const config = { */` }, plugins: [ - nodeResolve({ module: true }), + nodeResolve({ mainFields: ['module', 'main'] }), sourcemaps() ] }; diff --git a/sdk/authorization/arm-authorization/src/authorizationManagementClient.ts b/sdk/authorization/arm-authorization/src/authorizationManagementClient.ts index 38d6e007d768..89783498e17f 100644 --- a/sdk/authorization/arm-authorization/src/authorizationManagementClient.ts +++ b/sdk/authorization/arm-authorization/src/authorizationManagementClient.ts @@ -20,10 +20,10 @@ class AuthorizationManagementClient extends AuthorizationManagementClientContext classicAdministrators: operations.ClassicAdministrators; globalAdministrator: operations.GlobalAdministrator; providerOperationsMetadata: operations.ProviderOperationsMetadataOperations; - roleAssignments: operations.RoleAssignments; permissions: operations.Permissions; roleDefinitions: operations.RoleDefinitions; denyAssignments: operations.DenyAssignments; + roleAssignments: operations.RoleAssignments; /** * Initializes a new instance of the AuthorizationManagementClient class. @@ -36,10 +36,10 @@ class AuthorizationManagementClient extends AuthorizationManagementClientContext this.classicAdministrators = new operations.ClassicAdministrators(this); this.globalAdministrator = new operations.GlobalAdministrator(this); this.providerOperationsMetadata = new operations.ProviderOperationsMetadataOperations(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); + this.roleAssignments = new operations.RoleAssignments(this); } } diff --git a/sdk/authorization/arm-authorization/src/authorizationManagementClientContext.ts b/sdk/authorization/arm-authorization/src/authorizationManagementClientContext.ts index 2b1aabd7fe6c..456c9aec612d 100644 --- a/sdk/authorization/arm-authorization/src/authorizationManagementClientContext.ts +++ b/sdk/authorization/arm-authorization/src/authorizationManagementClientContext.ts @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-authorization"; -const packageVersion = "8.3.3"; +const packageVersion = "8.3.2"; export class AuthorizationManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; diff --git a/sdk/authorization/arm-authorization/src/models/index.ts b/sdk/authorization/arm-authorization/src/models/index.ts index 36ef6945f8f9..799cf8921219 100644 --- a/sdk/authorization/arm-authorization/src/models/index.ts +++ b/sdk/authorization/arm-authorization/src/models/index.ts @@ -115,88 +115,6 @@ export interface ProviderOperationsMetadata { operations?: ProviderOperation[]; } -/** - * Role Assignments filter - */ -export interface RoleAssignmentFilter { - /** - * Returns role assignment of the specific principal. - */ - principalId?: string; - /** - * The Delegation flag for the role assignment - */ - canDelegate?: boolean; -} - -/** - * Role Assignments - */ -export interface RoleAssignment { - /** - * The role assignment ID. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; - /** - * The role assignment name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * The role assignment type. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; - /** - * The role assignment scope. - */ - scope?: string; - /** - * The role definition ID. - */ - roleDefinitionId?: string; - /** - * The principal ID. - */ - principalId?: string; - /** - * The principal type of the assigned principal ID. Possible values include: 'User', 'Group', - * 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', 'Application', 'MSI', - * 'DirectoryObjectOrGroup', 'Everyone' - */ - principalType?: PrincipalType; - /** - * The Delegation flag for the role assignment - */ - canDelegate?: boolean; -} - -/** - * Role assignment create parameters. - */ -export interface RoleAssignmentCreateParameters { - /** - * The role definition ID used in the role assignment. - */ - roleDefinitionId: string; - /** - * The principal ID assigned to the role. This maps to the ID inside the Active Directory. It can - * point to a user, service principal, or security group. - */ - principalId: string; - /** - * The principal type of the assigned principal ID. Possible values include: 'User', 'Group', - * 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', 'Application', 'MSI', - * 'DirectoryObjectOrGroup', 'Everyone' - */ - principalType?: PrincipalType; - /** - * The delegation flag used for creating a role assignment - */ - canDelegate?: boolean; -} - /** * Role Definitions filter */ @@ -390,71 +308,131 @@ export interface DenyAssignment { } /** - * Optional Parameters. + * Role Assignments filter */ -export interface ProviderOperationsMetadataGetOptionalParams extends msRest.RequestOptionsBase { +export interface RoleAssignmentFilter { /** - * Specifies whether to expand the values. Default value: 'resourceTypes'. + * Returns role assignment of the specific principal. */ - expand?: string; -} - -/** - * Optional Parameters. - */ -export interface ProviderOperationsMetadataListOptionalParams extends msRest.RequestOptionsBase { + principalId?: string; /** - * Specifies whether to expand the values. Default value: 'resourceTypes'. + * The Delegation flag for the role assignment */ - expand?: string; + canDelegate?: boolean; } /** - * Optional Parameters. + * Role Assignments */ -export interface RoleAssignmentsListForResourceOptionalParams extends msRest.RequestOptionsBase { +export interface RoleAssignment { /** - * The filter to apply on the operation. Use $filter=atScope() to return all role assignments at - * or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above - * or below the scope for the specified principal. + * The role assignment ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - filter?: string; + readonly id?: string; + /** + * The role assignment name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The role assignment type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The role assignment scope. + */ + scope?: string; + /** + * The role definition ID. + */ + roleDefinitionId?: string; + /** + * The principal ID. + */ + principalId?: string; + /** + * The principal type of the assigned principal ID. Possible values include: 'User', 'Group', + * 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', 'Application', 'MSI', + * 'DirectoryObjectOrGroup', 'Everyone' + */ + principalType?: PrincipalType; + /** + * The Delegation flag for the role assignment + */ + canDelegate?: boolean; + /** + * Description of role assignment + */ + description?: string; + /** + * The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: + * @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] + * StringEqualsIgnoreCase 'foo_storage_container' + */ + condition?: string; + /** + * Version of the condition. Currently accepted values are '1.0' or '2.0' + */ + conditionVersion?: string; } /** - * Optional Parameters. + * Role assignment create parameters. */ -export interface RoleAssignmentsListForResourceGroupOptionalParams extends msRest.RequestOptionsBase { +export interface RoleAssignmentCreateParameters { /** - * The filter to apply on the operation. Use $filter=atScope() to return all role assignments at - * or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above - * or below the scope for the specified principal. + * The role definition ID used in the role assignment. */ - filter?: string; + roleDefinitionId: string; + /** + * The principal ID assigned to the role. This maps to the ID inside the Active Directory. It can + * point to a user, service principal, or security group. + */ + principalId: string; + /** + * The principal type of the assigned principal ID. Possible values include: 'User', 'Group', + * 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', 'Application', 'MSI', + * 'DirectoryObjectOrGroup', 'Everyone' + */ + principalType?: PrincipalType; + /** + * The delegation flag used for creating a role assignment + */ + canDelegate?: boolean; + /** + * Description of role assignment + */ + description?: string; + /** + * The conditions on the role assignment + */ + condition?: string; + /** + * Version of the condition + */ + conditionVersion?: string; } /** * Optional Parameters. */ -export interface RoleAssignmentsListOptionalParams extends msRest.RequestOptionsBase { +export interface ProviderOperationsMetadataGetOptionalParams extends msRest.RequestOptionsBase { /** - * The filter to apply on the operation. Use $filter=atScope() to return all role assignments at - * or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above - * or below the scope for the specified principal. + * Specifies whether to expand the values. Default value: 'resourceTypes'. */ - filter?: string; + expand?: string; } /** * Optional Parameters. */ -export interface RoleAssignmentsListForScopeOptionalParams extends msRest.RequestOptionsBase { +export interface ProviderOperationsMetadataListOptionalParams extends msRest.RequestOptionsBase { /** - * The filter to apply on the operation. Use $filter=atScope() to return all role assignments at - * or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above - * or below the scope for the specified principal. + * Specifies whether to expand the values. Default value: 'resourceTypes'. */ - filter?: string; + expand?: string; } /** @@ -544,6 +522,54 @@ export interface DenyAssignmentsListForScopeOptionalParams extends msRest.Reques filter?: string; } +/** + * Optional Parameters. + */ +export interface RoleAssignmentsListForResourceOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply on the operation. Use $filter=atScope() to return all role assignments at + * or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above + * or below the scope for the specified principal. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface RoleAssignmentsListForResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply on the operation. Use $filter=atScope() to return all role assignments at + * or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above + * or below the scope for the specified principal. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface RoleAssignmentsListOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply on the operation. Use $filter=atScope() to return all role assignments at + * or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above + * or below the scope for the specified principal. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface RoleAssignmentsListForScopeOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply on the operation. Use $filter=atScope() to return all role assignments at + * or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above + * or below the scope for the specified principal. + */ + filter?: string; +} + /** * An interface representing AuthorizationManagementClientOptions. */ @@ -575,18 +601,6 @@ export interface ProviderOperationsMetadataListResult extends Array - */ -export interface RoleAssignmentListResult extends Array { - /** - * The URL to use for getting the next set of results. - */ - nextLink?: string; -} - /** * @interface * Permissions information. @@ -623,6 +637,18 @@ export interface DenyAssignmentListResult extends Array { nextLink?: string; } +/** + * @interface + * Role assignment list operation result. + * @extends Array + */ +export interface RoleAssignmentListResult extends Array { + /** + * The URL to use for getting the next set of results. + */ + nextLink?: string; +} + /** * Defines values for PrincipalType. * Possible values include: 'User', 'Group', 'ServicePrincipal', 'Unknown', @@ -734,9 +760,9 @@ export type ProviderOperationsMetadataListNextResponse = ProviderOperationsMetad }; /** - * Contains response data for the listForResource operation. + * Contains response data for the listForResourceGroup operation. */ -export type RoleAssignmentsListForResourceResponse = RoleAssignmentListResult & { +export type PermissionsListForResourceGroupResponse = PermissionGetResult & { /** * The underlying HTTP response. */ @@ -749,14 +775,14 @@ export type RoleAssignmentsListForResourceResponse = RoleAssignmentListResult & /** * The response body as parsed JSON or XML */ - parsedBody: RoleAssignmentListResult; + parsedBody: PermissionGetResult; }; }; /** - * Contains response data for the listForResourceGroup operation. + * Contains response data for the listForResource operation. */ -export type RoleAssignmentsListForResourceGroupResponse = RoleAssignmentListResult & { +export type PermissionsListForResourceResponse = PermissionGetResult & { /** * The underlying HTTP response. */ @@ -769,14 +795,14 @@ export type RoleAssignmentsListForResourceGroupResponse = RoleAssignmentListResu /** * The response body as parsed JSON or XML */ - parsedBody: RoleAssignmentListResult; + parsedBody: PermissionGetResult; }; }; /** - * Contains response data for the deleteMethod operation. + * Contains response data for the listForResourceGroupNext operation. */ -export type RoleAssignmentsDeleteMethodResponse = RoleAssignment & { +export type PermissionsListForResourceGroupNextResponse = PermissionGetResult & { /** * The underlying HTTP response. */ @@ -789,14 +815,14 @@ export type RoleAssignmentsDeleteMethodResponse = RoleAssignment & { /** * The response body as parsed JSON or XML */ - parsedBody: RoleAssignment; + parsedBody: PermissionGetResult; }; }; /** - * Contains response data for the create operation. + * Contains response data for the listForResourceNext operation. */ -export type RoleAssignmentsCreateResponse = RoleAssignment & { +export type PermissionsListForResourceNextResponse = PermissionGetResult & { /** * The underlying HTTP response. */ @@ -809,14 +835,14 @@ export type RoleAssignmentsCreateResponse = RoleAssignment & { /** * The response body as parsed JSON or XML */ - parsedBody: RoleAssignment; + parsedBody: PermissionGetResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the deleteMethod operation. */ -export type RoleAssignmentsGetResponse = RoleAssignment & { +export type RoleDefinitionsDeleteMethodResponse = RoleDefinition & { /** * The underlying HTTP response. */ @@ -829,14 +855,14 @@ export type RoleAssignmentsGetResponse = RoleAssignment & { /** * The response body as parsed JSON or XML */ - parsedBody: RoleAssignment; + parsedBody: RoleDefinition; }; }; /** - * Contains response data for the deleteById operation. + * Contains response data for the get operation. */ -export type RoleAssignmentsDeleteByIdResponse = RoleAssignment & { +export type RoleDefinitionsGetResponse = RoleDefinition & { /** * The underlying HTTP response. */ @@ -849,14 +875,14 @@ export type RoleAssignmentsDeleteByIdResponse = RoleAssignment & { /** * The response body as parsed JSON or XML */ - parsedBody: RoleAssignment; + parsedBody: RoleDefinition; }; }; /** - * Contains response data for the createById operation. + * Contains response data for the createOrUpdate operation. */ -export type RoleAssignmentsCreateByIdResponse = RoleAssignment & { +export type RoleDefinitionsCreateOrUpdateResponse = RoleDefinition & { /** * The underlying HTTP response. */ @@ -869,14 +895,14 @@ export type RoleAssignmentsCreateByIdResponse = RoleAssignment & { /** * The response body as parsed JSON or XML */ - parsedBody: RoleAssignment; + parsedBody: RoleDefinition; }; }; /** - * Contains response data for the getById operation. + * Contains response data for the list operation. */ -export type RoleAssignmentsGetByIdResponse = RoleAssignment & { +export type RoleDefinitionsListResponse = RoleDefinitionListResult & { /** * The underlying HTTP response. */ @@ -889,14 +915,14 @@ export type RoleAssignmentsGetByIdResponse = RoleAssignment & { /** * The response body as parsed JSON or XML */ - parsedBody: RoleAssignment; + parsedBody: RoleDefinitionListResult; }; }; /** - * Contains response data for the list operation. + * Contains response data for the getById operation. */ -export type RoleAssignmentsListResponse = RoleAssignmentListResult & { +export type RoleDefinitionsGetByIdResponse = RoleDefinition & { /** * The underlying HTTP response. */ @@ -909,14 +935,14 @@ export type RoleAssignmentsListResponse = RoleAssignmentListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: RoleAssignmentListResult; + parsedBody: RoleDefinition; }; }; /** - * Contains response data for the listForScope operation. + * Contains response data for the listNext operation. */ -export type RoleAssignmentsListForScopeResponse = RoleAssignmentListResult & { +export type RoleDefinitionsListNextResponse = RoleDefinitionListResult & { /** * The underlying HTTP response. */ @@ -929,14 +955,14 @@ export type RoleAssignmentsListForScopeResponse = RoleAssignmentListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: RoleAssignmentListResult; + parsedBody: RoleDefinitionListResult; }; }; /** - * Contains response data for the listForResourceNext operation. + * Contains response data for the listForResource operation. */ -export type RoleAssignmentsListForResourceNextResponse = RoleAssignmentListResult & { +export type DenyAssignmentsListForResourceResponse = DenyAssignmentListResult & { /** * The underlying HTTP response. */ @@ -949,14 +975,14 @@ export type RoleAssignmentsListForResourceNextResponse = RoleAssignmentListResul /** * The response body as parsed JSON or XML */ - parsedBody: RoleAssignmentListResult; + parsedBody: DenyAssignmentListResult; }; }; /** - * Contains response data for the listForResourceGroupNext operation. + * Contains response data for the listForResourceGroup operation. */ -export type RoleAssignmentsListForResourceGroupNextResponse = RoleAssignmentListResult & { +export type DenyAssignmentsListForResourceGroupResponse = DenyAssignmentListResult & { /** * The underlying HTTP response. */ @@ -969,14 +995,14 @@ export type RoleAssignmentsListForResourceGroupNextResponse = RoleAssignmentList /** * The response body as parsed JSON or XML */ - parsedBody: RoleAssignmentListResult; + parsedBody: DenyAssignmentListResult; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type RoleAssignmentsListNextResponse = RoleAssignmentListResult & { +export type DenyAssignmentsListResponse = DenyAssignmentListResult & { /** * The underlying HTTP response. */ @@ -989,14 +1015,14 @@ export type RoleAssignmentsListNextResponse = RoleAssignmentListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: RoleAssignmentListResult; + parsedBody: DenyAssignmentListResult; }; }; /** - * Contains response data for the listForScopeNext operation. + * Contains response data for the get operation. */ -export type RoleAssignmentsListForScopeNextResponse = RoleAssignmentListResult & { +export type DenyAssignmentsGetResponse = DenyAssignment & { /** * The underlying HTTP response. */ @@ -1009,14 +1035,14 @@ export type RoleAssignmentsListForScopeNextResponse = RoleAssignmentListResult & /** * The response body as parsed JSON or XML */ - parsedBody: RoleAssignmentListResult; + parsedBody: DenyAssignment; }; }; /** - * Contains response data for the listForResourceGroup operation. + * Contains response data for the getById operation. */ -export type PermissionsListForResourceGroupResponse = PermissionGetResult & { +export type DenyAssignmentsGetByIdResponse = DenyAssignment & { /** * The underlying HTTP response. */ @@ -1029,14 +1055,14 @@ export type PermissionsListForResourceGroupResponse = PermissionGetResult & { /** * The response body as parsed JSON or XML */ - parsedBody: PermissionGetResult; + parsedBody: DenyAssignment; }; }; /** - * Contains response data for the listForResource operation. + * Contains response data for the listForScope operation. */ -export type PermissionsListForResourceResponse = PermissionGetResult & { +export type DenyAssignmentsListForScopeResponse = DenyAssignmentListResult & { /** * The underlying HTTP response. */ @@ -1049,14 +1075,14 @@ export type PermissionsListForResourceResponse = PermissionGetResult & { /** * The response body as parsed JSON or XML */ - parsedBody: PermissionGetResult; + parsedBody: DenyAssignmentListResult; }; }; /** - * Contains response data for the listForResourceGroupNext operation. + * Contains response data for the listForResourceNext operation. */ -export type PermissionsListForResourceGroupNextResponse = PermissionGetResult & { +export type DenyAssignmentsListForResourceNextResponse = DenyAssignmentListResult & { /** * The underlying HTTP response. */ @@ -1069,14 +1095,14 @@ export type PermissionsListForResourceGroupNextResponse = PermissionGetResult & /** * The response body as parsed JSON or XML */ - parsedBody: PermissionGetResult; + parsedBody: DenyAssignmentListResult; }; }; /** - * Contains response data for the listForResourceNext operation. + * Contains response data for the listForResourceGroupNext operation. */ -export type PermissionsListForResourceNextResponse = PermissionGetResult & { +export type DenyAssignmentsListForResourceGroupNextResponse = DenyAssignmentListResult & { /** * The underlying HTTP response. */ @@ -1089,14 +1115,14 @@ export type PermissionsListForResourceNextResponse = PermissionGetResult & { /** * The response body as parsed JSON or XML */ - parsedBody: PermissionGetResult; + parsedBody: DenyAssignmentListResult; }; }; /** - * Contains response data for the deleteMethod operation. + * Contains response data for the listNext operation. */ -export type RoleDefinitionsDeleteMethodResponse = RoleDefinition & { +export type DenyAssignmentsListNextResponse = DenyAssignmentListResult & { /** * The underlying HTTP response. */ @@ -1109,14 +1135,14 @@ export type RoleDefinitionsDeleteMethodResponse = RoleDefinition & { /** * The response body as parsed JSON or XML */ - parsedBody: RoleDefinition; + parsedBody: DenyAssignmentListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listForScopeNext operation. */ -export type RoleDefinitionsGetResponse = RoleDefinition & { +export type DenyAssignmentsListForScopeNextResponse = DenyAssignmentListResult & { /** * The underlying HTTP response. */ @@ -1129,14 +1155,14 @@ export type RoleDefinitionsGetResponse = RoleDefinition & { /** * The response body as parsed JSON or XML */ - parsedBody: RoleDefinition; + parsedBody: DenyAssignmentListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listForResource operation. */ -export type RoleDefinitionsCreateOrUpdateResponse = RoleDefinition & { +export type RoleAssignmentsListForResourceResponse = RoleAssignmentListResult & { /** * The underlying HTTP response. */ @@ -1149,14 +1175,14 @@ export type RoleDefinitionsCreateOrUpdateResponse = RoleDefinition & { /** * The response body as parsed JSON or XML */ - parsedBody: RoleDefinition; + parsedBody: RoleAssignmentListResult; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listForResourceGroup operation. */ -export type RoleDefinitionsListResponse = RoleDefinitionListResult & { +export type RoleAssignmentsListForResourceGroupResponse = RoleAssignmentListResult & { /** * The underlying HTTP response. */ @@ -1169,14 +1195,14 @@ export type RoleDefinitionsListResponse = RoleDefinitionListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: RoleDefinitionListResult; + parsedBody: RoleAssignmentListResult; }; }; /** - * Contains response data for the getById operation. + * Contains response data for the deleteMethod operation. */ -export type RoleDefinitionsGetByIdResponse = RoleDefinition & { +export type RoleAssignmentsDeleteMethodResponse = RoleAssignment & { /** * The underlying HTTP response. */ @@ -1189,14 +1215,14 @@ export type RoleDefinitionsGetByIdResponse = RoleDefinition & { /** * The response body as parsed JSON or XML */ - parsedBody: RoleDefinition; + parsedBody: RoleAssignment; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the create operation. */ -export type RoleDefinitionsListNextResponse = RoleDefinitionListResult & { +export type RoleAssignmentsCreateResponse = RoleAssignment & { /** * The underlying HTTP response. */ @@ -1209,14 +1235,14 @@ export type RoleDefinitionsListNextResponse = RoleDefinitionListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: RoleDefinitionListResult; + parsedBody: RoleAssignment; }; }; /** - * Contains response data for the listForResource operation. + * Contains response data for the get operation. */ -export type DenyAssignmentsListForResourceResponse = DenyAssignmentListResult & { +export type RoleAssignmentsGetResponse = RoleAssignment & { /** * The underlying HTTP response. */ @@ -1229,14 +1255,14 @@ export type DenyAssignmentsListForResourceResponse = DenyAssignmentListResult & /** * The response body as parsed JSON or XML */ - parsedBody: DenyAssignmentListResult; + parsedBody: RoleAssignment; }; }; /** - * Contains response data for the listForResourceGroup operation. + * Contains response data for the deleteById operation. */ -export type DenyAssignmentsListForResourceGroupResponse = DenyAssignmentListResult & { +export type RoleAssignmentsDeleteByIdResponse = RoleAssignment & { /** * The underlying HTTP response. */ @@ -1249,14 +1275,14 @@ export type DenyAssignmentsListForResourceGroupResponse = DenyAssignmentListResu /** * The response body as parsed JSON or XML */ - parsedBody: DenyAssignmentListResult; + parsedBody: RoleAssignment; }; }; /** - * Contains response data for the list operation. + * Contains response data for the createById operation. */ -export type DenyAssignmentsListResponse = DenyAssignmentListResult & { +export type RoleAssignmentsCreateByIdResponse = RoleAssignment & { /** * The underlying HTTP response. */ @@ -1269,14 +1295,14 @@ export type DenyAssignmentsListResponse = DenyAssignmentListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DenyAssignmentListResult; + parsedBody: RoleAssignment; }; }; /** - * Contains response data for the get operation. + * Contains response data for the getById operation. */ -export type DenyAssignmentsGetResponse = DenyAssignment & { +export type RoleAssignmentsGetByIdResponse = RoleAssignment & { /** * The underlying HTTP response. */ @@ -1289,14 +1315,14 @@ export type DenyAssignmentsGetResponse = DenyAssignment & { /** * The response body as parsed JSON or XML */ - parsedBody: DenyAssignment; + parsedBody: RoleAssignment; }; }; /** - * Contains response data for the getById operation. + * Contains response data for the list operation. */ -export type DenyAssignmentsGetByIdResponse = DenyAssignment & { +export type RoleAssignmentsListResponse = RoleAssignmentListResult & { /** * The underlying HTTP response. */ @@ -1309,14 +1335,14 @@ export type DenyAssignmentsGetByIdResponse = DenyAssignment & { /** * The response body as parsed JSON or XML */ - parsedBody: DenyAssignment; + parsedBody: RoleAssignmentListResult; }; }; /** * Contains response data for the listForScope operation. */ -export type DenyAssignmentsListForScopeResponse = DenyAssignmentListResult & { +export type RoleAssignmentsListForScopeResponse = RoleAssignmentListResult & { /** * The underlying HTTP response. */ @@ -1329,14 +1355,14 @@ export type DenyAssignmentsListForScopeResponse = DenyAssignmentListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DenyAssignmentListResult; + parsedBody: RoleAssignmentListResult; }; }; /** * Contains response data for the listForResourceNext operation. */ -export type DenyAssignmentsListForResourceNextResponse = DenyAssignmentListResult & { +export type RoleAssignmentsListForResourceNextResponse = RoleAssignmentListResult & { /** * The underlying HTTP response. */ @@ -1349,14 +1375,14 @@ export type DenyAssignmentsListForResourceNextResponse = DenyAssignmentListResul /** * The response body as parsed JSON or XML */ - parsedBody: DenyAssignmentListResult; + parsedBody: RoleAssignmentListResult; }; }; /** * Contains response data for the listForResourceGroupNext operation. */ -export type DenyAssignmentsListForResourceGroupNextResponse = DenyAssignmentListResult & { +export type RoleAssignmentsListForResourceGroupNextResponse = RoleAssignmentListResult & { /** * The underlying HTTP response. */ @@ -1369,14 +1395,14 @@ export type DenyAssignmentsListForResourceGroupNextResponse = DenyAssignmentList /** * The response body as parsed JSON or XML */ - parsedBody: DenyAssignmentListResult; + parsedBody: RoleAssignmentListResult; }; }; /** * Contains response data for the listNext operation. */ -export type DenyAssignmentsListNextResponse = DenyAssignmentListResult & { +export type RoleAssignmentsListNextResponse = RoleAssignmentListResult & { /** * The underlying HTTP response. */ @@ -1389,14 +1415,14 @@ export type DenyAssignmentsListNextResponse = DenyAssignmentListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DenyAssignmentListResult; + parsedBody: RoleAssignmentListResult; }; }; /** * Contains response data for the listForScopeNext operation. */ -export type DenyAssignmentsListForScopeNextResponse = DenyAssignmentListResult & { +export type RoleAssignmentsListForScopeNextResponse = RoleAssignmentListResult & { /** * The underlying HTTP response. */ @@ -1409,6 +1435,6 @@ export type DenyAssignmentsListForScopeNextResponse = DenyAssignmentListResult & /** * The response body as parsed JSON or XML */ - parsedBody: DenyAssignmentListResult; + parsedBody: RoleAssignmentListResult; }; }; diff --git a/sdk/authorization/arm-authorization/src/models/mappers.ts b/sdk/authorization/arm-authorization/src/models/mappers.ts index ee2cfdc282cc..b432fe04b080 100644 --- a/sdk/authorization/arm-authorization/src/models/mappers.ts +++ b/sdk/authorization/arm-authorization/src/models/mappers.ts @@ -190,125 +190,6 @@ export const ProviderOperationsMetadata: msRest.CompositeMapper = { } }; -export const RoleAssignmentFilter: msRest.CompositeMapper = { - serializedName: "RoleAssignmentFilter", - type: { - name: "Composite", - className: "RoleAssignmentFilter", - modelProperties: { - principalId: { - serializedName: "principalId", - type: { - name: "String" - } - }, - canDelegate: { - serializedName: "canDelegate", - type: { - name: "Boolean" - } - } - } - } -}; - -export const RoleAssignment: msRest.CompositeMapper = { - serializedName: "RoleAssignment", - type: { - name: "Composite", - className: "RoleAssignment", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - scope: { - serializedName: "properties.scope", - type: { - name: "String" - } - }, - roleDefinitionId: { - serializedName: "properties.roleDefinitionId", - type: { - name: "String" - } - }, - principalId: { - serializedName: "properties.principalId", - type: { - name: "String" - } - }, - principalType: { - serializedName: "properties.principalType", - type: { - name: "String" - } - }, - canDelegate: { - serializedName: "properties.canDelegate", - type: { - name: "Boolean" - } - } - } - } -}; - -export const RoleAssignmentCreateParameters: msRest.CompositeMapper = { - serializedName: "RoleAssignmentCreateParameters", - type: { - name: "Composite", - className: "RoleAssignmentCreateParameters", - modelProperties: { - roleDefinitionId: { - required: true, - serializedName: "properties.roleDefinitionId", - type: { - name: "String" - } - }, - principalId: { - required: true, - serializedName: "properties.principalId", - type: { - name: "String" - } - }, - principalType: { - serializedName: "properties.principalType", - type: { - name: "String" - } - }, - canDelegate: { - serializedName: "properties.canDelegate", - type: { - name: "Boolean" - } - } - } - } -}; - export const RoleDefinitionFilter: msRest.CompositeMapper = { serializedName: "RoleDefinitionFilter", type: { @@ -660,6 +541,161 @@ export const DenyAssignment: msRest.CompositeMapper = { } }; +export const RoleAssignmentFilter: msRest.CompositeMapper = { + serializedName: "RoleAssignmentFilter", + type: { + name: "Composite", + className: "RoleAssignmentFilter", + modelProperties: { + principalId: { + serializedName: "principalId", + type: { + name: "String" + } + }, + canDelegate: { + serializedName: "canDelegate", + type: { + name: "Boolean" + } + } + } + } +}; + +export const RoleAssignment: msRest.CompositeMapper = { + serializedName: "RoleAssignment", + type: { + name: "Composite", + className: "RoleAssignment", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + scope: { + serializedName: "properties.scope", + type: { + name: "String" + } + }, + roleDefinitionId: { + serializedName: "properties.roleDefinitionId", + type: { + name: "String" + } + }, + principalId: { + serializedName: "properties.principalId", + type: { + name: "String" + } + }, + principalType: { + serializedName: "properties.principalType", + type: { + name: "String" + } + }, + canDelegate: { + serializedName: "properties.canDelegate", + type: { + name: "Boolean" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + condition: { + serializedName: "properties.condition", + type: { + name: "String" + } + }, + conditionVersion: { + serializedName: "properties.conditionVersion", + type: { + name: "String" + } + } + } + } +}; + +export const RoleAssignmentCreateParameters: msRest.CompositeMapper = { + serializedName: "RoleAssignmentCreateParameters", + type: { + name: "Composite", + className: "RoleAssignmentCreateParameters", + modelProperties: { + roleDefinitionId: { + required: true, + serializedName: "properties.roleDefinitionId", + type: { + name: "String" + } + }, + principalId: { + required: true, + serializedName: "properties.principalId", + type: { + name: "String" + } + }, + principalType: { + serializedName: "properties.principalType", + type: { + name: "String" + } + }, + canDelegate: { + serializedName: "properties.canDelegate", + type: { + name: "Boolean" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + condition: { + serializedName: "properties.condition", + type: { + name: "String" + } + }, + conditionVersion: { + serializedName: "properties.conditionVersion", + type: { + name: "String" + } + } + } + } +}; + export const ClassicAdministratorListResult: msRest.CompositeMapper = { serializedName: "ClassicAdministratorListResult", type: { @@ -716,11 +752,11 @@ export const ProviderOperationsMetadataListResult: msRest.CompositeMapper = { } }; -export const RoleAssignmentListResult: msRest.CompositeMapper = { - serializedName: "RoleAssignmentListResult", +export const PermissionGetResult: msRest.CompositeMapper = { + serializedName: "PermissionGetResult", type: { name: "Composite", - className: "RoleAssignmentListResult", + className: "PermissionGetResult", modelProperties: { value: { serializedName: "", @@ -729,7 +765,7 @@ export const RoleAssignmentListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "RoleAssignment" + className: "Permission" } } } @@ -744,11 +780,11 @@ export const RoleAssignmentListResult: msRest.CompositeMapper = { } }; -export const PermissionGetResult: msRest.CompositeMapper = { - serializedName: "PermissionGetResult", +export const RoleDefinitionListResult: msRest.CompositeMapper = { + serializedName: "RoleDefinitionListResult", type: { name: "Composite", - className: "PermissionGetResult", + className: "RoleDefinitionListResult", modelProperties: { value: { serializedName: "", @@ -757,7 +793,7 @@ export const PermissionGetResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Permission" + className: "RoleDefinition" } } } @@ -772,11 +808,11 @@ export const PermissionGetResult: msRest.CompositeMapper = { } }; -export const RoleDefinitionListResult: msRest.CompositeMapper = { - serializedName: "RoleDefinitionListResult", +export const DenyAssignmentListResult: msRest.CompositeMapper = { + serializedName: "DenyAssignmentListResult", type: { name: "Composite", - className: "RoleDefinitionListResult", + className: "DenyAssignmentListResult", modelProperties: { value: { serializedName: "", @@ -785,7 +821,7 @@ export const RoleDefinitionListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "RoleDefinition" + className: "DenyAssignment" } } } @@ -800,11 +836,11 @@ export const RoleDefinitionListResult: msRest.CompositeMapper = { } }; -export const DenyAssignmentListResult: msRest.CompositeMapper = { - serializedName: "DenyAssignmentListResult", +export const RoleAssignmentListResult: msRest.CompositeMapper = { + serializedName: "RoleAssignmentListResult", type: { name: "Composite", - className: "DenyAssignmentListResult", + className: "RoleAssignmentListResult", modelProperties: { value: { serializedName: "", @@ -813,7 +849,7 @@ export const DenyAssignmentListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "DenyAssignment" + className: "RoleAssignment" } } } diff --git a/sdk/authorization/arm-authorization/src/models/parameters.ts b/sdk/authorization/arm-authorization/src/models/parameters.ts index f6016339a51d..a2e0bdda8806 100644 --- a/sdk/authorization/arm-authorization/src/models/parameters.ts +++ b/sdk/authorization/arm-authorization/src/models/parameters.ts @@ -62,7 +62,7 @@ export const apiVersion3: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2018-09-01-preview', + defaultValue: '2018-07-01-preview', type: { name: "String" } @@ -74,7 +74,7 @@ export const apiVersion4: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2018-07-01-preview', + defaultValue: '2020-04-01-preview', type: { name: "String" } diff --git a/sdk/authorization/arm-authorization/src/operations/denyAssignments.ts b/sdk/authorization/arm-authorization/src/operations/denyAssignments.ts index e864b8780f9c..0ec0af80b2b8 100644 --- a/sdk/authorization/arm-authorization/src/operations/denyAssignments.ts +++ b/sdk/authorization/arm-authorization/src/operations/denyAssignments.ts @@ -349,7 +349,7 @@ const listForResourceOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion4, + Parameters.apiVersion3, Parameters.filter ], headerParameters: [ @@ -374,7 +374,7 @@ const listForResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion4, + Parameters.apiVersion3, Parameters.filter ], headerParameters: [ @@ -398,7 +398,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4, + Parameters.apiVersion3, Parameters.filter ], headerParameters: [ @@ -423,7 +423,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.denyAssignmentId0 ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -446,7 +446,7 @@ const getByIdOperationSpec: msRest.OperationSpec = { Parameters.denyAssignmentId1 ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -469,7 +469,7 @@ const listForScopeOperationSpec: msRest.OperationSpec = { Parameters.scope ], queryParameters: [ - Parameters.apiVersion4, + Parameters.apiVersion3, Parameters.filter ], headerParameters: [ diff --git a/sdk/authorization/arm-authorization/src/operations/index.ts b/sdk/authorization/arm-authorization/src/operations/index.ts index 666b593b53b8..6ecaf4c1bb95 100644 --- a/sdk/authorization/arm-authorization/src/operations/index.ts +++ b/sdk/authorization/arm-authorization/src/operations/index.ts @@ -11,7 +11,7 @@ export * from "./classicAdministrators"; export * from "./globalAdministrator"; export * from "./providerOperationsMetadataOperations"; -export * from "./roleAssignments"; export * from "./permissions"; export * from "./roleDefinitions"; export * from "./denyAssignments"; +export * from "./roleAssignments"; diff --git a/sdk/authorization/arm-authorization/src/operations/roleAssignments.ts b/sdk/authorization/arm-authorization/src/operations/roleAssignments.ts index f6d695fcba05..b70483f1100c 100644 --- a/sdk/authorization/arm-authorization/src/operations/roleAssignments.ts +++ b/sdk/authorization/arm-authorization/src/operations/roleAssignments.ts @@ -481,7 +481,7 @@ const listForResourceOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.filter, - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -506,7 +506,7 @@ const listForResourceGroupOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.filter, - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -530,7 +530,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.roleAssignmentName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -554,7 +554,7 @@ const createOperationSpec: msRest.OperationSpec = { Parameters.roleAssignmentName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -585,7 +585,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.roleAssignmentName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -608,7 +608,7 @@ const deleteByIdOperationSpec: msRest.OperationSpec = { Parameters.roleId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -631,7 +631,7 @@ const createByIdOperationSpec: msRest.OperationSpec = { Parameters.roleId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -661,7 +661,7 @@ const getByIdOperationSpec: msRest.OperationSpec = { Parameters.roleId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -685,7 +685,7 @@ const listOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.filter, - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -709,7 +709,7 @@ const listForScopeOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.filter, - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/authorization/arm-authorization/tsconfig.json b/sdk/authorization/arm-authorization/tsconfig.json index 58429b90531b..422b584abd5e 100644 --- a/sdk/authorization/arm-authorization/tsconfig.json +++ b/sdk/authorization/arm-authorization/tsconfig.json @@ -9,7 +9,7 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6","dom"], + "lib": ["es6", "dom"], "declaration": true, "outDir": "./esm", "importHelpers": true