Skip to content

Commit 45c23b2

Browse files
author
SDKAuto
committed
CodeGen from PR 34381 in Azure/azure-rest-api-specs
Merge b1b1f8ef5f0de7c92077ec4f76eb0063b98fc674 into dfa4f3a64b11c535f92516e27822138fa186b97d
1 parent 1cd10f9 commit 45c23b2

File tree

83 files changed

+3668
-5366
lines changed

Some content is hidden

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

83 files changed

+3668
-5366
lines changed

sdk/compute/arm-compute/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Release History
22

3+
## 22.5.0 (2025-05-06)
4+
5+
### Features Added
6+
7+
- Interface VirtualMachineNetworkInterfaceConfiguration has a new optional parameter tags
8+
- Interface VirtualMachinePublicIPAddressConfiguration has a new optional parameter tags
9+
- Interface VirtualMachineScaleSetNetworkConfiguration has a new optional parameter tags
10+
- Interface VirtualMachineScaleSetPublicIPAddressConfiguration has a new optional parameter tags
11+
- Interface VirtualMachineScaleSetUpdateNetworkConfiguration has a new optional parameter tags
12+
- Interface VirtualMachineScaleSetUpdatePublicIPAddressConfiguration has a new optional parameter tags
13+
- Interface WindowsParameters has a new optional parameter patchNameMasksToExclude
14+
- Interface WindowsParameters has a new optional parameter patchNameMasksToInclude
15+
16+
317
## 22.4.0 (2025-03-18)
418

519
### Features Added

sdk/compute/arm-compute/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,10 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
6363
import { InteractiveBrowserCredential } from "@azure/identity";
6464
import { ComputeManagementClient } from "@azure/arm-compute";
6565

