Skip to content

Commit 413eee6

Browse files
author
SDKAuto
committed
CodeGen from PR 29383 in Azure/azure-rest-api-specs
Merge d829f0a51465675cd4b8270b9ca6b0fea6ae0cbf into ed23c08d96df19aa31784e8a33253f3e35e09410
1 parent c5e113a commit 413eee6

File tree

194 files changed

+17758
-12940
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

194 files changed

+17758
-12940
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 406 additions & 391 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
# Release History
2+
3+
## 2.0.0 (2024-06-13)
4+
5+
**Breaking Changes**
26

3-
## 1.1.1 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
12-
7+
- Interface ChangesListNextOptionalParams no longer has parameter skipToken
8+
- Interface ChangesListNextOptionalParams no longer has parameter top
9+
10+
1311
## 1.1.0 (2022-11-17)
1412

1513
**Features**
@@ -19,4 +17,4 @@
1917

2018
## 1.0.0 (2022-05-09)
2119

22-
The package of @azure/arm-changes is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
20+
The package of @azure/arm-changes is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).

sdk/changes/arm-changes/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) 2024 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/changes/arm-changes/_meta.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "20df2424a278ca19437e437a7dbf3a7857a0dd9d",
2+
"commit": "40f646e88e61259f26b3194989f9f58ccab85f05",
33
"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",
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.12",
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.10",
7+
"use": "@autorest/typescript@^6.0.12"
88
}

sdk/changes/arm-changes/package.json

Lines changed: 13 additions & 20 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 ChangesClient.",
6-
"version": "1.1.1",
6+
"version": "2.0.0",
77
"engines": {
88
"node": ">=18.0.0"
99
},
1010
"dependencies": {
1111
"@azure/core-paging": "^1.2.0",
12-
"@azure/core-client": "^1.6.1",
13-
"@azure/core-auth": "^1.3.0",
14-
"@azure/core-rest-pipeline": "^1.8.0",
12+
"@azure/core-client": "^1.7.0",
13+
"@azure/core-auth": "^1.6.0",
14+
"@azure/core-rest-pipeline": "^1.14.0",
1515
"tslib": "^2.2.0"
1616
},
1717
"keywords": [
@@ -30,20 +30,21 @@
3030
"mkdirp": "^3.0.1",
3131
"typescript": "~5.4.5",
3232
"uglify-js": "^3.4.9",
33-
"rimraf": "^5.0.5",
33+
"rimraf": "^5.0.0",
34+
"dotenv": "^16.0.0",
35+
"@azure/dev-tool": "^1.0.0",
3436
"@azure/identity": "^4.0.1",
3537
"@azure-tools/test-recorder": "^3.0.0",
36-
"@azure-tools/test-credential": "^1.0.0",
38+
"@azure-tools/test-credential": "^1.1.0",
3739
"mocha": "^10.0.0",
40+
"@types/mocha": "^10.0.0",
41+
"tsx": "^4.7.1",
3842
"@types/chai": "^4.2.8",
3943
"chai": "^4.2.0",
4044
"cross-env": "^7.0.2",
4145
"@types/node": "^18.0.0",
42-
"@azure/dev-tool": "^1.0.0",
43-
"ts-node": "^10.0.0",
44-
"@types/mocha": "^10.0.0"
46+
"ts-node": "^10.0.0"
4547
},
46-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/changes/arm-changes",
4748
"repository": {
4849
"type": "git",
4950
"url": "https://github.com/Azure/azure-sdk-for-js.git"
@@ -75,7 +76,6 @@
7576
"pack": "npm pack 2>&1",
7677
"extract-api": "dev-tool run extract-api",
7778
"lint": "echo skipped",
78-
"audit": "echo skipped",
7979
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
8080
"build:node": "echo skipped",
8181
"build:browser": "echo skipped",
@@ -104,12 +104,5 @@
104104
]
105105
},
106106
"autoPublish": true,
107-
"//sampleConfiguration": {
108-
"productName": "",
109-
"productSlugs": [
110-
"azure"
111-
],
112-
"disableDocsMs": true,
113-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-changes?view=azure-node-preview"
114-
}
115-
}
107+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/changes/arm-changes"
108+
}

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ export type ChangesGetResponse = ChangeResourceResult;
8585

8686
// @public
8787
export interface ChangesListNextOptionalParams extends coreClient.OperationOptions {
88-
skipToken?: string;
89-
top?: number;
9088
}
9189

