Skip to content

Commit dadfdd4

Browse files
author
SDKAuto
committed
CodeGen from PR 25270 in Azure/azure-rest-api-specs
Merge 554bd9f0f7432477ccd95376269eeb138ee92236 into 75ef4265cb9ade12dbcba88346ed761821d0e0b7
1 parent a227cd2 commit dadfdd4

File tree

13 files changed

+122
-76
lines changed

13 files changed

+122
-76
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 28 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/links/arm-links/CHANGELOG.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
# Release History
2-
3-
## 2.0.2 (2022-11-22)
4-
5-
**Features**
6-
7-
-  Exposes `getContinuationToken` helper function to extract continuation token
8-
9-
**Bugs Fixed**
10-
 
11-
- A series of small bug fixs relevant to authentication and apiVersion policy
12-
2+
3+
## 3.0.0 (2023-08-25)
4+
5+
**Breaking Changes**
6+
7+
- Class ManagementLinkClient has a new signature
8+
- Interface ResourceLinksListAtSubscriptionNextOptionalParams no longer has parameter filter
9+
1310
## 2.0.1 (2022-04-18)
1411

1512
**features**

sdk/links/arm-links/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2022 Microsoft
3+
Copyright (c) 2023 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/links/arm-links/_meta.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "a42f1b58607091c4f255ead152a8ef323fa0b280",
3-
"readme": "specification\\resources\\resource-manager\\readme.md",
4-
"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/[email protected].0-rc.3.20221108.1 --generate-sample=true",
2+
"commit": "c118fe788ecdf4d7be4170758c4d4fdafd09edc4",
3+
"readme": "specification/resources/resource-manager/readme.md",
4+
"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",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
7-
"use": "@autorest/[email protected].0-rc.3.20221108.1"
6+
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.2",
7+
"use": "@autorest/typescript@^6.0.4"
88
}

sdk/links/arm-links/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for ManagementLinkClient.",
6-
"version": "2.0.2",
6+
"version": "3.0.0",
77
"engines": {
88
"node": ">=14.0.0"
99
},
1010
"dependencies": {
1111
"@azure/core-paging": "^1.2.0",
12-
"@azure/core-client": "^1.6.1",
12+
"@azure/core-client": "^1.7.0",
1313
"@azure/core-auth": "^1.3.0",
14-
"@azure/core-rest-pipeline": "^1.8.0",
14+
"@azure/core-rest-pipeline": "^1.12.0",
1515
"tslib": "^2.2.0"
1616
},
1717
"keywords": [
@@ -31,25 +31,24 @@
3131
"@rollup/plugin-json": "^6.0.0",
3232
"@rollup/plugin-multi-entry": "^6.0.0",
3333
"@rollup/plugin-node-resolve": "^13.1.3",
34-
"mkdirp": "^1.0.4",
34+
"mkdirp": "^2.1.2",
3535
"rollup": "^2.66.1",
3636
"rollup-plugin-sourcemaps": "^0.6.3",
3737
"typescript": "~5.0.0",
3838
"uglify-js": "^3.4.9",
3939
"rimraf": "^3.0.0",
40+
"dotenv": "^16.0.0",
4041
"@azure/identity": "^2.0.1",
4142
"@azure-tools/test-recorder": "^3.0.0",
4243
"@azure-tools/test-credential": "^1.0.0",
4344
"mocha": "^7.1.1",
4445
"@types/chai": "^4.2.8",
4546
"chai": "^4.2.0",
4647
"cross-env": "^7.0.2",
47-
"@azure/arm-resources": "^5.0.0",
4848
"@types/node": "^14.0.0",
49-
"@azure/dev-tool": "^1.0.0",
50-
"ts-node": "^10.0.0"
49+
"ts-node": "^10.0.0",
50+
"@azure/dev-tool": "^1.0.0"
5151
},
52-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/links/arm-links",
5352
"repository": {
5453
"type": "git",
5554
"url": "https://github.com/Azure/azure-sdk-for-js.git"
@@ -110,5 +109,6 @@
110109
}
111110
]
112111
},
113-
"autoPublish": true
114-
}
112+
"autoPublish": true,
113+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/links/arm-links"
114+
}