66-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
6766
const credential = new InteractiveBrowserCredential({
6867
tenantId: "<YOUR_TENANT_ID>",
69-
clientId: "<YOUR_CLIENT_ID>",
70-
});
68+
clientId: "<YOUR_CLIENT_ID>"
69+
});
7170
const client = new ComputeManagementClient(credential, subscriptionId);
7271
```
7372

@@ -106,6 +105,7 @@ If you'd like to contribute to this library, please read the [contributing guide
106105

107106
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
108107

108+
109109
[azure_cli]: https://learn.microsoft.com/cli/azure
110110
[azure_sub]: https://azure.microsoft.com/free/
111111
[azure_sub]: https://azure.microsoft.com/free/

sdk/compute/arm-compute/_meta.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "cecb65f56ec5291e7fe88d62048bdb717e33e834",
2+
"commit": "284c33b120b3c91b25c6216aa3721fd7755a33e7",
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].36 --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].21",
7-
"use": "@autorest/[email protected].36"
8-
}
6+
"release_tool": "@azure-tools/[email protected].26",
7+
"use": "@autorest/typescript@^6.0.12"
8+
}

sdk/compute/arm-compute/api-extractor.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@
2828
}
2929
}
3030
}
31-
}
31+
}

sdk/compute/arm-compute/package.json

Lines changed: 16 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,50 +3,48 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for ComputeManagementClient.",
6-
"version": "22.4.0",
6+
"version": "22.5.0",
77
"engines": {
88
"node": ">=18.0.0"
99
},
1010
"dependencies": {
1111
"@azure/abort-controller": "^2.1.2",
1212
"@azure/core-auth": "^1.9.0",
13-
"@azure/core-client": "^1.9.3",
13+
"@azure/core-client": "^1.9.4",
1414
"@azure/core-lro": "^2.5.4",
1515
"@azure/core-paging": "^1.6.2",
16-
"@azure/core-rest-pipeline": "^1.19.1",
16+
"@azure/core-rest-pipeline": "^1.20.0",
1717
"tslib": "^2.8.1"
1818
},
1919
"keywords": [
2020
"node",
2121
"azure",
2222
"typescript",
2323
"browser",
24-
"isomorphic"
24+
"isomorphic",
25+
"cloud"
2526
],
2627
"license": "MIT",
2728
"main": "./dist/commonjs/index.js",
2829
"module": "./dist/esm/index.js",
2930
"types": "./dist/commonjs/index.d.ts",
31+
"type": "module",
3032
"devDependencies": {
3133
"@azure-tools/test-credential": "^2.0.0",
3234
"@azure-tools/test-recorder": "^4.1.0",
3335
"@azure-tools/test-utils-vitest": "^1.0.0",
34-
"@azure/arm-network": "^32.2.0",
3536
"@azure/dev-tool": "^1.0.0",
36-
"@azure/identity": "^4.8.0",
37-
"@azure/logger": "^1.1.4",
37+
"@azure/identity": "^4.9.1",
38+
"@azure/logger": "^1.2.0",
3839
"@types/node": "^18.0.0",
3940
"@vitest/browser": "^3.0.9",
4041
"@vitest/coverage-istanbul": "^3.0.9",
4142
"dotenv": "^16.0.0",
42-
"playwright": "^1.51.1",
43+
"playwright": "^1.52.0",
4344
"typescript": "~5.8.2",
4445
"vitest": "^3.0.9"
4546
},
46-
"repository": {
47-
"type": "git",
48-
"url": "https://github.com/Azure/azure-sdk-for-js.git"
49-
},
47+
"repository": "github:Azure/azure-sdk-for-js",
5048
"bugs": {
5149
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
5250
},
@@ -63,16 +61,16 @@
6361
"build:node": "echo skipped",
6462
"build:samples": "echo skipped.",
6563
"build:test": "echo skipped",
66-
"check-format": "echo skipped",
64+
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ",
6765
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
6866
"execute:samples": "echo skipped",
6967
"extract-api": "dev-tool run extract-api",
70-
"format": "echo skipped",
68+
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ",
7169
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
7270
"integration-test:browser": "echo skipped",
7371
"integration-test:node": "dev-tool run test:vitest --esm",
7472
"lint": "echo skipped",
75-
"minify": "echo skipped",
73+
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
7674
"pack": "npm pack 2>&1",
7775
"prepack": "npm run build",
7876
"test": "npm run integration-test",
@@ -93,16 +91,9 @@
9391
]
9492
},
9593
"autoPublish": true,
94+
"browser": "./dist/browser/index.js",
95+
"react-native": "./dist/react-native/index.js",
9696
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute",
97-
"//sampleConfiguration": {
98-
"productName": "",
99-
"productSlugs": [
100-
"azure"
101-
],
102-
"disableDocsMs": true,
103-
"apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-compute?view=azure-node-preview"
104-
},
105-
"type": "module",
10697
"tshy": {
10798
"project": "./tsconfig.src.json",
10899
"exports": {
@@ -119,8 +110,6 @@
119110
],
120111
"selfLink": false
121112
},
122-
"browser": "./dist/browser/index.js",
123-
"react-native": "./dist/react-native/index.js",
124113
"exports": {
125114
"./package.json": "./package.json",
126115
".": {
@@ -142,4 +131,4 @@
142131
}
143132
}
144133
}
145-
}
134+
}

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7065,6 +7065,9 @@ export interface VirtualMachineNetworkInterfaceConfiguration {
70657065
name: string;
70667066
networkSecurityGroup?: SubResource;
70677067
primary?: boolean;
7068+
tags?: {
7069+
[propertyName: string]: string;
7070+
};
70687071
}
70697072

70707073
// @public
@@ -7105,6 +7108,9 @@ export interface VirtualMachinePublicIPAddressConfiguration {
71057108
publicIPAllocationMethod?: PublicIPAllocationMethod;
71067109
publicIPPrefix?: SubResource;
71077110
sku?: PublicIPAddressSku;
7111+
tags?: {
7112+
[propertyName: string]: string;
7113+
};
71087114
}
71097115

71107116
// @public
@@ -7588,6 +7594,9 @@ export interface VirtualMachineScaleSetNetworkConfiguration {
75887594
name: string;
75897595
networkSecurityGroup?: SubResource;
75907596
primary?: boolean;
7597+
tags?: {
7598+
[propertyName: string]: string;
7599+
};
75917600
}
75927601

75937602
// @public
@@ -7640,6 +7649,9 @@ export interface VirtualMachineScaleSetPublicIPAddressConfiguration {
76407649
publicIPAddressVersion?: IPVersion;
76417650
publicIPPrefix?: SubResource;
76427651
sku?: PublicIPAddressSku;
7652+
tags?: {
7653+
[propertyName: string]: string;
7654+
};
76437655
}
76447656

76457657
// @public
@@ -8045,6 +8057,9 @@ export interface VirtualMachineScaleSetUpdateNetworkConfiguration {
80458057
name?: string;
80468058
networkSecurityGroup?: SubResource;
80478059
primary?: boolean;
8060+
tags?: {
8061+
[propertyName: string]: string;
8062+
};
80488063
}
80498064

80508065
// @public
@@ -8081,6 +8096,9 @@ export interface VirtualMachineScaleSetUpdatePublicIPAddressConfiguration {
80818096
idleTimeoutInMinutes?: number;
80828097
name?: string;
80838098
publicIPPrefix?: SubResource;
8099+
tags?: {
8100+
[propertyName: string]: string;
8101+
};
80848102
}
80858103

80868104
// @public
@@ -8914,6 +8932,8 @@ export interface WindowsParameters {
89148932
kbNumbersToExclude?: string[];
89158933
kbNumbersToInclude?: string[];
89168934
maxPatchPublishDate?: Date;
8935+
patchNameMasksToExclude?: string[];
8936+
patchNameMasksToInclude?: string[];
89178937
}
89188938

89198939
// @public

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

Lines changed: 19 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient {
151151
credential: credentials,
152152
};
153153

154-
const packageDetails = `azsdk-js-arm-compute/22.4.0`;
154+
const packageDetails = `azsdk-js-arm-compute/22.5.0`;
155155
const userAgentPrefix =
156156
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
157157
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -163,8 +163,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient {
163163
userAgentOptions: {
164164
userAgentPrefix,
165165
},
166-
endpoint:
167-
options.endpoint ?? options.baseUri ?? "https://management.azure.com",
166+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
168167
};
169168
super(optionsWithDefaults);
170169

@@ -174,8 +173,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient {
174173
options.pipeline.getOrderedPolicies();
175174
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
176175
(pipelinePolicy) =>
177-
pipelinePolicy.name ===
178-
coreRestPipeline.bearerTokenAuthenticationPolicyName,
176+
pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName,
179177
);
180178
}
181179
if (
@@ -191,11 +189,9 @@ export class ComputeManagementClient extends coreClient.ServiceClient {
191189
coreRestPipeline.bearerTokenAuthenticationPolicy({
192190
credential: credentials,
193191
scopes:
194-
optionsWithDefaults.credentialScopes ??
195-
`${optionsWithDefaults.endpoint}/.default`,
192+
optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,
196193
challengeCallbacks: {
197-
authorizeRequestOnChallenge:
198-
coreClient.authorizeRequestOnClaimChallenge,
194+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
199195
},
200196
}),
201197
);
@@ -209,22 +205,17 @@ export class ComputeManagementClient extends coreClient.ServiceClient {
209205
this.usageOperations = new UsageOperationsImpl(this);
210206
this.virtualMachineSizes = new VirtualMachineSizesImpl(this);
211207
this.virtualMachineScaleSets = new VirtualMachineScaleSetsImpl(this);
212-
this.virtualMachineScaleSetExtensions =
213-
new VirtualMachineScaleSetExtensionsImpl(this);
214-
this.virtualMachineScaleSetRollingUpgrades =
215-
new VirtualMachineScaleSetRollingUpgradesImpl(this);
216-
this.virtualMachineScaleSetVMExtensions =
217-
new VirtualMachineScaleSetVMExtensionsImpl(this);
208+
this.virtualMachineScaleSetExtensions = new VirtualMachineScaleSetExtensionsImpl(this);
209+
this.virtualMachineScaleSetRollingUpgrades = new VirtualMachineScaleSetRollingUpgradesImpl(
210+
this,
211+
);
212+
this.virtualMachineScaleSetVMExtensions = new VirtualMachineScaleSetVMExtensionsImpl(this);
218213
this.virtualMachineScaleSetVMs = new VirtualMachineScaleSetVMsImpl(this);
219214
this.virtualMachineExtensions = new VirtualMachineExtensionsImpl(this);
220215
this.virtualMachines = new VirtualMachinesImpl(this);
221216
this.virtualMachineImages = new VirtualMachineImagesImpl(this);
222-
this.virtualMachineImagesEdgeZone = new VirtualMachineImagesEdgeZoneImpl(
223-
this,
224-
);
225-
this.virtualMachineExtensionImages = new VirtualMachineExtensionImagesImpl(
226-
this,
227-
);
217+
this.virtualMachineImagesEdgeZone = new VirtualMachineImagesEdgeZoneImpl(this);
218+
this.virtualMachineExtensionImages = new VirtualMachineExtensionImagesImpl(this);
228219
this.availabilitySets = new AvailabilitySetsImpl(this);
229220
this.proximityPlacementGroups = new ProximityPlacementGroupsImpl(this);
230221
this.dedicatedHostGroups = new DedicatedHostGroupsImpl(this);
@@ -237,8 +228,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient {
237228
this.capacityReservations = new CapacityReservationsImpl(this);
238229
this.logAnalytics = new LogAnalyticsImpl(this);
239230
this.virtualMachineRunCommands = new VirtualMachineRunCommandsImpl(this);
240-
this.virtualMachineScaleSetVMRunCommands =
241-
new VirtualMachineScaleSetVMRunCommandsImpl(this);
231+
this.virtualMachineScaleSetVMRunCommands = new VirtualMachineScaleSetVMRunCommandsImpl(this);
242232
this.disks = new DisksImpl(this);
243233
this.diskAccesses = new DiskAccessesImpl(this);
244234
this.diskEncryptionSets = new DiskEncryptionSetsImpl(this);
@@ -252,25 +242,21 @@ export class ComputeManagementClient extends coreClient.ServiceClient {
252242
this.galleryApplicationVersions = new GalleryApplicationVersionsImpl(this);
253243
this.softDeletedResource = new SoftDeletedResourceImpl(this);
254244
this.gallerySharingProfile = new GallerySharingProfileImpl(this);
255-
this.galleryInVMAccessControlProfiles =
256-
new GalleryInVMAccessControlProfilesImpl(this);
257-
this.galleryInVMAccessControlProfileVersions =
258-
new GalleryInVMAccessControlProfileVersionsImpl(this);
245+
this.galleryInVMAccessControlProfiles = new GalleryInVMAccessControlProfilesImpl(this);
246+
this.galleryInVMAccessControlProfileVersions = new GalleryInVMAccessControlProfileVersionsImpl(
247+
this,
248+
);
259249
this.sharedGalleries = new SharedGalleriesImpl(this);
260250
this.sharedGalleryImages = new SharedGalleryImagesImpl(this);
261251
this.sharedGalleryImageVersions = new SharedGalleryImageVersionsImpl(this);
262252
this.communityGalleries = new CommunityGalleriesImpl(this);
263253
this.communityGalleryImages = new CommunityGalleryImagesImpl(this);
264-
this.communityGalleryImageVersions = new CommunityGalleryImageVersionsImpl(
265-
this,
266-
);
254+
this.communityGalleryImageVersions = new CommunityGalleryImageVersionsImpl(this);
267255
this.cloudServiceRoleInstances = new CloudServiceRoleInstancesImpl(this);
268256
this.cloudServiceRoles = new CloudServiceRolesImpl(this);
269257
this.cloudServices = new CloudServicesImpl(this);
270258
this.cloudServicesUpdateDomain = new CloudServicesUpdateDomainImpl(this);
271-
this.cloudServiceOperatingSystems = new CloudServiceOperatingSystemsImpl(
272-
this,
273-
);
259+
this.cloudServiceOperatingSystems = new CloudServiceOperatingSystemsImpl(this);
274260
}
275261

276262
operations: Operations;

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
*/
88

9-
// Copyright (c) Microsoft Corporation.
10-
// Licensed under the MIT License.
11-
129
import { AbortSignalLike } from "@azure/abort-controller";
1310
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
1411

@@ -26,10 +23,7 @@ export function createLroSpec<T>(inputs: {
2623
requestMethod: spec.httpMethod,
2724
requestPath: spec.path!,
2825
sendInitialRequest: () => sendOperationFn(args, spec),
29-
sendPollRequest: (
30-
path: string,
31-
options?: { abortSignal?: AbortSignalLike },
32-
) => {
26+
sendPollRequest: (path: string, options?: { abortSignal?: AbortSignalLike }) => {
3327
const { requestBody, ...restSpec } = spec;
3428
return sendOperationFn(args, {
3529
...restSpec,

0 commit comments

Comments
 (0)