Skip to content

Commit 0a562c5

Browse files
author
SDKAuto
committed
CodeGen from PR 24216 in Azure/azure-rest-api-specs
Merge aa4c6b172fd36d592be2e351d6f6e3df852c7bfc into a81abb255dcdc7c04052f6d7d78c019d4ba5dc1a
1 parent 06220e0 commit 0a562c5

File tree

10 files changed

+100
-62
lines changed

10 files changed

+100
-62
lines changed

common/config/rush/pnpm-lock.yaml

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

sdk/features/arm-features/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/features/arm-features/_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].3.20221108.1 --generate-sample=true",
2+
"commit": "cfe198da9c33053639cd4e8da4098af15daabf14",
3+
"readme": "specification/resources/resource-manager/readme.md",
4+
"autorest_command": "autorest --version=3.9.3 --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/[email protected].10",
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].3.20221108.1"
6+
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.0",
7+
"use": "@autorest/[email protected].10"
88
}

sdk/features/arm-features/package.json

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
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",
1414
"@azure/core-rest-pipeline": "^1.8.0",
1515
"tslib": "^2.2.0"
@@ -31,12 +31,13 @@
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",
37-
"typescript": "~5.0.0",
37+
"typescript": "~4.8.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",
@@ -47,7 +48,6 @@
4748
"@types/node": "^14.0.0",
4849
"@azure/dev-tool": "^1.0.0"
4950
},
50-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/features/arm-features",
5151
"repository": {
5252
"type": "git",
5353
"url": "https://github.com/Azure/azure-sdk-for-js.git"
@@ -109,12 +109,5 @@
109109
]
110110
},
111111
"autoPublish": true,
112-
"//sampleConfiguration": {
113-
"productName": "",
114-
"productSlugs": [
115-
"azure"
116-
],
117-
"disableDocsMs": true,
118-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-features?view=azure-node-preview"
119-
}
120-
}
112+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/features/arm-features"
113+
}

sdk/features/arm-features/src/featureClient.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ const listOperationsNextOperationSpec: coreClient.OperationSpec = {
269269
bodyMapper: Mappers.ErrorResponse
270270
}
271271
},
272-
queryParameters: [Parameters.apiVersion],
273272
urlParameters: [Parameters.$host, Parameters.nextLink],
274273
headerParameters: [Parameters.accept],
275274
serializer

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,6 @@ const listAllNextOperationSpec: coreClient.OperationSpec = {
394394
bodyMapper: Mappers.ErrorResponse
395395
}
396396
},
397-
queryParameters: [Parameters.apiVersion],
398397
urlParameters: [
399398
Parameters.$host,
400399
Parameters.nextLink,
@@ -414,7 +413,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
414413
bodyMapper: Mappers.ErrorResponse
415414
}
416415
},
417-
queryParameters: [Parameters.apiVersion],
418416
urlParameters: [
419417
Parameters.$host,
420418
Parameters.nextLink,

sdk/features/arm-features/src/operations/subscriptionFeatureRegistrations.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,6 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
402402
bodyMapper: Mappers.ErrorResponse
403403
}
404404
},
405-
queryParameters: [Parameters.apiVersion],
406405
urlParameters: [
407406
Parameters.$host,
408407
Parameters.nextLink,
@@ -423,7 +422,6 @@ const listAllBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
423422
bodyMapper: Mappers.ErrorResponse
424423
}
425424
},
426-
queryParameters: [Parameters.apiVersion],
427425
urlParameters: [
428426
Parameters.$host,
429427
Parameters.nextLink,

sdk/features/arm-features/src/pagingHelper.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ export interface PageInfo {
1313
const pageMap = new WeakMap<object, PageInfo>();
1414

1515
/**
16-
* Given a result page from a pageable operation, returns a
17-
* continuation token that can be used to begin paging from
16+
* Given the last `.value` produced by the `byPage` iterator,
17+
* returns a continuation token that can be used to begin paging from
1818
* that point later.
19-
* @param page A result object from calling .byPage() on a paged operation.
20-
* @returns The continuation token that can be passed into byPage().
19+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
20+
* @returns The continuation token that can be passed into byPage() during future calls.
2121
*/
2222
export function getContinuationToken(page: unknown): string | undefined {
2323
if (typeof page !== "object" || page === null) {

0 commit comments

Comments
 (0)