sdk/links/arm-links/review/arm-links.api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@ export class ManagementLinkClient extends coreClient.ServiceClient {
1616
// (undocumented)
1717
$host: string;
1818
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ManagementLinkClientOptionalParams);
19+
constructor(credentials: coreAuth.TokenCredential, options?: ManagementLinkClientOptionalParams);
1920
// (undocumented)
2021
apiVersion: string;
2122
// (undocumented)
2223
operations: Operations;
2324
// (undocumented)
2425
resourceLinks: ResourceLinks;
2526
// (undocumented)
26-
subscriptionId: string;
27+
subscriptionId?: string;
2728
}
2829

2930
// @public
@@ -141,7 +142,6 @@ export type ResourceLinksListAtSourceScopeResponse = ResourceLinkResult;
141142

142143
// @public
143144
export interface ResourceLinksListAtSubscriptionNextOptionalParams extends coreClient.OperationOptions {
144-
filter?: string;
145145
}
146146

147147
// @public

sdk/links/arm-links/src/managementLinkClient.ts

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { ManagementLinkClientOptionalParams } from "./models";
2121
export class ManagementLinkClient extends coreClient.ServiceClient {
2222
$host: string;
2323
apiVersion: string;
24-
subscriptionId: string;
24+
subscriptionId?: string;
2525

2626
/**
2727
* Initializes a new instance of the ManagementLinkClient class.
@@ -33,12 +33,26 @@ export class ManagementLinkClient extends coreClient.ServiceClient {
3333
credentials: coreAuth.TokenCredential,
3434
subscriptionId: string,
3535
options?: ManagementLinkClientOptionalParams
36+
);
37+
constructor(
38+
credentials: coreAuth.TokenCredential,
39+
options?: ManagementLinkClientOptionalParams
40+
);
41+
constructor(
42+
credentials: coreAuth.TokenCredential,
43+
subscriptionIdOrOptions?: ManagementLinkClientOptionalParams | string,
44+
options?: ManagementLinkClientOptionalParams
3645
) {
3746
if (credentials === undefined) {
3847
throw new Error("'credentials' cannot be null");
3948
}
40-
if (subscriptionId === undefined) {
41-
throw new Error("'subscriptionId' cannot be null");
49+
50+
let subscriptionId: string | undefined;
51+
52+
if (typeof subscriptionIdOrOptions === "string") {
53+
subscriptionId = subscriptionIdOrOptions;
54+
} else if (typeof subscriptionIdOrOptions === "object") {
55+
options = subscriptionIdOrOptions;
4256
}
4357

4458
// Initializing default values for options
@@ -50,7 +64,7 @@ export class ManagementLinkClient extends coreClient.ServiceClient {
5064
credential: credentials
5165
};
5266

53-
const packageDetails = `azsdk-js-arm-links/2.0.2`;
67+
const packageDetails = `azsdk-js-arm-links/3.0.0`;
5468
const userAgentPrefix =
5569
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
5670
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`

sdk/links/arm-links/src/models/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,7 @@ export type ResourceLinksListAtSourceScopeResponse = ResourceLinkResult;
138138

139139
/** Optional parameters. */
140140
export interface ResourceLinksListAtSubscriptionNextOptionalParams
141-
extends coreClient.OperationOptions {
142-
/** The filter to apply on the list resource links operation. The supported filter for list resource links is targetId. For example, $filter=targetId eq {value} */
143-
filter?: string;
144-
}
141+
extends coreClient.OperationOptions {}
145142

146143
/** Contains response data for the listAtSubscriptionNext operation. */
147144
export type ResourceLinksListAtSubscriptionNextResponse = ResourceLinkResult;

sdk/links/arm-links/src/operations/operations.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
137137
bodyMapper: Mappers.OperationListResult
138138
}
139139
},
140-
queryParameters: [Parameters.apiVersion],
141140
urlParameters: [Parameters.$host, Parameters.nextLink],
142141
headerParameters: [Parameters.accept],
143142
serializer

0 commit comments

Comments
 (0)