diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index b72b191a22aa..09a8b8e02ac2 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -10746,22 +10746,22 @@ packages: dev: false file:projects/arm-managementgroups.tgz: - resolution: {integrity: sha512-lSJ7nwt++ygMZrcIRSZ9vpjK+bgfzKpZnh4vj95grx4nd1hIo6ZlOUmnNfAQn+XSSryiGOeWrSO4DqiaXzKhdA==, tarball: file:projects/arm-managementgroups.tgz} + resolution: {integrity: sha512-W1CXloYU9yB3ffozven4CugCgSSEziq8lNSrZWdIJBTxtifKLG+aV/n0z1UQFuaZbd80e68TaZ4ADrDBbiUKwQ==, tarball: file:projects/arm-managementgroups.tgz} name: '@rush-temp/arm-managementgroups' version: 0.0.0 dependencies: '@azure-tools/test-recorder': 1.0.2 '@microsoft/api-extractor': 7.19.4 - '@rollup/plugin-commonjs': 21.0.1_rollup@2.67.1 - '@rollup/plugin-json': 4.1.0_rollup@2.67.1 - '@rollup/plugin-multi-entry': 3.0.1_rollup@2.67.1 - '@rollup/plugin-node-resolve': 8.4.0_rollup@2.67.1 + '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 + '@rollup/plugin-json': 4.1.0_rollup@1.32.1 + '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1 + '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 7.2.0 rimraf: 3.0.2 - rollup: 2.67.1 - rollup-plugin-sourcemaps: 0.4.2_rollup@2.67.1 + rollup: 1.32.1 + rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1 tslib: 2.3.1 typescript: 4.2.4 uglify-js: 3.15.1 @@ -13912,7 +13912,7 @@ packages: dev: false file:projects/eventgrid.tgz: - resolution: {integrity: sha512-cRipNDlfS0co7HptArkxqp6lbNAffyBqpvSVSDhMe/ZR5cBJs6ywzCsV/QxHhxBpp6Z7p5To9h98IYOOIhMp+A==, tarball: file:projects/eventgrid.tgz} + resolution: {integrity: sha512-5cMNL6d3puoJz7tLWxl1yyAwtd3EI7uAMvn+q3AAyZHJFG7WdS3l7IfCL8i8LD2qvRdpRJxm88jqVsLU3oA+Eg==, tarball: file:projects/eventgrid.tgz} name: '@rush-temp/eventgrid' version: 0.0.0 dependencies: @@ -13960,7 +13960,6 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false diff --git a/sdk/managementgroups/arm-managementgroups/CHANGELOG.md b/sdk/managementgroups/arm-managementgroups/CHANGELOG.md index 2b3fd3d2f950..ed202d0b58aa 100644 --- a/sdk/managementgroups/arm-managementgroups/CHANGELOG.md +++ b/sdk/managementgroups/arm-managementgroups/CHANGELOG.md @@ -1,15 +1,23 @@ # Release History - -## 2.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + +## 3.0.0 (2022-02-09) + +**Features** + + - Added Type Alias EntitySearchType + - Added Type Alias EntityViewParameterType + - Added Type Alias ManagementGroupExpandType + - Added Enum KnownEntitySearchType + - Added Enum KnownEntityViewParameterType + - Added Enum KnownManagementGroupExpandType + +**Breaking Changes** + + - Removed Enum KnownEnum0 + - Removed Enum KnownEnum2 + - Removed Enum KnownEnum3 + + ## 2.0.0 (2021-12-22) The package of @azure/arm-managementgroups is using our next generation design principles since version 2.0.0, which contains breaking changes. diff --git a/sdk/managementgroups/arm-managementgroups/LICENSE b/sdk/managementgroups/arm-managementgroups/LICENSE index ccb63b166732..5d1d36e0af80 100644 --- a/sdk/managementgroups/arm-managementgroups/LICENSE +++ b/sdk/managementgroups/arm-managementgroups/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2021 Microsoft +Copyright (c) 2022 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/managementgroups/arm-managementgroups/_meta.json b/sdk/managementgroups/arm-managementgroups/_meta.json index 0a7c0ae8b195..502bffa3177c 100644 --- a/sdk/managementgroups/arm-managementgroups/_meta.json +++ b/sdk/managementgroups/arm-managementgroups/_meta.json @@ -1,7 +1,7 @@ { - "commit": "0cd7b3e83d5e7e21222dcc4bdde4565562da0cdf", + "commit": "524ca84e56312adce52c62004b9a463e277d6da2", "readme": "specification/managementgroups/resource-manager/readme.md", - "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/managementgroups/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211217.1", + "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/managementgroups/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-alpha.16.20211217.1" + "use": "@autorest/typescript@6.0.0-alpha.16.20220105.1" } \ No newline at end of file diff --git a/sdk/managementgroups/arm-managementgroups/api-extractor.json b/sdk/managementgroups/arm-managementgroups/api-extractor.json index 0da3ddcfee46..d31b22a331c5 100644 --- a/sdk/managementgroups/arm-managementgroups/api-extractor.json +++ b/sdk/managementgroups/arm-managementgroups/api-extractor.json @@ -1,18 +1,31 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", "publicTrimmedFilePath": "./types/arm-managementgroups.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } -} +} \ No newline at end of file diff --git a/sdk/managementgroups/arm-managementgroups/package.json b/sdk/managementgroups/arm-managementgroups/package.json index ade06fb068ef..6fdc302a0518 100644 --- a/sdk/managementgroups/arm-managementgroups/package.json +++ b/sdk/managementgroups/arm-managementgroups/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ManagementGroupsAPI.", - "version": "2.0.1", + "version": "3.0.0", "engines": { "node": ">=12.0.0" }, @@ -29,12 +29,12 @@ "types": "./types/arm-managementgroups.d.ts", "devDependencies": { "@microsoft/api-extractor": "^7.18.11", - "@rollup/plugin-commonjs": "^21.0.1", + "@rollup/plugin-commonjs": "11.0.2", "@rollup/plugin-json": "^4.0.0", "@rollup/plugin-multi-entry": "^3.0.0", "@rollup/plugin-node-resolve": "^8.0.0", "mkdirp": "^1.0.4", - "rollup": "^2.0.0", + "rollup": "^1.16.3", "rollup-plugin-sourcemaps": "^0.4.2", "typescript": "~4.2.0", "uglify-js": "^3.4.9", @@ -99,4 +99,4 @@ }, "sideEffects": false, "autoPublish": true -} +} \ No newline at end of file diff --git a/sdk/managementgroups/arm-managementgroups/review/arm-managementgroups.api.md b/sdk/managementgroups/arm-managementgroups/review/arm-managementgroups.api.md index 8bf14e1d640d..5ea55bde8dc7 100644 --- a/sdk/managementgroups/arm-managementgroups/review/arm-managementgroups.api.md +++ b/sdk/managementgroups/arm-managementgroups/review/arm-managementgroups.api.md @@ -111,12 +111,12 @@ export interface EntitiesListNextOptionalParams extends coreClient.OperationOpti cacheControl?: string; filter?: string; groupName?: string; - search?: Enum2; + search?: EntitySearchType; select?: string; skip?: number; skiptoken?: string; top?: number; - view?: Enum3; + view?: EntityViewParameterType; } // @public @@ -127,12 +127,12 @@ export interface EntitiesListOptionalParams extends coreClient.OperationOptions cacheControl?: string; filter?: string; groupName?: string; - search?: Enum2; + search?: EntitySearchType; select?: string; skip?: number; skiptoken?: string; top?: number; - view?: Enum3; + view?: EntityViewParameterType; } // @public @@ -178,13 +178,10 @@ export interface EntityParentGroupInfo { } // @public -export type Enum0 = string; +export type EntitySearchType = string; // @public -export type Enum2 = string; - -// @public -export type Enum3 = string; +export type EntityViewParameterType = string; // @public export interface ErrorDetails { @@ -266,17 +263,7 @@ export interface HierarchySettingsUpdateOptionalParams extends coreClient.Operat export type HierarchySettingsUpdateResponse = HierarchySettings; // @public -export enum KnownEnum0 { - // (undocumented) - Ancestors = "ancestors", - // (undocumented) - Children = "children", - // (undocumented) - Path = "path" -} - -// @public -export enum KnownEnum2 { +export enum KnownEntitySearchType { // (undocumented) AllowedChildren = "AllowedChildren", // (undocumented) @@ -290,7 +277,7 @@ export enum KnownEnum2 { } // @public -export enum KnownEnum3 { +export enum KnownEntityViewParameterType { // (undocumented) Audit = "Audit", // (undocumented) @@ -309,6 +296,16 @@ export enum KnownManagementGroupChildType { Subscriptions = "/subscriptions" } +// @public +export enum KnownManagementGroupExpandType { + // (undocumented) + Ancestors = "ancestors", + // (undocumented) + Children = "children", + // (undocumented) + Path = "path" +} + // @public export enum KnownPermissions { // (undocumented) @@ -361,6 +358,9 @@ export interface ManagementGroupDetails { version?: number; } +// @public +export type ManagementGroupExpandType = string; + // @public export interface ManagementGroupInfo { displayName?: string; @@ -476,7 +476,7 @@ export type ManagementGroupsGetDescendantsResponse = DescendantListResult; // @public export interface ManagementGroupsGetOptionalParams extends coreClient.OperationOptions { cacheControl?: string; - expand?: Enum0; + expand?: ManagementGroupExpandType; filter?: string; recurse?: boolean; } diff --git a/sdk/managementgroups/arm-managementgroups/src/managementGroupsAPI.ts b/sdk/managementgroups/arm-managementgroups/src/managementGroupsAPI.ts index fec63eb2fcbc..4ea5496bdd4a 100644 --- a/sdk/managementgroups/arm-managementgroups/src/managementGroupsAPI.ts +++ b/sdk/managementgroups/arm-managementgroups/src/managementGroupsAPI.ts @@ -61,7 +61,7 @@ export class ManagementGroupsAPI extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-managementgroups/1.0.0-beta.1`; + const packageDetails = `azsdk-js-arm-managementgroups/3.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/managementgroups/arm-managementgroups/src/models/index.ts b/sdk/managementgroups/arm-managementgroups/src/models/index.ts index 4794cdfda4fd..9beafc75fb11 100644 --- a/sdk/managementgroups/arm-managementgroups/src/models/index.ts +++ b/sdk/managementgroups/arm-managementgroups/src/models/index.ts @@ -649,23 +649,23 @@ export interface ManagementGroupsDeleteHeaders { azureAsyncOperation?: string; } -/** Known values of {@link Enum0} that the service accepts. */ -export enum KnownEnum0 { +/** Known values of {@link ManagementGroupExpandType} that the service accepts. */ +export enum KnownManagementGroupExpandType { Children = "children", Path = "path", Ancestors = "ancestors" } /** - * Defines values for Enum0. \ - * {@link KnownEnum0} can be used interchangeably with Enum0, + * Defines values for ManagementGroupExpandType. \ + * {@link KnownManagementGroupExpandType} can be used interchangeably with ManagementGroupExpandType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **children** \ * **path** \ * **ancestors** */ -export type Enum0 = string; +export type ManagementGroupExpandType = string; /** Known values of {@link ManagementGroupChildType} that the service accepts. */ export enum KnownManagementGroupChildType { @@ -683,8 +683,8 @@ export enum KnownManagementGroupChildType { */ export type ManagementGroupChildType = string; -/** Known values of {@link Enum2} that the service accepts. */ -export enum KnownEnum2 { +/** Known values of {@link EntitySearchType} that the service accepts. */ +export enum KnownEntitySearchType { AllowedParents = "AllowedParents", AllowedChildren = "AllowedChildren", ParentAndFirstLevelChildren = "ParentAndFirstLevelChildren", @@ -693,8 +693,8 @@ export enum KnownEnum2 { } /** - * Defines values for Enum2. \ - * {@link KnownEnum2} can be used interchangeably with Enum2, + * Defines values for EntitySearchType. \ + * {@link KnownEntitySearchType} can be used interchangeably with EntitySearchType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **AllowedParents** \ @@ -703,10 +703,10 @@ export enum KnownEnum2 { * **ParentOnly** \ * **ChildrenOnly** */ -export type Enum2 = string; +export type EntitySearchType = string; -/** Known values of {@link Enum3} that the service accepts. */ -export enum KnownEnum3 { +/** Known values of {@link EntityViewParameterType} that the service accepts. */ +export enum KnownEntityViewParameterType { FullHierarchy = "FullHierarchy", GroupsOnly = "GroupsOnly", SubscriptionsOnly = "SubscriptionsOnly", @@ -714,8 +714,8 @@ export enum KnownEnum3 { } /** - * Defines values for Enum3. \ - * {@link KnownEnum3} can be used interchangeably with Enum3, + * Defines values for EntityViewParameterType. \ + * {@link KnownEntityViewParameterType} can be used interchangeably with EntityViewParameterType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **FullHierarchy** \ @@ -723,7 +723,7 @@ export enum KnownEnum3 { * **SubscriptionsOnly** \ * **Audit** */ -export type Enum3 = string; +export type EntityViewParameterType = string; /** Known values of {@link Permissions} that the service accepts. */ export enum KnownPermissions { @@ -777,7 +777,7 @@ export interface ManagementGroupsGetOptionalParams /** Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. */ cacheControl?: string; /** The $expand=children query string parameter allows clients to request inclusion of children in the response payload. $expand=path includes the path from the root group to the current group. $expand=ancestors includes the ancestor Ids of the current group. */ - expand?: Enum0; + expand?: ManagementGroupExpandType; /** The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload. Note that $expand=children must be passed up if $recurse is set to true. */ recurse?: boolean; /** A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription') */ @@ -1023,9 +1023,9 @@ export interface EntitiesListOptionalParams * With $search=ParentOnly the API will return only the group if the user has access to at least one of the descendants of the group. * With $search=ChildrenOnly the API will return only the first level of children of the group entity info specified in $filter. The user must have direct access to the children entities or one of it's descendants for it to show up in the results. */ - search?: Enum2; + search?: EntitySearchType; /** The view parameter allows clients to filter the type of data that is returned by the getEntities call. */ - view?: Enum3; + view?: EntityViewParameterType; /** A filter which allows the get entities call to focus on a particular group (i.e. "$filter=name eq 'groupName'") */ groupName?: string; } @@ -1060,9 +1060,9 @@ export interface EntitiesListNextOptionalParams * With $search=ParentOnly the API will return only the group if the user has access to at least one of the descendants of the group. * With $search=ChildrenOnly the API will return only the first level of children of the group entity info specified in $filter. The user must have direct access to the children entities or one of it's descendants for it to show up in the results. */ - search?: Enum2; + search?: EntitySearchType; /** The view parameter allows clients to filter the type of data that is returned by the getEntities call. */ - view?: Enum3; + view?: EntityViewParameterType; /** A filter which allows the get entities call to focus on a particular group (i.e. "$filter=name eq 'groupName'") */ groupName?: string; } diff --git a/sdk/managementgroups/arm-managementgroups/tsconfig.json b/sdk/managementgroups/arm-managementgroups/tsconfig.json index 6e3251194117..3e6ae96443f3 100644 --- a/sdk/managementgroups/arm-managementgroups/tsconfig.json +++ b/sdk/managementgroups/arm-managementgroups/tsconfig.json @@ -9,11 +9,19 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6", "dom"], + "lib": [ + "es6", + "dom" + ], "declaration": true, "outDir": "./dist-esm", "importHelpers": true }, - "include": ["./src/**/*.ts", "./test/**/*.ts"], - "exclude": ["node_modules"] -} + "include": [ + "./src/**/*.ts", + "./test/**/*.ts" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file