diff --git a/sdk/authorization/arm-authorization/LICENSE.txt b/sdk/authorization/arm-authorization/LICENSE.txt index a70e8cf66038..b73b4a1293c3 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) 2018 Microsoft +Copyright (c) 2019 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 ffede200df79..cdd9e6097337 100644 --- a/sdk/authorization/arm-authorization/README.md +++ b/sdk/authorization/arm-authorization/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for AuthorizationManagementClient. ### How to Install -``` +```bash npm install @azure/arm-authorization ``` @@ -19,13 +19,13 @@ npm install @azure/arm-authorization ##### Install @azure/ms-rest-nodeauth -``` +```bash npm install @azure/ms-rest-nodeauth ``` ##### Sample code -```ts +```typescript import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; @@ -47,7 +47,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -95,5 +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/sdk/authorization/arm-authorization/README.png) diff --git a/sdk/authorization/arm-authorization/package.json b/sdk/authorization/arm-authorization/package.json index 6f86cd2ef543..a449eef01612 100644 --- a/sdk/authorization/arm-authorization/package.json +++ b/sdk/authorization/arm-authorization/package.json @@ -2,10 +2,10 @@ "name": "@azure/arm-authorization", "author": "Microsoft Corporation", "description": "AuthorizationManagementClient Library with typescript type definitions for node.js and browser.", - "version": "8.3.1", + "version": "8.3.2", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^2.0.0", + "@azure/ms-rest-js": "^2.0.3", "tslib": "^1.9.3" }, "keywords": [ @@ -23,15 +23,16 @@ "typescript": "^3.1.1", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", + "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/authorization/arm-authorization", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/authorization/arm-authorization", "repository": { "type": "git", - "url": "https://github.com/azure/azure-sdk-for-js.git" + "url": "https://github.com/Azure/azure-sdk-for-js.git" }, "bugs": { - "url": "https://github.com/azure/azure-sdk-for-js/issues" + "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/**/*.js", @@ -43,6 +44,7 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "src/**/*.ts", + "README.md", "rollup.config.js", "tsconfig.json" ], @@ -52,5 +54,5 @@ "prepack": "npm install && npm run build" }, "sideEffects": false, - "authPublish": true + "autoPublish": true } diff --git a/sdk/authorization/arm-authorization/rollup.config.js b/sdk/authorization/arm-authorization/rollup.config.js index 665f68f90098..72dc3f8ec5c7 100644 --- a/sdk/authorization/arm-authorization/rollup.config.js +++ b/sdk/authorization/arm-authorization/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/authorizationManagementClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/authorizationManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-authorization.js", format: "umd", @@ -16,16 +22,16 @@ const config = { }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ module: true }), + sourcemaps() ] }; + export default config; diff --git a/sdk/authorization/arm-authorization/src/authorizationManagementClient.ts b/sdk/authorization/arm-authorization/src/authorizationManagementClient.ts index bfa0a6ebcadf..38d6e007d768 100644 --- a/sdk/authorization/arm-authorization/src/authorizationManagementClient.ts +++ b/sdk/authorization/arm-authorization/src/authorizationManagementClient.ts @@ -18,6 +18,7 @@ import { AuthorizationManagementClientContext } from "./authorizationManagementC class AuthorizationManagementClient extends AuthorizationManagementClientContext { // Operation groups classicAdministrators: operations.ClassicAdministrators; + globalAdministrator: operations.GlobalAdministrator; providerOperationsMetadata: operations.ProviderOperationsMetadataOperations; roleAssignments: operations.RoleAssignments; permissions: operations.Permissions; @@ -33,6 +34,7 @@ class AuthorizationManagementClient extends AuthorizationManagementClientContext constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AuthorizationManagementClientOptions) { super(credentials, subscriptionId, options); 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); diff --git a/sdk/authorization/arm-authorization/src/authorizationManagementClientContext.ts b/sdk/authorization/arm-authorization/src/authorizationManagementClientContext.ts index 37111074658f..456c9aec612d 100644 --- a/sdk/authorization/arm-authorization/src/authorizationManagementClientContext.ts +++ b/sdk/authorization/arm-authorization/src/authorizationManagementClientContext.ts @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-authorization"; -const packageVersion = "0.1.0"; +const packageVersion = "8.3.2"; export class AuthorizationManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; diff --git a/sdk/authorization/arm-authorization/src/models/classicAdministratorsMappers.ts b/sdk/authorization/arm-authorization/src/models/classicAdministratorsMappers.ts index 067623eb438c..327162fe1492 100644 --- a/sdk/authorization/arm-authorization/src/models/classicAdministratorsMappers.ts +++ b/sdk/authorization/arm-authorization/src/models/classicAdministratorsMappers.ts @@ -1,16 +1,13 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - ClassicAdministratorListResult, ClassicAdministrator, + ClassicAdministratorListResult, CloudError } from "../models/mappers"; - diff --git a/sdk/authorization/arm-authorization/src/models/denyAssignmentsMappers.ts b/sdk/authorization/arm-authorization/src/models/denyAssignmentsMappers.ts index cdabfc4bf0c8..9754178e9a9e 100644 --- a/sdk/authorization/arm-authorization/src/models/denyAssignmentsMappers.ts +++ b/sdk/authorization/arm-authorization/src/models/denyAssignmentsMappers.ts @@ -1,18 +1,15 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - DenyAssignmentListResult, + CloudError, DenyAssignment, + DenyAssignmentListResult, DenyAssignmentPermission, - Principal, - CloudError + Principal } from "../models/mappers"; - diff --git a/sdk/authorization/arm-authorization/src/models/globalAdministratorMappers.ts b/sdk/authorization/arm-authorization/src/models/globalAdministratorMappers.ts new file mode 100644 index 000000000000..67c5a45e0449 --- /dev/null +++ b/sdk/authorization/arm-authorization/src/models/globalAdministratorMappers.ts @@ -0,0 +1,11 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + CloudError +} from "../models/mappers"; diff --git a/sdk/authorization/arm-authorization/src/models/index.ts b/sdk/authorization/arm-authorization/src/models/index.ts index b34e53025534..36ef6945f8f9 100644 --- a/sdk/authorization/arm-authorization/src/models/index.ts +++ b/sdk/authorization/arm-authorization/src/models/index.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -13,769 +11,614 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; - /** - * @interface - * An interface representing ClassicAdministrator. * Classic Administrators - * */ export interface ClassicAdministrator { /** - * @member {string} [id] The ID of the administrator. + * The ID of the administrator. */ id?: string; /** - * @member {string} [name] The name of the administrator. + * The name of the administrator. */ name?: string; /** - * @member {string} [type] The type of the administrator. + * The type of the administrator. */ type?: string; /** - * @member {string} [emailAddress] The email address of the administrator. + * The email address of the administrator. */ emailAddress?: string; /** - * @member {string} [role] The role of the administrator. + * The role of the administrator. */ role?: string; } /** - * @interface - * An interface representing ProviderOperation. * Operation - * */ export interface ProviderOperation { /** - * @member {string} [name] The operation name. + * The operation name. */ name?: string; /** - * @member {string} [displayName] The operation display name. + * The operation display name. */ displayName?: string; /** - * @member {string} [description] The operation description. + * The operation description. */ description?: string; /** - * @member {string} [origin] The operation origin. + * The operation origin. */ origin?: string; /** - * @member {any} [properties] The operation properties. + * The operation properties. */ properties?: any; /** - * @member {boolean} [isDataAction] The dataAction flag to specify the - * operation type. + * The dataAction flag to specify the operation type. */ isDataAction?: boolean; } /** - * @interface - * An interface representing ResourceType. * Resource Type - * */ export interface ResourceType { /** - * @member {string} [name] The resource type name. + * The resource type name. */ name?: string; /** - * @member {string} [displayName] The resource type display name. + * The resource type display name. */ displayName?: string; /** - * @member {ProviderOperation[]} [operations] The resource type operations. + * The resource type operations. */ operations?: ProviderOperation[]; } /** - * @interface - * An interface representing ProviderOperationsMetadata. * Provider Operations metadata - * */ export interface ProviderOperationsMetadata { /** - * @member {string} [id] The provider id. + * The provider id. */ id?: string; /** - * @member {string} [name] The provider name. + * The provider name. */ name?: string; /** - * @member {string} [type] The provider type. + * The provider type. */ type?: string; /** - * @member {string} [displayName] The provider display name. + * The provider display name. */ displayName?: string; /** - * @member {ResourceType[]} [resourceTypes] The provider resource types + * The provider resource types */ resourceTypes?: ResourceType[]; /** - * @member {ProviderOperation[]} [operations] The provider operations. + * The provider operations. */ operations?: ProviderOperation[]; } /** - * @interface - * An interface representing RoleAssignmentFilter. * Role Assignments filter - * */ export interface RoleAssignmentFilter { /** - * @member {string} [principalId] Returns role assignment of the specific - * principal. + * Returns role assignment of the specific principal. */ principalId?: string; /** - * @member {boolean} [canDelegate] The Delegation flag for the roleassignment + * The Delegation flag for the role assignment */ canDelegate?: boolean; } /** - * @interface - * An interface representing RoleAssignment. * Role Assignments - * */ export interface RoleAssignment { /** - * @member {string} [id] The role assignment ID. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The role assignment ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] The role assignment name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The role assignment name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] The role assignment type. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The role assignment type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * @member {string} [scope] The role assignment scope. + * The role assignment scope. */ scope?: string; /** - * @member {string} [roleDefinitionId] The role definition ID. + * The role definition ID. */ roleDefinitionId?: string; /** - * @member {string} [principalId] The principal ID. + * The principal ID. */ principalId?: string; /** - * @member {boolean} [canDelegate] The Delegation flag for the roleassignment + * 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; } /** - * @interface - * An interface representing RoleAssignmentCreateParameters. * Role assignment create parameters. - * */ export interface RoleAssignmentCreateParameters { /** - * @member {string} roleDefinitionId The role definition ID used in the role - * assignment. + * The role definition ID used in the role assignment. */ roleDefinitionId: string; /** - * @member {string} principalId 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. + * 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; /** - * @member {PrincipalType} [principalType] The principal type of the assigned - * principal ID. Possible values include: 'User', 'Group', - * 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', - * 'Application', 'MSI', 'DirectoryObjectOrGroup', 'Everyone' + * The principal type of the assigned principal ID. Possible values include: 'User', 'Group', + * 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', 'Application', 'MSI', + * 'DirectoryObjectOrGroup', 'Everyone' */ principalType?: PrincipalType; /** - * @member {boolean} [canDelegate] The delgation flag used for creating a - * role assignment + * The delegation flag used for creating a role assignment */ canDelegate?: boolean; } /** - * @interface - * An interface representing RoleDefinitionFilter. * Role Definitions filter - * */ export interface RoleDefinitionFilter { /** - * @member {string} [roleName] Returns role definition with the specific - * name. + * Returns role definition with the specific name. */ roleName?: string; /** - * @member {string} [type] Returns role definition with the specific type. + * Returns role definition with the specific type. */ type?: string; } /** - * @interface - * An interface representing Permission. * Role definition permissions. - * */ export interface Permission { /** - * @member {string[]} [actions] Allowed actions. + * Allowed actions. */ actions?: string[]; /** - * @member {string[]} [notActions] Denied actions. + * Denied actions. */ notActions?: string[]; /** - * @member {string[]} [dataActions] Allowed Data actions. + * Allowed Data actions. */ dataActions?: string[]; /** - * @member {string[]} [notDataActions] Denied Data actions. + * Denied Data actions. */ notDataActions?: string[]; } /** - * @interface - * An interface representing RoleDefinition. * Role definition. - * */ export interface RoleDefinition { /** - * @member {string} [id] The role definition ID. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The role definition ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] The role definition name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The role definition name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] The role definition type. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The role definition type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * @member {string} [roleName] The role name. + * The role name. */ roleName?: string; /** - * @member {string} [description] The role definition description. + * The role definition description. */ description?: string; /** - * @member {string} [roleType] The role type. + * The role type. */ roleType?: string; /** - * @member {Permission[]} [permissions] Role definition permissions. + * Role definition permissions. */ permissions?: Permission[]; /** - * @member {string[]} [assignableScopes] Role definition assignable scopes. + * Role definition assignable scopes. */ assignableScopes?: string[]; } /** - * @interface - * An interface representing DenyAssignmentFilter. * Deny Assignments filter - * */ export interface DenyAssignmentFilter { /** - * @member {string} [denyAssignmentName] Return deny assignment with - * specified name. + * Return deny assignment with specified name. */ denyAssignmentName?: string; /** - * @member {string} [principalId] Return all deny assignments where the - * specified principal is listed in the principals list of deny assignments. + * Return all deny assignments where the specified principal is listed in the principals list of + * deny assignments. */ principalId?: string; /** - * @member {string} [gdprExportPrincipalId] Return all deny assignments where - * the specified principal is listed either in the principals list or exclude - * principals list of deny assignments. + * Return all deny assignments where the specified principal is listed either in the principals + * list or exclude principals list of deny assignments. */ gdprExportPrincipalId?: string; } /** - * @interface - * An interface representing DenyAssignmentPermission. * Deny assignment permissions. - * */ export interface DenyAssignmentPermission { /** - * @member {string[]} [actions] Actions to which the deny assignment does not - * grant access. + * Actions to which the deny assignment does not grant access. */ actions?: string[]; /** - * @member {string[]} [notActions] Actions to exclude from that the deny - * assignment does not grant access. + * Actions to exclude from that the deny assignment does not grant access. */ notActions?: string[]; /** - * @member {string[]} [dataActions] Data actions to which the deny assignment - * does not grant access. + * Data actions to which the deny assignment does not grant access. */ dataActions?: string[]; /** - * @member {string[]} [notDataActions] Data actions to exclude from that the - * deny assignment does not grant access. + * Data actions to exclude from that the deny assignment does not grant access. */ notDataActions?: string[]; } /** - * @interface - * An interface representing Principal. * Deny assignment principal. - * */ export interface Principal { /** - * @member {string} [id] Object ID of the Azure AD principal (user, group, or - * service principal) to which the deny assignment applies. An empty guid - * '00000000-0000-0000-0000-000000000000' as principal id and principal type - * as 'Everyone' represents all users, groups and service principals. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Object ID of the Azure AD principal (user, group, or service principal) to which the deny + * assignment applies. An empty guid '00000000-0000-0000-0000-000000000000' as principal id and + * principal type as 'Everyone' represents all users, groups and service principals. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [type] Type of object represented by principal id (user, - * group, or service principal). An empty guid - * '00000000-0000-0000-0000-000000000000' as principal id and principal type - * as 'Everyone' represents all users, groups and service principals. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Type of object represented by principal id (user, group, or service principal). An empty guid + * '00000000-0000-0000-0000-000000000000' as principal id and principal type as 'Everyone' + * represents all users, groups and service principals. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; } /** - * @interface - * An interface representing DenyAssignment. * Deny Assignment - * */ export interface DenyAssignment { /** - * @member {string} [id] The deny assignment ID. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The deny assignment ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] The deny assignment name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The deny assignment name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] The deny assignment type. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The deny assignment type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * @member {string} [denyAssignmentName] The display name of the deny - * assignment. + * The display name of the deny assignment. */ denyAssignmentName?: string; /** - * @member {string} [description] The description of the deny assignment. + * The description of the deny assignment. */ description?: string; /** - * @member {DenyAssignmentPermission[]} [permissions] An array of permissions - * that are denied by the deny assignment. + * An array of permissions that are denied by the deny assignment. */ permissions?: DenyAssignmentPermission[]; /** - * @member {string} [scope] The deny assignment scope. + * The deny assignment scope. */ scope?: string; /** - * @member {boolean} [doNotApplyToChildScopes] Determines if the deny - * assignment applies to child scopes. Default value is false. + * Determines if the deny assignment applies to child scopes. Default value is false. */ doNotApplyToChildScopes?: boolean; /** - * @member {Principal[]} [principals] Array of principals to which the deny - * assignment applies. + * Array of principals to which the deny assignment applies. */ principals?: Principal[]; /** - * @member {Principal[]} [excludePrincipals] Array of principals to which the - * deny assignment does not apply. + * Array of principals to which the deny assignment does not apply. */ excludePrincipals?: Principal[]; /** - * @member {boolean} [isSystemProtected] Specifies whether this deny - * assignment was created by Azure and cannot be edited or deleted. + * Specifies whether this deny assignment was created by Azure and cannot be edited or deleted. */ isSystemProtected?: boolean; } /** - * @interface - * An interface representing ProviderOperationsMetadataGetOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ProviderOperationsMetadataGetOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [expand] Specifies whether to expand the values. Default - * value: 'resourceTypes' . + * Specifies whether to expand the values. Default value: 'resourceTypes'. */ expand?: string; } /** - * @interface - * An interface representing ProviderOperationsMetadataListOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ProviderOperationsMetadataListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [expand] Specifies whether to expand the values. Default - * value: 'resourceTypes' . + * Specifies whether to expand the values. Default value: 'resourceTypes'. */ expand?: string; } /** - * @interface - * An interface representing RoleAssignmentsListForResourceOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface RoleAssignmentsListForResourceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] 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 + * 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; } /** - * @interface - * An interface representing RoleAssignmentsListForResourceGroupOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface RoleAssignmentsListForResourceGroupOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] 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 + * 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; } /** - * @interface - * An interface representing RoleAssignmentsListOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface RoleAssignmentsListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] 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 + * 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; } /** - * @interface - * An interface representing RoleAssignmentsListForScopeOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface RoleAssignmentsListForScopeOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] 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 + * 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; } /** - * @interface - * An interface representing RoleDefinitionsListOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface RoleDefinitionsListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] 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 atScopeAndBelow filter to search below the given + * scope as well. */ filter?: string; } /** - * @interface - * An interface representing DenyAssignmentsListForResourceOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface DenyAssignmentsListForResourceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] 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 + * 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; } /** - * @interface - * An interface representing DenyAssignmentsListForResourceGroupOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface DenyAssignmentsListForResourceGroupOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] 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 + * 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; } /** - * @interface - * An interface representing DenyAssignmentsListOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface DenyAssignmentsListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] 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 + * 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; } /** - * @interface - * An interface representing DenyAssignmentsListForScopeOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface DenyAssignmentsListForScopeOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] 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 + * 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; } /** - * @interface * An interface representing AuthorizationManagementClientOptions. - * @extends AzureServiceClientOptions */ export interface AuthorizationManagementClientOptions extends AzureServiceClientOptions { - /** - * @member {string} [baseUri] - */ baseUri?: string; } - /** * @interface - * An interface representing the ClassicAdministratorListResult. * ClassicAdministrator list result information. - * * @extends Array */ export interface ClassicAdministratorListResult extends Array { /** - * @member {string} [nextLink] The URL to use for getting the next set of - * results. + * The URL to use for getting the next set of results. */ nextLink?: string; } /** * @interface - * An interface representing the ProviderOperationsMetadataListResult. * Provider operations metadata list - * * @extends Array */ export interface ProviderOperationsMetadataListResult extends Array { /** - * @member {string} [nextLink] The URL to use for getting the next set of - * results. + * The URL to use for getting the next set of results. */ nextLink?: string; } /** * @interface - * An interface representing the RoleAssignmentListResult. * Role assignment list operation result. - * * @extends Array */ export interface RoleAssignmentListResult extends Array { /** - * @member {string} [nextLink] The URL to use for getting the next set of - * results. + * The URL to use for getting the next set of results. */ nextLink?: string; } /** * @interface - * An interface representing the PermissionGetResult. * Permissions information. - * * @extends Array */ export interface PermissionGetResult extends Array { /** - * @member {string} [nextLink] The URL to use for getting the next set of - * results. + * The URL to use for getting the next set of results. */ nextLink?: string; } /** * @interface - * An interface representing the RoleDefinitionListResult. * Role definition list operation result. - * * @extends Array */ export interface RoleDefinitionListResult extends Array { /** - * @member {string} [nextLink] The URL to use for getting the next set of - * results. + * The URL to use for getting the next set of results. */ nextLink?: string; } /** * @interface - * An interface representing the DenyAssignmentListResult. * Deny assignment list operation result. - * * @extends Array */ export interface DenyAssignmentListResult extends Array { /** - * @member {string} [nextLink] The URL to use for getting the next set of - * results. + * The URL to use for getting the next set of results. */ nextLink?: string; } @@ -802,6 +645,7 @@ export type ClassicAdministratorsListResponse = ClassicAdministratorListResult & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -821,6 +665,7 @@ export type ClassicAdministratorsListNextResponse = ClassicAdministratorListResu * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -840,6 +685,7 @@ export type ProviderOperationsMetadataGetResponse = ProviderOperationsMetadata & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -859,6 +705,7 @@ export type ProviderOperationsMetadataListResponse = ProviderOperationsMetadataL * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -878,6 +725,7 @@ export type ProviderOperationsMetadataListNextResponse = ProviderOperationsMetad * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -897,6 +745,7 @@ export type RoleAssignmentsListForResourceResponse = RoleAssignmentListResult & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -916,6 +765,7 @@ export type RoleAssignmentsListForResourceGroupResponse = RoleAssignmentListResu * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -935,6 +785,7 @@ export type RoleAssignmentsDeleteMethodResponse = RoleAssignment & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -954,6 +805,7 @@ export type RoleAssignmentsCreateResponse = RoleAssignment & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -973,6 +825,7 @@ export type RoleAssignmentsGetResponse = RoleAssignment & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -992,6 +845,7 @@ export type RoleAssignmentsDeleteByIdResponse = RoleAssignment & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1011,6 +865,7 @@ export type RoleAssignmentsCreateByIdResponse = RoleAssignment & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1030,6 +885,7 @@ export type RoleAssignmentsGetByIdResponse = RoleAssignment & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1049,6 +905,7 @@ export type RoleAssignmentsListResponse = RoleAssignmentListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1068,6 +925,7 @@ export type RoleAssignmentsListForScopeResponse = RoleAssignmentListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1087,6 +945,7 @@ export type RoleAssignmentsListForResourceNextResponse = RoleAssignmentListResul * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1106,6 +965,7 @@ export type RoleAssignmentsListForResourceGroupNextResponse = RoleAssignmentList * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1125,6 +985,7 @@ export type RoleAssignmentsListNextResponse = RoleAssignmentListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1144,6 +1005,7 @@ export type RoleAssignmentsListForScopeNextResponse = RoleAssignmentListResult & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1163,6 +1025,7 @@ export type PermissionsListForResourceGroupResponse = PermissionGetResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1182,6 +1045,7 @@ export type PermissionsListForResourceResponse = PermissionGetResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1201,6 +1065,7 @@ export type PermissionsListForResourceGroupNextResponse = PermissionGetResult & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1220,6 +1085,7 @@ export type PermissionsListForResourceNextResponse = PermissionGetResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1239,6 +1105,7 @@ export type RoleDefinitionsDeleteMethodResponse = RoleDefinition & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1258,6 +1125,7 @@ export type RoleDefinitionsGetResponse = RoleDefinition & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1277,6 +1145,7 @@ export type RoleDefinitionsCreateOrUpdateResponse = RoleDefinition & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1296,6 +1165,7 @@ export type RoleDefinitionsListResponse = RoleDefinitionListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1315,6 +1185,7 @@ export type RoleDefinitionsGetByIdResponse = RoleDefinition & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1334,6 +1205,7 @@ export type RoleDefinitionsListNextResponse = RoleDefinitionListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1353,6 +1225,7 @@ export type DenyAssignmentsListForResourceResponse = DenyAssignmentListResult & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1372,6 +1245,7 @@ export type DenyAssignmentsListForResourceGroupResponse = DenyAssignmentListResu * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1391,6 +1265,7 @@ export type DenyAssignmentsListResponse = DenyAssignmentListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1410,6 +1285,7 @@ export type DenyAssignmentsGetResponse = DenyAssignment & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1429,6 +1305,7 @@ export type DenyAssignmentsGetByIdResponse = DenyAssignment & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1448,6 +1325,7 @@ export type DenyAssignmentsListForScopeResponse = DenyAssignmentListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1467,6 +1345,7 @@ export type DenyAssignmentsListForResourceNextResponse = DenyAssignmentListResul * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1486,6 +1365,7 @@ export type DenyAssignmentsListForResourceGroupNextResponse = DenyAssignmentList * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1505,6 +1385,7 @@ export type DenyAssignmentsListNextResponse = DenyAssignmentListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1524,6 +1405,7 @@ export type DenyAssignmentsListForScopeNextResponse = DenyAssignmentListResult & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ diff --git a/sdk/authorization/arm-authorization/src/models/mappers.ts b/sdk/authorization/arm-authorization/src/models/mappers.ts index e92ca87c6841..ee2cfdc282cc 100644 --- a/sdk/authorization/arm-authorization/src/models/mappers.ts +++ b/sdk/authorization/arm-authorization/src/models/mappers.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; @@ -259,6 +257,12 @@ export const RoleAssignment: msRest.CompositeMapper = { name: "String" } }, + principalType: { + serializedName: "properties.principalType", + type: { + name: "String" + } + }, canDelegate: { serializedName: "properties.canDelegate", type: { diff --git a/sdk/authorization/arm-authorization/src/models/parameters.ts b/sdk/authorization/arm-authorization/src/models/parameters.ts index 5b073d2abf51..f6016339a51d 100644 --- a/sdk/authorization/arm-authorization/src/models/parameters.ts +++ b/sdk/authorization/arm-authorization/src/models/parameters.ts @@ -38,7 +38,7 @@ export const apiVersion1: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2018-01-01-preview', + defaultValue: '2015-07-01', type: { name: "String" } @@ -50,13 +50,25 @@ export const apiVersion2: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2018-09-01-preview', + defaultValue: '2018-01-01-preview', type: { name: "String" } } }; export const apiVersion3: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2018-09-01-preview', + type: { + name: "String" + } + } +}; +export const apiVersion4: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { required: true, diff --git a/sdk/authorization/arm-authorization/src/models/permissionsMappers.ts b/sdk/authorization/arm-authorization/src/models/permissionsMappers.ts index 4dafccb64adc..2ca29685b7d7 100644 --- a/sdk/authorization/arm-authorization/src/models/permissionsMappers.ts +++ b/sdk/authorization/arm-authorization/src/models/permissionsMappers.ts @@ -1,16 +1,13 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - PermissionGetResult, + CloudError, Permission, - CloudError + PermissionGetResult } from "../models/mappers"; - diff --git a/sdk/authorization/arm-authorization/src/models/providerOperationsMetadataOperationsMappers.ts b/sdk/authorization/arm-authorization/src/models/providerOperationsMetadataOperationsMappers.ts index ee946386a312..7bfe52496e1d 100644 --- a/sdk/authorization/arm-authorization/src/models/providerOperationsMetadataOperationsMappers.ts +++ b/sdk/authorization/arm-authorization/src/models/providerOperationsMetadataOperationsMappers.ts @@ -1,18 +1,15 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - ProviderOperationsMetadata, - ResourceType, - ProviderOperation, CloudError, - ProviderOperationsMetadataListResult + ProviderOperation, + ProviderOperationsMetadata, + ProviderOperationsMetadataListResult, + ResourceType } from "../models/mappers"; - diff --git a/sdk/authorization/arm-authorization/src/models/roleAssignmentsMappers.ts b/sdk/authorization/arm-authorization/src/models/roleAssignmentsMappers.ts index 6b32348ab1b2..9a3e7d0c7a2c 100644 --- a/sdk/authorization/arm-authorization/src/models/roleAssignmentsMappers.ts +++ b/sdk/authorization/arm-authorization/src/models/roleAssignmentsMappers.ts @@ -1,17 +1,14 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - RoleAssignmentListResult, - RoleAssignment, CloudError, - RoleAssignmentCreateParameters + RoleAssignment, + RoleAssignmentCreateParameters, + RoleAssignmentListResult } from "../models/mappers"; - diff --git a/sdk/authorization/arm-authorization/src/models/roleDefinitionsMappers.ts b/sdk/authorization/arm-authorization/src/models/roleDefinitionsMappers.ts index e1ed35fac8c0..c64320ffca61 100644 --- a/sdk/authorization/arm-authorization/src/models/roleDefinitionsMappers.ts +++ b/sdk/authorization/arm-authorization/src/models/roleDefinitionsMappers.ts @@ -1,17 +1,14 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - RoleDefinition, - Permission, CloudError, + Permission, + RoleDefinition, RoleDefinitionListResult } from "../models/mappers"; - diff --git a/sdk/authorization/arm-authorization/src/operations/denyAssignments.ts b/sdk/authorization/arm-authorization/src/operations/denyAssignments.ts index 0ec0af80b2b8..e864b8780f9c 100644 --- a/sdk/authorization/arm-authorization/src/operations/denyAssignments.ts +++ b/sdk/authorization/arm-authorization/src/operations/denyAssignments.ts @@ -349,7 +349,7 @@ const listForResourceOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion4, Parameters.filter ], headerParameters: [ @@ -374,7 +374,7 @@ const listForResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion4, Parameters.filter ], headerParameters: [ @@ -398,7 +398,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion4, Parameters.filter ], headerParameters: [ @@ -423,7 +423,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.denyAssignmentId0 ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -446,7 +446,7 @@ const getByIdOperationSpec: msRest.OperationSpec = { Parameters.denyAssignmentId1 ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -469,7 +469,7 @@ const listForScopeOperationSpec: msRest.OperationSpec = { Parameters.scope ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion4, Parameters.filter ], headerParameters: [ diff --git a/sdk/authorization/arm-authorization/src/operations/globalAdministrator.ts b/sdk/authorization/arm-authorization/src/operations/globalAdministrator.ts new file mode 100644 index 000000000000..0023d794b235 --- /dev/null +++ b/sdk/authorization/arm-authorization/src/operations/globalAdministrator.ts @@ -0,0 +1,71 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Mappers from "../models/globalAdministratorMappers"; +import * as Parameters from "../models/parameters"; +import { AuthorizationManagementClientContext } from "../authorizationManagementClientContext"; + +/** Class representing a GlobalAdministrator. */ +export class GlobalAdministrator { + private readonly client: AuthorizationManagementClientContext; + + /** + * Create a GlobalAdministrator. + * @param {AuthorizationManagementClientContext} client Reference to the service client. + */ + constructor(client: AuthorizationManagementClientContext) { + this.client = client; + } + + /** + * Elevates access for a Global Administrator. + * @param [options] The optional parameters + * @returns Promise + */ + elevateAccess(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + elevateAccess(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + elevateAccess(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + elevateAccess(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + elevateAccessOperationSpec, + callback); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const elevateAccessOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "providers/Microsoft.Authorization/elevateAccess", + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/authorization/arm-authorization/src/operations/index.ts b/sdk/authorization/arm-authorization/src/operations/index.ts index b8d60f65908b..666b593b53b8 100644 --- a/sdk/authorization/arm-authorization/src/operations/index.ts +++ b/sdk/authorization/arm-authorization/src/operations/index.ts @@ -9,6 +9,7 @@ */ export * from "./classicAdministrators"; +export * from "./globalAdministrator"; export * from "./providerOperationsMetadataOperations"; export * from "./roleAssignments"; export * from "./permissions"; diff --git a/sdk/authorization/arm-authorization/src/operations/permissions.ts b/sdk/authorization/arm-authorization/src/operations/permissions.ts index a2a0b8e63efe..95de3b3b1a05 100644 --- a/sdk/authorization/arm-authorization/src/operations/permissions.ts +++ b/sdk/authorization/arm-authorization/src/operations/permissions.ts @@ -165,7 +165,7 @@ const listForResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -193,7 +193,7 @@ const listForResourceOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + 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 c61f46db1e11..7643d6706222 100644 --- a/sdk/authorization/arm-authorization/src/operations/providerOperationsMetadataOperations.ts +++ b/sdk/authorization/arm-authorization/src/operations/providerOperationsMetadataOperations.ts @@ -116,7 +116,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.resourceProviderNamespace ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion2, Parameters.expand ], headerParameters: [ @@ -137,7 +137,7 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/Microsoft.Authorization/providerOperations", queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion2, Parameters.expand ], headerParameters: [ diff --git a/sdk/authorization/arm-authorization/src/operations/roleAssignments.ts b/sdk/authorization/arm-authorization/src/operations/roleAssignments.ts index a2c56f828b8d..f6d695fcba05 100644 --- a/sdk/authorization/arm-authorization/src/operations/roleAssignments.ts +++ b/sdk/authorization/arm-authorization/src/operations/roleAssignments.ts @@ -481,7 +481,7 @@ const listForResourceOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.filter, - Parameters.apiVersion2 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -506,7 +506,7 @@ const listForResourceGroupOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.filter, - Parameters.apiVersion2 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -530,7 +530,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.roleAssignmentName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -554,7 +554,7 @@ const createOperationSpec: msRest.OperationSpec = { Parameters.roleAssignmentName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -585,7 +585,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.roleAssignmentName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -608,7 +608,7 @@ const deleteByIdOperationSpec: msRest.OperationSpec = { Parameters.roleId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -631,7 +631,7 @@ const createByIdOperationSpec: msRest.OperationSpec = { Parameters.roleId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -661,7 +661,7 @@ const getByIdOperationSpec: msRest.OperationSpec = { Parameters.roleId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -685,7 +685,7 @@ const listOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.filter, - Parameters.apiVersion2 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -709,7 +709,7 @@ const listForScopeOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.filter, - Parameters.apiVersion2 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/authorization/arm-authorization/src/operations/roleDefinitions.ts b/sdk/authorization/arm-authorization/src/operations/roleDefinitions.ts index 5e8ca07273af..de7a923fffb2 100644 --- a/sdk/authorization/arm-authorization/src/operations/roleDefinitions.ts +++ b/sdk/authorization/arm-authorization/src/operations/roleDefinitions.ts @@ -233,7 +233,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.roleDefinitionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -257,7 +257,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.roleDefinitionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -281,7 +281,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.roleDefinitionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -312,7 +312,7 @@ const listOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.filter, - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -335,7 +335,7 @@ const getByIdOperationSpec: msRest.OperationSpec = { Parameters.roleId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage