Skip to content

Commit b2de7e6

Browse files
author
SDKAuto
committed
CodeGen from PR 30624 in Azure/azure-rest-api-specs
Merge 1bcf2d3747c497ab1756f5dc0de942da9642ff8d into b72e0199fa3242d64b0b49f38e71586066a8c048
1 parent 4d28505 commit b2de7e6

21 files changed

+120
-84
lines changed

sdk/compute/arm-compute/CHANGELOG.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
# Release History
2-
3-
## 22.1.1 (Unreleased)
4-
5-
### Features Added
6-
2+
3+
## 23.0.0 (2024-09-19)
4+
75
### Breaking Changes
86

9-
### Bugs Fixed
10-
11-
### Other Changes
12-
7+
- Operation VirtualMachineScaleSets.listByLocation has a new signature
8+
9+
1310
## 22.1.0 (2024-08-12)
1411

1512
### Features Added
@@ -579,7 +576,7 @@
579576

580577
## 17.3.1 (2022-04-06)
581578

582-
### Features Added
579+
**features**
583580

584581
- Bug fix
585582

sdk/compute/arm-compute/_meta.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "3cef1bf0125458cc60dfb9e644e6bc28b787beab",
2+
"commit": "fa5536b6eeea8746ec8de830d6abc5324dbec3ef",
33
"readme": "specification/compute/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=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\compute\\resource-manager\\readme.md --use=@autorest/[email protected].23 --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/compute/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/[email protected].11",
7-
"use": "@autorest/[email protected].23"
6+
"release_tool": "@azure-tools/[email protected].14",
7+
"use": "@autorest/typescript@^6.0.12"
88
}

sdk/compute/arm-compute/package.json

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for ComputeManagementClient.",
6-
"version": "22.1.1",
6+
"version": "23.0.0",
77
"engines": {
88
"node": ">=18.0.0"
99
},
1010
"dependencies": {
1111
"@azure/core-lro": "^2.5.4",
12-
"@azure/abort-controller": "^1.0.0",
12+
"@azure/abort-controller": "^2.1.2",
1313
"@azure/core-paging": "^1.2.0",
1414
"@azure/core-client": "^1.7.0",
1515
"@azure/core-auth": "^1.6.0",
@@ -35,7 +35,7 @@
3535
"rimraf": "^5.0.0",
3636
"dotenv": "^16.0.0",
3737
"@azure/dev-tool": "^1.0.0",
38-
"@azure/identity": "^4.0.1",
38+
"@azure/identity": "^4.2.1",
3939
"@azure-tools/test-recorder": "^3.0.0",
4040
"@azure-tools/test-credential": "^1.1.0",
4141
"mocha": "^10.0.0",
@@ -45,7 +45,6 @@
4545
"chai": "^4.2.0",
4646
"cross-env": "^7.0.2",
4747
"@types/node": "^18.0.0",
48-
"@azure/arm-network": "^32.2.0",
4948
"ts-node": "^10.0.0"
5049
},
5150
"repository": {
@@ -107,13 +106,5 @@
107106
]
108107
},
109108
"autoPublish": true,
110-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute",
111-
"//sampleConfiguration": {
112-
"productName": "",
113-
"productSlugs": [
114-
"azure"
115-
],
116-
"disableDocsMs": true,
117-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-compute?view=azure-node-preview"
118-
}
119-
}
109+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute"
110+
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7179,7 +7179,7 @@ export interface VirtualMachineScaleSets {
71797179
getInstanceView(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsGetInstanceViewOptionalParams): Promise<VirtualMachineScaleSetsGetInstanceViewResponse>;
71807180
list(resourceGroupName: string, options?: VirtualMachineScaleSetsListOptionalParams): PagedAsyncIterableIterator<VirtualMachineScaleSet>;
71817181
listAll(options?: VirtualMachineScaleSetsListAllOptionalParams): PagedAsyncIterableIterator<VirtualMachineScaleSet>;
7182-
listByLocation(location: string, options?: VirtualMachineScaleSetsListByLocationOptionalParams): PagedAsyncIterableIterator<VirtualMachineScaleSet>;
7182+
listByLocation(location: number, options?: VirtualMachineScaleSetsListByLocationOptionalParams): PagedAsyncIterableIterator<VirtualMachineScaleSet>;
71837183
listOSUpgradeHistory(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams): PagedAsyncIterableIterator<UpgradeOperationHistoricalStatusInfo>;
71847184
listSkus(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsListSkusOptionalParams): PagedAsyncIterableIterator<VirtualMachineScaleSetSku>;
71857185
}

