From 5b34216df466175f90f99c3b4e3c8762fc6b5143 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 7 Dec 2020 07:17:20 +0000 Subject: [PATCH] CodeGen from PR 11975 in Azure/azure-rest-api-specs Merge 6151dc206734da444c22751c1308ade053204d71 into ffc6f2a61304409d0bb66174dbb0654cd820b0bb --- .../arm-authorization/LICENSE.txt | 2 +- sdk/authorization/arm-authorization/README.md | 56 +- .../arm-authorization/package.json | 14 +- .../arm-authorization/rollup.config.js | 6 +- .../src/authorizationManagementClient.ts | 9 +- .../authorizationManagementClientContext.ts | 5 +- .../models/classicAdministratorsMappers.ts | 4 +- .../src/models/denyAssignmentsMappers.ts | 4 +- .../src/models/globalAdministratorMappers.ts | 4 +- .../arm-authorization/src/models/index.ts | 729 ++++++++++++------ .../arm-authorization/src/models/mappers.ts | 379 +++++---- .../src/models/parameters.ts | 9 +- .../src/models/permissionsMappers.ts | 4 +- ...iderOperationsMetadataOperationsMappers.ts | 4 +- .../src/models/roleAssignmentsMappers.ts | 6 +- .../src/models/roleDefinitionsMappers.ts | 4 +- .../src/operations/classicAdministrators.ts | 8 +- .../src/operations/denyAssignments.ts | 57 +- .../src/operations/globalAdministrator.ts | 5 +- .../arm-authorization/src/operations/index.ts | 7 +- .../src/operations/permissions.ts | 11 +- .../providerOperationsMetadataOperations.ts | 15 +- .../src/operations/roleAssignments.ts | 131 ++-- .../src/operations/roleDefinitions.ts | 15 +- .../arm-authorization/tsconfig.json | 2 +- 25 files changed, 957 insertions(+), 533 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..1cdda5b9f270 100644 --- a/sdk/authorization/arm-authorization/README.md +++ b/sdk/authorization/arm-authorization/README.md @@ -15,33 +15,32 @@ npm install @azure/arm-authorization ### How to use -#### nodejs - Authentication, client creation and list classicAdministrators as an example written in TypeScript. +#### nodejs - client creation and list classicAdministrators as an example written in TypeScript. ##### 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 +While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package +```typescript +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); const { AuthorizationManagementClient } = require("@azure/arm-authorization"); -const { interactiveLogin } = require("@azure/ms-rest-nodeauth"); - 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 +56,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 +69,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 +95,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..40b14bad2340 100644 --- a/sdk/authorization/arm-authorization/package.json +++ b/sdk/authorization/arm-authorization/package.json @@ -4,9 +4,9 @@ "description": "AuthorizationManagementClient Library with typescript type definitions for node.js and browser.", "version": "8.3.3", "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..f7a42353330a 100644 --- a/sdk/authorization/arm-authorization/rollup.config.js +++ b/sdk/authorization/arm-authorization/rollup.config.js @@ -21,15 +21,15 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, 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..30d59a8bf002 100644 --- a/sdk/authorization/arm-authorization/src/authorizationManagementClient.ts +++ b/sdk/authorization/arm-authorization/src/authorizationManagementClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -20,10 +19,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 +35,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..f4a8660c4ec5 100644 --- a/sdk/authorization/arm-authorization/src/authorizationManagementClientContext.ts +++ b/sdk/authorization/arm-authorization/src/authorizationManagementClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/authorization/arm-authorization/src/models/classicAdministratorsMappers.ts b/sdk/authorization/arm-authorization/src/models/classicAdministratorsMappers.ts index 327162fe1492..40acd2921b57 100644 --- a/sdk/authorization/arm-authorization/src/models/classicAdministratorsMappers.ts +++ b/sdk/authorization/arm-authorization/src/models/classicAdministratorsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/authorization/arm-authorization/src/models/denyAssignmentsMappers.ts b/sdk/authorization/arm-authorization/src/models/denyAssignmentsMappers.ts index 9754178e9a9e..a4361a0f8fcf 100644 --- a/sdk/authorization/arm-authorization/src/models/denyAssignmentsMappers.ts +++ b/sdk/authorization/arm-authorization/src/models/denyAssignmentsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/authorization/arm-authorization/src/models/globalAdministratorMappers.ts b/sdk/authorization/arm-authorization/src/models/globalAdministratorMappers.ts index 67c5a45e0449..bfdc5cc83365 100644 --- a/sdk/authorization/arm-authorization/src/models/globalAdministratorMappers.ts +++ b/sdk/authorization/arm-authorization/src/models/globalAdministratorMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/authorization/arm-authorization/src/models/index.ts b/sdk/authorization/arm-authorization/src/models/index.ts index 36ef6945f8f9..7decec9f59f8 100644 --- a/sdk/authorization/arm-authorization/src/models/index.ts +++ b/sdk/authorization/arm-authorization/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -37,6 +37,30 @@ export interface ClassicAdministrator { role?: string; } +/** + * Object to be thrown in case of an unsuccessful response + */ +export interface ErrorError { + /** + * Brief error code + */ + code?: string; + /** + * Longer message explaining the details of the error + */ + message?: string; +} + +/** + * Object to be thrown in case of an unsuccessful response + */ +export interface ErrorModel { + /** + * Object to be thrown in case of an unsuccessful response + */ + error?: ErrorError; +} + /** * Operation */ @@ -115,88 +139,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 */ @@ -389,6 +331,136 @@ export interface DenyAssignment { isSystemProtected?: boolean; } +/** + * 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; + /** + * 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 value is '2.0' + */ + conditionVersion?: string; + /** + * Time it was created + */ + createdOn?: Date; + /** + * Time it was updated + */ + updatedOn?: Date; + /** + * Id of the user who created the assignment + */ + createdBy?: string; + /** + * Id of the user who updated the assignment + */ + updatedBy?: string; + /** + * Id of the delegated managed identity resource + */ + delegatedManagedIdentityResourceId?: string; +} + +/** + * 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; + /** + * 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 value is '2.0' + */ + conditionVersion?: string; +} + /** * Optional Parameters. */ @@ -412,11 +484,20 @@ export interface ProviderOperationsMetadataListOptionalParams extends msRest.Req /** * Optional Parameters. */ -export interface RoleAssignmentsListForResourceOptionalParams extends msRest.RequestOptionsBase { +export interface ProviderOperationsMetadataListNextOptionalParams 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'. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface RoleDefinitionsListOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply on the operation. Use atScopeAndBelow filter to search below the given + * scope as well. */ filter?: string; } @@ -424,11 +505,10 @@ export interface RoleAssignmentsListForResourceOptionalParams extends msRest.Req /** * Optional Parameters. */ -export interface RoleAssignmentsListForResourceGroupOptionalParams extends msRest.RequestOptionsBase { +export interface RoleDefinitionsListNextOptionalParams 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. + * The filter to apply on the operation. Use atScopeAndBelow filter to search below the given + * scope as well. */ filter?: string; } @@ -436,11 +516,18 @@ export interface RoleAssignmentsListForResourceGroupOptionalParams extends msRes /** * Optional Parameters. */ -export interface RoleAssignmentsListOptionalParams extends msRest.RequestOptionsBase { +export interface DenyAssignmentsListForResourceOptionalParams 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. + * The filter to apply on the operation. Use $filter=atScope() to return all deny assignments at + * or above the scope. Use $filter=denyAssignmentName eq '{name}' to search deny assignments by + * name at specified scope. Use $filter=principalId eq '{id}' to return all deny assignments at, + * above and below the scope for the specified principal. Use $filter=gdprExportPrincipalId eq + * '{id}' to return all deny assignments at, above and below the scope for the specified + * principal. This filter is different from the principalId filter as it returns not only those + * deny assignments that contain the specified principal is the Principals list but also those + * deny assignments that contain the specified principal is the ExcludePrincipals list. + * Additionally, when gdprExportPrincipalId filter is used, only the deny assignment name and + * description properties are returned. */ filter?: string; } @@ -448,11 +535,18 @@ export interface RoleAssignmentsListOptionalParams extends msRest.RequestOptions /** * Optional Parameters. */ -export interface RoleAssignmentsListForScopeOptionalParams extends msRest.RequestOptionsBase { +export interface DenyAssignmentsListForResourceGroupOptionalParams 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. + * The filter to apply on the operation. Use $filter=atScope() to return all deny assignments at + * or above the scope. Use $filter=denyAssignmentName eq '{name}' to search deny assignments by + * name at specified scope. Use $filter=principalId eq '{id}' to return all deny assignments at, + * above and below the scope for the specified principal. Use $filter=gdprExportPrincipalId eq + * '{id}' to return all deny assignments at, above and below the scope for the specified + * principal. This filter is different from the principalId filter as it returns not only those + * deny assignments that contain the specified principal is the Principals list but also those + * deny assignments that contain the specified principal is the ExcludePrincipals list. + * Additionally, when gdprExportPrincipalId filter is used, only the deny assignment name and + * description properties are returned. */ filter?: string; } @@ -460,10 +554,18 @@ export interface RoleAssignmentsListForScopeOptionalParams extends msRest.Reques /** * Optional Parameters. */ -export interface RoleDefinitionsListOptionalParams extends msRest.RequestOptionsBase { +export interface DenyAssignmentsListOptionalParams extends msRest.RequestOptionsBase { /** - * The filter to apply on the operation. Use atScopeAndBelow filter to search below the given - * scope as well. + * The filter to apply on the operation. Use $filter=atScope() to return all deny assignments at + * or above the scope. Use $filter=denyAssignmentName eq '{name}' to search deny assignments by + * name at specified scope. Use $filter=principalId eq '{id}' to return all deny assignments at, + * above and below the scope for the specified principal. Use $filter=gdprExportPrincipalId eq + * '{id}' to return all deny assignments at, above and below the scope for the specified + * principal. This filter is different from the principalId filter as it returns not only those + * deny assignments that contain the specified principal is the Principals list but also those + * deny assignments that contain the specified principal is the ExcludePrincipals list. + * Additionally, when gdprExportPrincipalId filter is used, only the deny assignment name and + * description properties are returned. */ filter?: string; } @@ -471,7 +573,7 @@ export interface RoleDefinitionsListOptionalParams extends msRest.RequestOptions /** * Optional Parameters. */ -export interface DenyAssignmentsListForResourceOptionalParams extends msRest.RequestOptionsBase { +export interface DenyAssignmentsListForScopeOptionalParams extends msRest.RequestOptionsBase { /** * The filter to apply on the operation. Use $filter=atScope() to return all deny assignments at * or above the scope. Use $filter=denyAssignmentName eq '{name}' to search deny assignments by @@ -490,7 +592,26 @@ export interface DenyAssignmentsListForResourceOptionalParams extends msRest.Req /** * Optional Parameters. */ -export interface DenyAssignmentsListForResourceGroupOptionalParams extends msRest.RequestOptionsBase { +export interface DenyAssignmentsListForResourceNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply on the operation. Use $filter=atScope() to return all deny assignments at + * or above the scope. Use $filter=denyAssignmentName eq '{name}' to search deny assignments by + * name at specified scope. Use $filter=principalId eq '{id}' to return all deny assignments at, + * above and below the scope for the specified principal. Use $filter=gdprExportPrincipalId eq + * '{id}' to return all deny assignments at, above and below the scope for the specified + * principal. This filter is different from the principalId filter as it returns not only those + * deny assignments that contain the specified principal is the Principals list but also those + * deny assignments that contain the specified principal is the ExcludePrincipals list. + * Additionally, when gdprExportPrincipalId filter is used, only the deny assignment name and + * description properties are returned. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface DenyAssignmentsListForResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { /** * The filter to apply on the operation. Use $filter=atScope() to return all deny assignments at * or above the scope. Use $filter=denyAssignmentName eq '{name}' to search deny assignments by @@ -509,18 +630,121 @@ export interface DenyAssignmentsListForResourceGroupOptionalParams extends msRes /** * Optional Parameters. */ -export interface DenyAssignmentsListOptionalParams extends msRest.RequestOptionsBase { +export interface DenyAssignmentsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply on the operation. Use $filter=atScope() to return all deny assignments at + * or above the scope. Use $filter=denyAssignmentName eq '{name}' to search deny assignments by + * name at specified scope. Use $filter=principalId eq '{id}' to return all deny assignments at, + * above and below the scope for the specified principal. Use $filter=gdprExportPrincipalId eq + * '{id}' to return all deny assignments at, above and below the scope for the specified + * principal. This filter is different from the principalId filter as it returns not only those + * deny assignments that contain the specified principal is the Principals list but also those + * deny assignments that contain the specified principal is the ExcludePrincipals list. + * Additionally, when gdprExportPrincipalId filter is used, only the deny assignment name and + * description properties are returned. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface DenyAssignmentsListForScopeNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply on the operation. Use $filter=atScope() to return all deny assignments at + * or above the scope. Use $filter=denyAssignmentName eq '{name}' to search deny assignments by + * name at specified scope. Use $filter=principalId eq '{id}' to return all deny assignments at, + * above and below the scope for the specified principal. Use $filter=gdprExportPrincipalId eq + * '{id}' to return all deny assignments at, above and below the scope for the specified + * principal. This filter is different from the principalId filter as it returns not only those + * deny assignments that contain the specified principal is the Principals list but also those + * deny assignments that contain the specified principal is the ExcludePrincipals list. + * Additionally, when gdprExportPrincipalId filter is used, only the deny assignment name and + * description properties are returned. + */ + 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; +} + +/** + * Optional Parameters. + */ +export interface RoleAssignmentsListForResourceNextOptionalParams 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 RoleAssignmentsListForResourceGroupNextOptionalParams 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 RoleAssignmentsListNextOptionalParams extends msRest.RequestOptionsBase { /** - * The filter to apply on the operation. Use $filter=atScope() to return all deny assignments at - * or above the scope. Use $filter=denyAssignmentName eq '{name}' to search deny assignments by - * name at specified scope. Use $filter=principalId eq '{id}' to return all deny assignments at, - * above and below the scope for the specified principal. Use $filter=gdprExportPrincipalId eq - * '{id}' to return all deny assignments at, above and below the scope for the specified - * principal. This filter is different from the principalId filter as it returns not only those - * deny assignments that contain the specified principal is the Principals list but also those - * deny assignments that contain the specified principal is the ExcludePrincipals list. - * Additionally, when gdprExportPrincipalId filter is used, only the deny assignment name and - * description properties are returned. + * 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; } @@ -528,18 +752,11 @@ export interface DenyAssignmentsListOptionalParams extends msRest.RequestOptions /** * Optional Parameters. */ -export interface DenyAssignmentsListForScopeOptionalParams extends msRest.RequestOptionsBase { +export interface RoleAssignmentsListForScopeNextOptionalParams extends msRest.RequestOptionsBase { /** - * The filter to apply on the operation. Use $filter=atScope() to return all deny assignments at - * or above the scope. Use $filter=denyAssignmentName eq '{name}' to search deny assignments by - * name at specified scope. Use $filter=principalId eq '{id}' to return all deny assignments at, - * above and below the scope for the specified principal. Use $filter=gdprExportPrincipalId eq - * '{id}' to return all deny assignments at, above and below the scope for the specified - * principal. This filter is different from the principalId filter as it returns not only those - * deny assignments that contain the specified principal is the Principals list but also those - * deny assignments that contain the specified principal is the ExcludePrincipals list. - * Additionally, when gdprExportPrincipalId filter is used, only the deny assignment name and - * description properties are returned. + * 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; } @@ -575,18 +792,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 +828,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 +951,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 +966,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 +986,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 +1006,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 +1026,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 +1046,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 +1066,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 +1086,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 +1106,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 +1126,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 +1146,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 +1166,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 +1186,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 +1206,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 +1226,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 +1246,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 +1266,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 +1286,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 +1306,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 +1326,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 +1346,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 +1366,19 @@ 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 = { + /** + * The parsed response body. + */ + body: any; + /** * The underlying HTTP response. */ @@ -1169,14 +1391,14 @@ export type RoleDefinitionsListResponse = RoleDefinitionListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: RoleDefinitionListResult; + parsedBody: any; }; }; /** - * 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 +1411,19 @@ 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 = { + /** + * The parsed response body. + */ + body: any; + /** * The underlying HTTP response. */ @@ -1209,14 +1436,19 @@ export type RoleDefinitionsListNextResponse = RoleDefinitionListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: RoleDefinitionListResult; + parsedBody: any; }; }; /** - * Contains response data for the listForResource operation. + * Contains response data for the get operation. */ -export type DenyAssignmentsListForResourceResponse = DenyAssignmentListResult & { +export type RoleAssignmentsGetResponse = { + /** + * The parsed response body. + */ + body: any; + /** * The underlying HTTP response. */ @@ -1229,14 +1461,14 @@ export type DenyAssignmentsListForResourceResponse = DenyAssignmentListResult & /** * The response body as parsed JSON or XML */ - parsedBody: DenyAssignmentListResult; + parsedBody: any; }; }; /** - * 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 +1481,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 +1501,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 +1521,19 @@ 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 = { + /** + * The parsed response body. + */ + body: any; + /** * The underlying HTTP response. */ @@ -1309,14 +1546,19 @@ export type DenyAssignmentsGetByIdResponse = DenyAssignment & { /** * The response body as parsed JSON or XML */ - parsedBody: DenyAssignment; + parsedBody: any; }; }; /** * Contains response data for the listForScope operation. */ -export type DenyAssignmentsListForScopeResponse = DenyAssignmentListResult & { +export type RoleAssignmentsListForScopeResponse = { + /** + * The parsed response body. + */ + body: any; + /** * The underlying HTTP response. */ @@ -1329,14 +1571,14 @@ export type DenyAssignmentsListForScopeResponse = DenyAssignmentListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DenyAssignmentListResult; + parsedBody: any; }; }; /** * Contains response data for the listForResourceNext operation. */ -export type DenyAssignmentsListForResourceNextResponse = DenyAssignmentListResult & { +export type RoleAssignmentsListForResourceNextResponse = RoleAssignmentListResult & { /** * The underlying HTTP response. */ @@ -1349,14 +1591,19 @@ 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 = { + /** + * The parsed response body. + */ + body: any; + /** * The underlying HTTP response. */ @@ -1369,14 +1616,19 @@ export type DenyAssignmentsListForResourceGroupNextResponse = DenyAssignmentList /** * The response body as parsed JSON or XML */ - parsedBody: DenyAssignmentListResult; + parsedBody: any; }; }; /** * Contains response data for the listNext operation. */ -export type DenyAssignmentsListNextResponse = DenyAssignmentListResult & { +export type RoleAssignmentsListNextResponse = { + /** + * The parsed response body. + */ + body: any; + /** * The underlying HTTP response. */ @@ -1389,14 +1641,19 @@ export type DenyAssignmentsListNextResponse = DenyAssignmentListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DenyAssignmentListResult; + parsedBody: any; }; }; /** * Contains response data for the listForScopeNext operation. */ -export type DenyAssignmentsListForScopeNextResponse = DenyAssignmentListResult & { +export type RoleAssignmentsListForScopeNextResponse = { + /** + * The parsed response body. + */ + body: any; + /** * The underlying HTTP response. */ @@ -1409,6 +1666,6 @@ export type DenyAssignmentsListForScopeNextResponse = DenyAssignmentListResult & /** * The response body as parsed JSON or XML */ - parsedBody: DenyAssignmentListResult; + parsedBody: any; }; }; diff --git a/sdk/authorization/arm-authorization/src/models/mappers.ts b/sdk/authorization/arm-authorization/src/models/mappers.ts index ee2cfdc282cc..42937e5f8c79 100644 --- a/sdk/authorization/arm-authorization/src/models/mappers.ts +++ b/sdk/authorization/arm-authorization/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -52,6 +52,45 @@ export const ClassicAdministrator: msRest.CompositeMapper = { } }; +export const ErrorError: msRest.CompositeMapper = { + serializedName: "Error_error", + type: { + name: "Composite", + className: "ErrorError", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const ErrorModel: msRest.CompositeMapper = { + serializedName: "Error", + type: { + name: "Composite", + className: "ErrorModel", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorError" + } + } + } + } +}; + export const ProviderOperation: msRest.CompositeMapper = { serializedName: "ProviderOperation", type: { @@ -190,125 +229,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 +580,191 @@ 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" + } + }, + createdOn: { + serializedName: "properties.createdOn", + type: { + name: "DateTime" + } + }, + updatedOn: { + serializedName: "properties.updatedOn", + type: { + name: "DateTime" + } + }, + createdBy: { + serializedName: "properties.createdBy", + type: { + name: "String" + } + }, + updatedBy: { + serializedName: "properties.updatedBy", + type: { + name: "String" + } + }, + delegatedManagedIdentityResourceId: { + serializedName: "properties.delegatedManagedIdentityResourceId", + 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 +821,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 +834,7 @@ export const RoleAssignmentListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "RoleAssignment" + className: "Permission" } } } @@ -744,11 +849,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 +862,7 @@ export const PermissionGetResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Permission" + className: "RoleDefinition" } } } @@ -772,11 +877,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 +890,7 @@ export const RoleDefinitionListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "RoleDefinition" + className: "DenyAssignment" } } } @@ -800,11 +905,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 +918,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..0a84c4a882c4 100644 --- a/sdk/authorization/arm-authorization/src/models/parameters.ts +++ b/sdk/authorization/arm-authorization/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -62,7 +61,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 +73,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/models/permissionsMappers.ts b/sdk/authorization/arm-authorization/src/models/permissionsMappers.ts index 2ca29685b7d7..46aa9922922b 100644 --- a/sdk/authorization/arm-authorization/src/models/permissionsMappers.ts +++ b/sdk/authorization/arm-authorization/src/models/permissionsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/authorization/arm-authorization/src/models/providerOperationsMetadataOperationsMappers.ts b/sdk/authorization/arm-authorization/src/models/providerOperationsMetadataOperationsMappers.ts index 7bfe52496e1d..bee66ca1145b 100644 --- a/sdk/authorization/arm-authorization/src/models/providerOperationsMetadataOperationsMappers.ts +++ b/sdk/authorization/arm-authorization/src/models/providerOperationsMetadataOperationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/authorization/arm-authorization/src/models/roleAssignmentsMappers.ts b/sdk/authorization/arm-authorization/src/models/roleAssignmentsMappers.ts index 9a3e7d0c7a2c..99bc9b85dda8 100644 --- a/sdk/authorization/arm-authorization/src/models/roleAssignmentsMappers.ts +++ b/sdk/authorization/arm-authorization/src/models/roleAssignmentsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { CloudError, + ErrorError, + ErrorModel, RoleAssignment, RoleAssignmentCreateParameters, RoleAssignmentListResult diff --git a/sdk/authorization/arm-authorization/src/models/roleDefinitionsMappers.ts b/sdk/authorization/arm-authorization/src/models/roleDefinitionsMappers.ts index c64320ffca61..a9d1d3071bf2 100644 --- a/sdk/authorization/arm-authorization/src/models/roleDefinitionsMappers.ts +++ b/sdk/authorization/arm-authorization/src/models/roleDefinitionsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/authorization/arm-authorization/src/operations/classicAdministrators.ts b/sdk/authorization/arm-authorization/src/operations/classicAdministrators.ts index d9d06e7c6bfe..9a1e5d63e601 100644 --- a/sdk/authorization/arm-authorization/src/operations/classicAdministrators.ts +++ b/sdk/authorization/arm-authorization/src/operations/classicAdministrators.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -111,6 +110,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/authorization/arm-authorization/src/operations/denyAssignments.ts b/sdk/authorization/arm-authorization/src/operations/denyAssignments.ts index e864b8780f9c..0422f13278d0 100644 --- a/sdk/authorization/arm-authorization/src/operations/denyAssignments.ts +++ b/sdk/authorization/arm-authorization/src/operations/denyAssignments.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -228,7 +227,7 @@ export class DenyAssignments { * @param [options] The optional parameters * @returns Promise */ - listForResourceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listForResourceNext(nextPageLink: string, options?: Models.DenyAssignmentsListForResourceNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -239,8 +238,8 @@ export class DenyAssignments { * @param options The optional parameters * @param callback The callback */ - listForResourceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listForResourceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listForResourceNext(nextPageLink: string, options: Models.DenyAssignmentsListForResourceNextOptionalParams, callback: msRest.ServiceCallback): void; + listForResourceNext(nextPageLink: string, options?: Models.DenyAssignmentsListForResourceNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -256,7 +255,7 @@ export class DenyAssignments { * @param [options] The optional parameters * @returns Promise */ - listForResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listForResourceGroupNext(nextPageLink: string, options?: Models.DenyAssignmentsListForResourceGroupNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -267,8 +266,8 @@ export class DenyAssignments { * @param options The optional parameters * @param callback The callback */ - listForResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listForResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listForResourceGroupNext(nextPageLink: string, options: Models.DenyAssignmentsListForResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; + listForResourceGroupNext(nextPageLink: string, options?: Models.DenyAssignmentsListForResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -284,7 +283,7 @@ export class DenyAssignments { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.DenyAssignmentsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -295,8 +294,8 @@ export class DenyAssignments { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.DenyAssignmentsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.DenyAssignmentsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -312,7 +311,7 @@ export class DenyAssignments { * @param [options] The optional parameters * @returns Promise */ - listForScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listForScopeNext(nextPageLink: string, options?: Models.DenyAssignmentsListForScopeNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -323,8 +322,8 @@ export class DenyAssignments { * @param options The optional parameters * @param callback The callback */ - listForScopeNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listForScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listForScopeNext(nextPageLink: string, options: Models.DenyAssignmentsListForScopeNextOptionalParams, callback: msRest.ServiceCallback): void; + listForScopeNext(nextPageLink: string, options?: Models.DenyAssignmentsListForScopeNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -349,7 +348,7 @@ const listForResourceOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion4, + Parameters.apiVersion3, Parameters.filter ], headerParameters: [ @@ -374,7 +373,7 @@ const listForResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion4, + Parameters.apiVersion3, Parameters.filter ], headerParameters: [ @@ -398,7 +397,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4, + Parameters.apiVersion3, Parameters.filter ], headerParameters: [ @@ -423,7 +422,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.denyAssignmentId0 ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -446,7 +445,7 @@ const getByIdOperationSpec: msRest.OperationSpec = { Parameters.denyAssignmentId1 ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -469,7 +468,7 @@ const listForScopeOperationSpec: msRest.OperationSpec = { Parameters.scope ], queryParameters: [ - Parameters.apiVersion4, + Parameters.apiVersion3, Parameters.filter ], headerParameters: [ @@ -493,6 +492,10 @@ const listForResourceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], @@ -514,6 +517,10 @@ const listForResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], @@ -535,6 +542,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], @@ -556,6 +567,10 @@ const listForScopeNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/authorization/arm-authorization/src/operations/globalAdministrator.ts b/sdk/authorization/arm-authorization/src/operations/globalAdministrator.ts index 0023d794b235..a14f471a36f1 100644 --- a/sdk/authorization/arm-authorization/src/operations/globalAdministrator.ts +++ b/sdk/authorization/arm-authorization/src/operations/globalAdministrator.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/authorization/arm-authorization/src/operations/index.ts b/sdk/authorization/arm-authorization/src/operations/index.ts index 666b593b53b8..03ea016500c9 100644 --- a/sdk/authorization/arm-authorization/src/operations/index.ts +++ b/sdk/authorization/arm-authorization/src/operations/index.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -11,7 +10,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/permissions.ts b/sdk/authorization/arm-authorization/src/operations/permissions.ts index 95de3b3b1a05..3a36facaaa99 100644 --- a/sdk/authorization/arm-authorization/src/operations/permissions.ts +++ b/sdk/authorization/arm-authorization/src/operations/permissions.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -216,6 +215,9 @@ const listForResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion2 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -237,6 +239,9 @@ const listForResourceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion2 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/authorization/arm-authorization/src/operations/providerOperationsMetadataOperations.ts b/sdk/authorization/arm-authorization/src/operations/providerOperationsMetadataOperations.ts index 7643d6706222..5a960fd64021 100644 --- a/sdk/authorization/arm-authorization/src/operations/providerOperationsMetadataOperations.ts +++ b/sdk/authorization/arm-authorization/src/operations/providerOperationsMetadataOperations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -84,7 +83,7 @@ export class ProviderOperationsMetadataOperations { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.ProviderOperationsMetadataListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -95,8 +94,8 @@ export class ProviderOperationsMetadataOperations { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.ProviderOperationsMetadataListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ProviderOperationsMetadataListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -161,6 +160,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion2, + Parameters.expand + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/authorization/arm-authorization/src/operations/roleAssignments.ts b/sdk/authorization/arm-authorization/src/operations/roleAssignments.ts index f6d695fcba05..858d406371c1 100644 --- a/sdk/authorization/arm-authorization/src/operations/roleAssignments.ts +++ b/sdk/authorization/arm-authorization/src/operations/roleAssignments.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -81,14 +80,14 @@ export class RoleAssignments { * @param resourceGroupName The name of the resource group. * @param callback The callback */ - listForResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + listForResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param options The optional parameters * @param callback The callback */ - listForResourceGroup(resourceGroupName: string, options: Models.RoleAssignmentsListForResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; - listForResourceGroup(resourceGroupName: string, options?: Models.RoleAssignmentsListForResourceGroupOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listForResourceGroup(resourceGroupName: string, options: Models.RoleAssignmentsListForResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; + listForResourceGroup(resourceGroupName: string, options?: Models.RoleAssignmentsListForResourceGroupOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -155,7 +154,7 @@ export class RoleAssignments { * @param parameters Parameters for the role assignment. * @param callback The callback */ - create(scope: string, roleAssignmentName: string, parameters: Models.RoleAssignmentCreateParameters, callback: msRest.ServiceCallback): void; + create(scope: string, roleAssignmentName: string, parameters: Models.RoleAssignmentCreateParameters, callback: msRest.ServiceCallback): void; /** * @param scope The scope of the role assignment to create. The scope can be any REST resource * instance. For example, use '/subscriptions/{subscription-id}/' for a subscription, @@ -168,8 +167,8 @@ export class RoleAssignments { * @param options The optional parameters * @param callback The callback */ - create(scope: string, roleAssignmentName: string, parameters: Models.RoleAssignmentCreateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - create(scope: string, roleAssignmentName: string, parameters: Models.RoleAssignmentCreateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + create(scope: string, roleAssignmentName: string, parameters: Models.RoleAssignmentCreateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + create(scope: string, roleAssignmentName: string, parameters: Models.RoleAssignmentCreateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { scope, @@ -194,15 +193,15 @@ export class RoleAssignments { * @param roleAssignmentName The name of the role assignment to get. * @param callback The callback */ - get(scope: string, roleAssignmentName: string, callback: msRest.ServiceCallback): void; + get(scope: string, roleAssignmentName: string, callback: msRest.ServiceCallback): void; /** * @param scope The scope of the role assignment. * @param roleAssignmentName The name of the role assignment to get. * @param options The optional parameters * @param callback The callback */ - get(scope: string, roleAssignmentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(scope: string, roleAssignmentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(scope: string, roleAssignmentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(scope: string, roleAssignmentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { scope, @@ -310,13 +309,13 @@ export class RoleAssignments { /** * @param callback The callback */ - list(callback: msRest.ServiceCallback): void; + list(callback: msRest.ServiceCallback): void; /** * @param options The optional parameters * @param callback The callback */ - list(options: Models.RoleAssignmentsListOptionalParams, callback: msRest.ServiceCallback): void; - list(options?: Models.RoleAssignmentsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(options: Models.RoleAssignmentsListOptionalParams, callback: msRest.ServiceCallback): void; + list(options?: Models.RoleAssignmentsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -336,14 +335,14 @@ export class RoleAssignments { * @param scope The scope of the role assignments. * @param callback The callback */ - listForScope(scope: string, callback: msRest.ServiceCallback): void; + listForScope(scope: string, callback: msRest.ServiceCallback): void; /** * @param scope The scope of the role assignments. * @param options The optional parameters * @param callback The callback */ - listForScope(scope: string, options: Models.RoleAssignmentsListForScopeOptionalParams, callback: msRest.ServiceCallback): void; - listForScope(scope: string, options?: Models.RoleAssignmentsListForScopeOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listForScope(scope: string, options: Models.RoleAssignmentsListForScopeOptionalParams, callback: msRest.ServiceCallback): void; + listForScope(scope: string, options?: Models.RoleAssignmentsListForScopeOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { scope, @@ -359,7 +358,7 @@ export class RoleAssignments { * @param [options] The optional parameters * @returns Promise */ - listForResourceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listForResourceNext(nextPageLink: string, options?: Models.RoleAssignmentsListForResourceNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -370,8 +369,8 @@ export class RoleAssignments { * @param options The optional parameters * @param callback The callback */ - listForResourceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listForResourceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listForResourceNext(nextPageLink: string, options: Models.RoleAssignmentsListForResourceNextOptionalParams, callback: msRest.ServiceCallback): void; + listForResourceNext(nextPageLink: string, options?: Models.RoleAssignmentsListForResourceNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -387,19 +386,19 @@ export class RoleAssignments { * @param [options] The optional parameters * @returns Promise */ - listForResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listForResourceGroupNext(nextPageLink: string, options?: Models.RoleAssignmentsListForResourceGroupNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listForResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listForResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listForResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listForResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listForResourceGroupNext(nextPageLink: string, options: Models.RoleAssignmentsListForResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; + listForResourceGroupNext(nextPageLink: string, options?: Models.RoleAssignmentsListForResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -415,19 +414,19 @@ export class RoleAssignments { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.RoleAssignmentsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.RoleAssignmentsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.RoleAssignmentsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -443,19 +442,19 @@ export class RoleAssignments { * @param [options] The optional parameters * @returns Promise */ - listForScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listForScopeNext(nextPageLink: string, options?: Models.RoleAssignmentsListForScopeNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listForScopeNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listForScopeNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listForScopeNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listForScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listForScopeNext(nextPageLink: string, options: Models.RoleAssignmentsListForScopeNextOptionalParams, callback: msRest.ServiceCallback): void; + listForScopeNext(nextPageLink: string, options?: Models.RoleAssignmentsListForScopeNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -481,7 +480,7 @@ const listForResourceOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.filter, - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -506,7 +505,7 @@ const listForResourceGroupOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.filter, - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -515,6 +514,9 @@ const listForResourceGroupOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.RoleAssignmentListResult }, + 400: { + bodyMapper: Mappers.ErrorModel + }, default: { bodyMapper: Mappers.CloudError } @@ -530,7 +532,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.roleAssignmentName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -539,6 +541,8 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.RoleAssignment }, + 204: {}, + 412: {}, default: { bodyMapper: Mappers.CloudError } @@ -554,7 +558,7 @@ const createOperationSpec: msRest.OperationSpec = { Parameters.roleAssignmentName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -570,6 +574,12 @@ const createOperationSpec: msRest.OperationSpec = { 201: { bodyMapper: Mappers.RoleAssignment }, + 400: { + bodyMapper: Mappers.ErrorModel + }, + 409: { + bodyMapper: Mappers.ErrorModel + }, default: { bodyMapper: Mappers.CloudError } @@ -585,7 +595,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.roleAssignmentName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -594,6 +604,10 @@ const getOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.RoleAssignment }, + 400: { + bodyMapper: Mappers.ErrorModel + }, + 404: {}, default: { bodyMapper: Mappers.CloudError } @@ -608,7 +622,7 @@ const deleteByIdOperationSpec: msRest.OperationSpec = { Parameters.roleId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -631,7 +645,7 @@ const createByIdOperationSpec: msRest.OperationSpec = { Parameters.roleId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -661,7 +675,7 @@ const getByIdOperationSpec: msRest.OperationSpec = { Parameters.roleId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -685,7 +699,7 @@ const listOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.filter, - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -694,6 +708,9 @@ const listOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.RoleAssignmentListResult }, + 400: { + bodyMapper: Mappers.ErrorModel + }, default: { bodyMapper: Mappers.CloudError } @@ -709,7 +726,7 @@ const listForScopeOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.filter, - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -718,6 +735,9 @@ const listForScopeOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.RoleAssignmentListResult }, + 400: { + bodyMapper: Mappers.ErrorModel + }, default: { bodyMapper: Mappers.CloudError } @@ -732,6 +752,10 @@ const listForResourceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion4 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -753,6 +777,10 @@ const listForResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion4 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -760,6 +788,9 @@ const listForResourceGroupNextOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.RoleAssignmentListResult }, + 400: { + bodyMapper: Mappers.ErrorModel + }, default: { bodyMapper: Mappers.CloudError } @@ -774,6 +805,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion4 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -781,6 +816,9 @@ const listNextOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.RoleAssignmentListResult }, + 400: { + bodyMapper: Mappers.ErrorModel + }, default: { bodyMapper: Mappers.CloudError } @@ -795,6 +833,10 @@ const listForScopeNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion4 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -802,6 +844,9 @@ const listForScopeNextOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.RoleAssignmentListResult }, + 400: { + bodyMapper: Mappers.ErrorModel + }, default: { bodyMapper: Mappers.CloudError } diff --git a/sdk/authorization/arm-authorization/src/operations/roleDefinitions.ts b/sdk/authorization/arm-authorization/src/operations/roleDefinitions.ts index de7a923fffb2..ed6bea1815de 100644 --- a/sdk/authorization/arm-authorization/src/operations/roleDefinitions.ts +++ b/sdk/authorization/arm-authorization/src/operations/roleDefinitions.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -200,7 +199,7 @@ export class RoleDefinitions { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.RoleDefinitionsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -211,8 +210,8 @@ export class RoleDefinitions { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.RoleDefinitionsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.RoleDefinitionsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -358,6 +357,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion2 + ], 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