9290
// @public

sdk/changes/arm-changes/src/changesClient.ts

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline";
1111
import {
1212
PipelineRequest,
1313
PipelineResponse,
14-
SendRequest
14+
SendRequest,
1515
} from "@azure/core-rest-pipeline";
1616
import * as coreAuth from "@azure/core-auth";
1717
import { ChangesImpl } from "./operations";
@@ -33,7 +33,7 @@ export class ChangesClient extends coreClient.ServiceClient {
3333
constructor(
3434
credentials: coreAuth.TokenCredential,
3535
subscriptionId: string,
36-
options?: ChangesClientOptionalParams
36+
options?: ChangesClientOptionalParams,
3737
) {
3838
if (credentials === undefined) {
3939
throw new Error("'credentials' cannot be null");
@@ -48,10 +48,10 @@ export class ChangesClient extends coreClient.ServiceClient {
4848
}
4949
const defaults: ChangesClientOptionalParams = {
5050
requestContentType: "application/json; charset=utf-8",
51-
credential: credentials
51+
credential: credentials,
5252
};
5353

54-
const packageDetails = `azsdk-js-arm-changes/1.1.1`;
54+
const packageDetails = `azsdk-js-arm-changes/2.0.0`;
5555
const userAgentPrefix =
5656
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
5757
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -61,20 +61,21 @@ export class ChangesClient extends coreClient.ServiceClient {
6161
...defaults,
6262
...options,
6363
userAgentOptions: {
64-
userAgentPrefix
64+
userAgentPrefix,
6565
},
6666
endpoint:
67-
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
67+
options.endpoint ?? options.baseUri ?? "https://management.azure.com",
6868
};
6969
super(optionsWithDefaults);
7070

7171
let bearerTokenAuthenticationPolicyFound: boolean = false;
7272
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
73-
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
73+
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =
74+
options.pipeline.getOrderedPolicies();
7475
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
7576
(pipelinePolicy) =>
7677
pipelinePolicy.name ===
77-
coreRestPipeline.bearerTokenAuthenticationPolicyName
78+
coreRestPipeline.bearerTokenAuthenticationPolicyName,
7879
);
7980
}
8081
if (
@@ -84,7 +85,7 @@ export class ChangesClient extends coreClient.ServiceClient {
8485
!bearerTokenAuthenticationPolicyFound
8586
) {
8687
this.pipeline.removePolicy({
87-
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
88+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
8889
});
8990
this.pipeline.addPolicy(
9091
coreRestPipeline.bearerTokenAuthenticationPolicy({
@@ -94,9 +95,9 @@ export class ChangesClient extends coreClient.ServiceClient {
9495
`${optionsWithDefaults.endpoint}/.default`,
9596
challengeCallbacks: {
9697
authorizeRequestOnChallenge:
97-
coreClient.authorizeRequestOnClaimChallenge
98-
}
99-
})
98+
coreClient.authorizeRequestOnClaimChallenge,
99+
},
100+
}),
100101
);
101102
}
102103
// Parameter assignments
@@ -118,7 +119,7 @@ export class ChangesClient extends coreClient.ServiceClient {
118119
name: "CustomApiVersionPolicy",
119120
async sendRequest(
120121
request: PipelineRequest,
121-
next: SendRequest
122+
next: SendRequest,
122123
): Promise<PipelineResponse> {
123124
const param = request.url.split("?");
124125
if (param.length > 1) {
@@ -132,7 +133,7 @@ export class ChangesClient extends coreClient.ServiceClient {
132133
request.url = param[0] + "?" + newParams.join("&");
133134
}
134135
return next(request);
135-
}
136+
},
136137
};
137138
this.pipeline.addPolicy(apiVersionPolicy);
138139
}

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,7 @@ export type ChangesGetResponse = ChangeResourceResult;
192192

193193
/** Optional parameters. */
194194
export interface ChangesListNextOptionalParams
195-
extends coreClient.OperationOptions {
196-
/** (Optional) Set the maximum number of results per response. */
197-
top?: number;
198-
/** (Optional) The page-continuation token */
199-
skipToken?: string;
200-
}
195+
extends coreClient.OperationOptions {}
201196

202197
/** Contains response data for the listNext operation. */
203198
export type ChangesListNextResponse = ChangeResourceListResult;

0 commit comments

Comments
 (0)