sdk/compute/arm-compute/src/computeManagementClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient {
145145
credential: credentials,
146146
};
147147

148-
const packageDetails = `azsdk-js-arm-compute/22.1.1`;
148+
const packageDetails = `azsdk-js-arm-compute/23.0.0`;
149149
const userAgentPrefix =
150150
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
151151
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1709,7 +1709,7 @@ export interface DataDisk {
17091709
* NOTE: This property will not be serialized. It can only be populated by the server.
17101710
*/
17111711
readonly diskMBpsReadWrite?: number;
1712-
/** Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. **This feature is still in preview** mode and is not supported for VirtualMachineScaleSet. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. */
1712+
/** Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. **This feature is still in preview**. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. */
17131713
detachOption?: DiskDetachOptionTypes;
17141714
/** Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: **Delete.** If this value is used, the data disk is deleted when VM is deleted. **Detach.** If this value is used, the data disk is retained after VM is deleted. The default value is set to **Detach**. */
17151715
deleteOption?: DiskDeleteOptionTypes;

sdk/compute/arm-compute/src/models/parameters.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,17 @@ export const nextLink: OperationURLParameter = {
158158
skipEncoding: true,
159159
};
160160

161+
export const location1: OperationURLParameter = {
162+
parameterPath: "location",
163+
mapper: {
164+
serializedName: "location",
165+
required: true,
166+
type: {
167+
name: "Number",
168+
},
169+
},
170+
};
171+
161172
export const contentType: OperationParameter = {
162173
parameterPath: ["options", "contentType"],
163174
mapper: {
@@ -542,7 +553,7 @@ export const installPatchesInput: OperationParameter = {
542553
mapper: VirtualMachineInstallPatchesParametersMapper,
543554
};
544555

545-
export const location1: OperationURLParameter = {
556+
export const location2: OperationURLParameter = {
546557
parameterPath: "location",
547558
mapper: {
548559
serializedName: "location",

sdk/compute/arm-compute/src/operations/cloudServiceOperatingSystems.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ const getOSVersionOperationSpec: coreClient.OperationSpec = {
295295
urlParameters: [
296296
Parameters.$host,
297297
Parameters.subscriptionId,
298-
Parameters.location1,
298+
Parameters.location2,
299299
Parameters.osVersionName,
300300
],
301301
headerParameters: [Parameters.accept],
@@ -316,7 +316,7 @@ const listOSVersionsOperationSpec: coreClient.OperationSpec = {
316316
urlParameters: [
317317
Parameters.$host,
318318
Parameters.subscriptionId,
319-
Parameters.location1,
319+
Parameters.location2,
320320
],
321321
headerParameters: [Parameters.accept],
322322
serializer,
@@ -336,7 +336,7 @@ const getOSFamilyOperationSpec: coreClient.OperationSpec = {
336336
urlParameters: [
337337
Parameters.$host,
338338
Parameters.subscriptionId,
339-
Parameters.location1,
339+
Parameters.location2,
340340
Parameters.osFamilyName,
341341
],
342342
headerParameters: [Parameters.accept],
@@ -357,7 +357,7 @@ const listOSFamiliesOperationSpec: coreClient.OperationSpec = {
357357
urlParameters: [
358358
Parameters.$host,
359359
Parameters.subscriptionId,
360-
Parameters.location1,
360+
Parameters.location2,
361361
],
362362
headerParameters: [Parameters.accept],
363363
serializer,
@@ -377,7 +377,7 @@ const listOSVersionsNextOperationSpec: coreClient.OperationSpec = {
377377
Parameters.$host,
378378
Parameters.subscriptionId,
379379
Parameters.nextLink,
380-
Parameters.location1,
380+
Parameters.location2,
381381
],
382382
headerParameters: [Parameters.accept],
383383
serializer,
@@ -397,7 +397,7 @@ const listOSFamiliesNextOperationSpec: coreClient.OperationSpec = {
397397
Parameters.$host,
398398
Parameters.subscriptionId,
399399
Parameters.nextLink,
400-
Parameters.location1,
400+
Parameters.location2,
401401
],
402402
headerParameters: [Parameters.accept],
403403
serializer,

sdk/compute/arm-compute/src/operations/communityGalleries.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const getOperationSpec: coreClient.OperationSpec = {
6363
urlParameters: [
6464
Parameters.$host,
6565
Parameters.subscriptionId,
66-
Parameters.location1,
66+
Parameters.location2,
6767
Parameters.publicGalleryName,
6868
],
6969
headerParameters: [Parameters.accept],

sdk/compute/arm-compute/src/operations/communityGalleryImageVersions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ const getOperationSpec: coreClient.OperationSpec = {
218218
urlParameters: [
219219
Parameters.$host,
220220
Parameters.subscriptionId,
221-
Parameters.location1,
221+
Parameters.location2,
222222
Parameters.galleryImageName,
223223
Parameters.galleryImageVersionName,
224224
Parameters.publicGalleryName,
@@ -241,7 +241,7 @@ const listOperationSpec: coreClient.OperationSpec = {
241241
urlParameters: [
242242
Parameters.$host,
243243
Parameters.subscriptionId,
244-
Parameters.location1,
244+
Parameters.location2,
245245
Parameters.galleryImageName,
246246
Parameters.publicGalleryName,
247247
],
@@ -263,7 +263,7 @@ const listNextOperationSpec: coreClient.OperationSpec = {
263263
Parameters.$host,
264264
Parameters.subscriptionId,
265265
Parameters.nextLink,
266-
Parameters.location1,
266+
Parameters.location2,
267267
Parameters.galleryImageName,
268268
Parameters.publicGalleryName,
269269
],

sdk/compute/arm-compute/src/operations/communityGalleryImages.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ const getOperationSpec: coreClient.OperationSpec = {
185185
urlParameters: [
186186
Parameters.$host,
187187
Parameters.subscriptionId,
188-
Parameters.location1,
188+
Parameters.location2,
189189
Parameters.galleryImageName,
190190
Parameters.publicGalleryName,
191191
],
@@ -207,7 +207,7 @@ const listOperationSpec: coreClient.OperationSpec = {
207207
urlParameters: [
208208
Parameters.$host,
209209
Parameters.subscriptionId,
210-
Parameters.location1,
210+
Parameters.location2,
211211
Parameters.publicGalleryName,
212212
],
213213
headerParameters: [Parameters.accept],
@@ -228,7 +228,7 @@ const listNextOperationSpec: coreClient.OperationSpec = {
228228
Parameters.$host,
229229
Parameters.subscriptionId,
230230
Parameters.nextLink,
231-
Parameters.location1,
231+
Parameters.location2,
232232
Parameters.publicGalleryName,
233233
],
234234
headerParameters: [Parameters.accept],

sdk/compute/arm-compute/src/operations/sharedGalleries.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ const listOperationSpec: coreClient.OperationSpec = {
161161
urlParameters: [
162162
Parameters.$host,
163163
Parameters.subscriptionId,
164-
Parameters.location1,
164+
Parameters.location2,
165165
],
166166
headerParameters: [Parameters.accept],
167167
serializer,
@@ -181,7 +181,7 @@ const getOperationSpec: coreClient.OperationSpec = {
181181
urlParameters: [
182182
Parameters.$host,
183183
Parameters.subscriptionId,
184-
Parameters.location1,
184+
Parameters.location2,
185185
Parameters.galleryUniqueName,
186186
],
187187
headerParameters: [Parameters.accept],
@@ -202,7 +202,7 @@ const listNextOperationSpec: coreClient.OperationSpec = {
202202
Parameters.$host,
203203
Parameters.subscriptionId,
204204
Parameters.nextLink,
205-
Parameters.location1,
205+
Parameters.location2,
206206
],
207207
headerParameters: [Parameters.accept],
208208
serializer,

sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ const listOperationSpec: coreClient.OperationSpec = {
222222
urlParameters: [
223223
Parameters.$host,
224224
Parameters.subscriptionId,
225-
Parameters.location1,
225+
Parameters.location2,
226226
Parameters.galleryImageName,
227227
Parameters.galleryUniqueName,
228228
],
@@ -244,7 +244,7 @@ const getOperationSpec: coreClient.OperationSpec = {
244244
urlParameters: [
245245
Parameters.$host,
246246
Parameters.subscriptionId,
247-
Parameters.location1,
247+
Parameters.location2,
248248
Parameters.galleryImageName,
249249
Parameters.galleryImageVersionName,
250250
Parameters.galleryUniqueName,
@@ -267,7 +267,7 @@ const listNextOperationSpec: coreClient.OperationSpec = {
267267
Parameters.$host,
268268
Parameters.subscriptionId,
269269
Parameters.nextLink,
270-
Parameters.location1,
270+
Parameters.location2,
271271
Parameters.galleryImageName,
272272
Parameters.galleryUniqueName,
273273
],

sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ const listOperationSpec: coreClient.OperationSpec = {
186186
urlParameters: [
187187
Parameters.$host,
188188
Parameters.subscriptionId,
189-
Parameters.location1,
189+
Parameters.location2,
190190
Parameters.galleryUniqueName,
191191
],
192192
headerParameters: [Parameters.accept],
@@ -207,7 +207,7 @@ const getOperationSpec: coreClient.OperationSpec = {
207207
urlParameters: [
208208
Parameters.$host,
209209
Parameters.subscriptionId,
210-
Parameters.location1,
210+
Parameters.location2,
211211
Parameters.galleryImageName,
212212
Parameters.galleryUniqueName,
213213
],
@@ -229,7 +229,7 @@ const listNextOperationSpec: coreClient.OperationSpec = {
229229
Parameters.$host,
230230
Parameters.subscriptionId,
231231
Parameters.nextLink,
232-
Parameters.location1,
232+
Parameters.location2,
233233
Parameters.galleryUniqueName,
234234
],
235235
headerParameters: [Parameters.accept],

sdk/compute/arm-compute/src/operations/virtualMachineExtensionImages.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ const getOperationSpec: coreClient.OperationSpec = {
109109
urlParameters: [
110110
Parameters.$host,
111111
Parameters.subscriptionId,
112-
Parameters.location1,
112+
Parameters.location2,
113113
Parameters.publisherName,
114114
Parameters.version,
115115
Parameters.typeParam,
@@ -142,7 +142,7 @@ const listTypesOperationSpec: coreClient.OperationSpec = {
142142
urlParameters: [
143143
Parameters.$host,
144144
Parameters.subscriptionId,
145-
Parameters.location1,
145+
Parameters.location2,
146146
Parameters.publisherName,
147147
],
148148
headerParameters: [Parameters.accept],
@@ -178,7 +178,7 @@ const listVersionsOperationSpec: coreClient.OperationSpec = {
178178
urlParameters: [
179179
Parameters.$host,
180180
Parameters.subscriptionId,
181-
Parameters.location1,
181+
Parameters.location2,
182182
Parameters.publisherName,
183183
Parameters.typeParam,
184184
],

0 commit comments

Comments
 (0)