Skip to content

Commit

Permalink
CodeGen from PR 25270 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 554bd9f0f7432477ccd95376269eeb138ee92236 into 75ef4265cb9ade12dbcba88346ed761821d0e0b7
  • Loading branch information
SDKAuto committed Aug 25, 2023
1 parent a227cd2 commit 9a25ec4
Show file tree
Hide file tree
Showing 13 changed files with 126 additions and 95 deletions.
50 changes: 28 additions & 22 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 11 additions & 10 deletions sdk/locks/arm-locks/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# Release History

## 3.0.0 (2023-08-25)

**Breaking Changes**

## 2.1.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Class ManagementLockClient has a new signature
- Interface ManagementLocksListAtResourceGroupLevelNextOptionalParams no longer has parameter filter
- Interface ManagementLocksListAtResourceLevelNextOptionalParams no longer has parameter filter
- Interface ManagementLocksListAtSubscriptionLevelNextOptionalParams no longer has parameter filter
- Interface ManagementLocksListByScopeNextOptionalParams no longer has parameter filter


## 2.1.0 (2022-11-22)

**Features**
Expand Down
2 changes: 1 addition & 1 deletion sdk/locks/arm-locks/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2022 Microsoft
Copyright (c) 2023 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
Expand Down
8 changes: 4 additions & 4 deletions sdk/locks/arm-locks/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "a42f1b58607091c4f255ead152a8ef323fa0b280",
"commit": "c118fe788ecdf4d7be4170758c4d4fdafd09edc4",
"readme": "specification/resources/resource-manager/readme.md",
"autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\resources\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.3.20221108.1 --generate-sample=true",
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/resources/resource-manager/readme.md --use=@autorest/typescript@^6.0.4",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
"use": "@autorest/typescript@6.0.0-rc.3.20221108.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.2",
"use": "@autorest/typescript@^6.0.4"
}
25 changes: 9 additions & 16 deletions sdk/locks/arm-locks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for ManagementLockClient.",
"version": "2.1.1",
"version": "3.0.0",
"engines": {
"node": ">=14.0.0"
},
"dependencies": {
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.6.1",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.8.0",
"@azure/core-rest-pipeline": "^1.12.0",
"tslib": "^2.2.0"
},
"keywords": [
Expand All @@ -31,12 +31,13 @@
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-multi-entry": "^6.0.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"mkdirp": "^1.0.4",
"mkdirp": "^2.1.2",
"rollup": "^2.66.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"typescript": "~5.0.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"dotenv": "^16.0.0",
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.0.0",
Expand All @@ -45,10 +46,9 @@
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@types/node": "^14.0.0",
"@azure/dev-tool": "^1.0.0",
"ts-node": "^10.0.0"
"ts-node": "^10.0.0",
"@azure/dev-tool": "^1.0.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/locks/arm-locks",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
Expand Down Expand Up @@ -110,12 +110,5 @@
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-locks?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/locks/arm-locks"
}
7 changes: 2 additions & 5 deletions sdk/locks/arm-locks/review/arm-locks.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,15 @@ export class ManagementLockClient extends coreClient.ServiceClient {
// (undocumented)
$host: string;
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ManagementLockClientOptionalParams);
constructor(credentials: coreAuth.TokenCredential, options?: ManagementLockClientOptionalParams);
// (undocumented)
apiVersion: string;
// (undocumented)
authorizationOperations: AuthorizationOperations;
// (undocumented)
managementLocks: ManagementLocks;
// (undocumented)
subscriptionId: string;
subscriptionId?: string;
}

// @public
Expand Down Expand Up @@ -209,7 +210,6 @@ export type ManagementLocksGetByScopeResponse = ManagementLockObject;

// @public
export interface ManagementLocksListAtResourceGroupLevelNextOptionalParams extends coreClient.OperationOptions {
filter?: string;
}

// @public
Expand All @@ -225,7 +225,6 @@ export type ManagementLocksListAtResourceGroupLevelResponse = ManagementLockList

// @public
export interface ManagementLocksListAtResourceLevelNextOptionalParams extends coreClient.OperationOptions {
filter?: string;
}

// @public
Expand All @@ -241,7 +240,6 @@ export type ManagementLocksListAtResourceLevelResponse = ManagementLockListResul

// @public
export interface ManagementLocksListAtSubscriptionLevelNextOptionalParams extends coreClient.OperationOptions {
filter?: string;
}

// @public
Expand All @@ -257,7 +255,6 @@ export type ManagementLocksListAtSubscriptionLevelResponse = ManagementLockListR

// @public
export interface ManagementLocksListByScopeNextOptionalParams extends coreClient.OperationOptions {
filter?: string;
}

// @public
Expand Down
22 changes: 18 additions & 4 deletions sdk/locks/arm-locks/src/managementLockClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { ManagementLockClientOptionalParams } from "./models";
export class ManagementLockClient extends coreClient.ServiceClient {
$host: string;
apiVersion: string;
subscriptionId: string;
subscriptionId?: string;

/**
* Initializes a new instance of the ManagementLockClient class.
Expand All @@ -36,12 +36,26 @@ export class ManagementLockClient extends coreClient.ServiceClient {
credentials: coreAuth.TokenCredential,
subscriptionId: string,
options?: ManagementLockClientOptionalParams
);
constructor(
credentials: coreAuth.TokenCredential,
options?: ManagementLockClientOptionalParams
);
constructor(
credentials: coreAuth.TokenCredential,
subscriptionIdOrOptions?: ManagementLockClientOptionalParams | string,
options?: ManagementLockClientOptionalParams
) {
if (credentials === undefined) {
throw new Error("'credentials' cannot be null");
}
if (subscriptionId === undefined) {
throw new Error("'subscriptionId' cannot be null");

let subscriptionId: string | undefined;

if (typeof subscriptionIdOrOptions === "string") {
subscriptionId = subscriptionIdOrOptions;
} else if (typeof subscriptionIdOrOptions === "object") {
options = subscriptionIdOrOptions;
}

// Initializing default values for options
Expand All @@ -53,7 +67,7 @@ export class ManagementLockClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-locks/2.1.1`;
const packageDetails = `azsdk-js-arm-locks/3.0.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down
Loading

0 comments on commit 9a25ec4

Please sign in to comment.