Skip to content

[AutoPR @azure/arm-compute] Demo: MPG + Suppression File #12025

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions sdk/compute/arm-compute/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
# Release History

## 22.1.1 (Unreleased)

### Features Added


## 23.0.0 (2024-09-19)

### Breaking Changes

### Bugs Fixed

### Other Changes

- Operation VirtualMachineScaleSets.listByLocation has a new signature


## 22.1.0 (2024-08-12)

### Features Added
Expand Down Expand Up @@ -579,7 +576,7 @@

## 17.3.1 (2022-04-06)

### Features Added
**features**

- Bug fix

Expand Down
8 changes: 4 additions & 4 deletions sdk/compute/arm-compute/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "3cef1bf0125458cc60dfb9e644e6bc28b787beab",
"commit": "fa5536b6eeea8746ec8de830d6abc5324dbec3ef",
"readme": "specification/compute/resource-manager/readme.md",
"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",
"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",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/[email protected].11",
"use": "@autorest/[email protected].23"
"release_tool": "@azure-tools/[email protected].14",
"use": "@autorest/typescript@^6.0.12"
}
19 changes: 5 additions & 14 deletions sdk/compute/arm-compute/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for ComputeManagementClient.",
"version": "22.1.1",
"version": "23.0.0",
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.5.4",
"@azure/abort-controller": "^1.0.0",
"@azure/abort-controller": "^2.1.2",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.6.0",
Expand All @@ -35,7 +35,7 @@
"rimraf": "^5.0.0",
"dotenv": "^16.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.0.1",
"@azure/identity": "^4.2.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.1.0",
"mocha": "^10.0.0",
Expand All @@ -45,7 +45,6 @@
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@types/node": "^18.0.0",
"@azure/arm-network": "^32.2.0",
"ts-node": "^10.0.0"
},
"repository": {
Expand Down Expand Up @@ -107,13 +106,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-compute?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute"
}
2 changes: 1 addition & 1 deletion sdk/compute/arm-compute/review/arm-compute.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -7179,7 +7179,7 @@ export interface VirtualMachineScaleSets {
getInstanceView(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsGetInstanceViewOptionalParams): Promise<VirtualMachineScaleSetsGetInstanceViewResponse>;
list(resourceGroupName: string, options?: VirtualMachineScaleSetsListOptionalParams): PagedAsyncIterableIterator<VirtualMachineScaleSet>;
listAll(options?: VirtualMachineScaleSetsListAllOptionalParams): PagedAsyncIterableIterator<VirtualMachineScaleSet>;
listByLocation(location: string, options?: VirtualMachineScaleSetsListByLocationOptionalParams): PagedAsyncIterableIterator<VirtualMachineScaleSet>;
listByLocation(location: number, options?: VirtualMachineScaleSetsListByLocationOptionalParams): PagedAsyncIterableIterator<VirtualMachineScaleSet>;
listOSUpgradeHistory(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams): PagedAsyncIterableIterator<UpgradeOperationHistoricalStatusInfo>;
listSkus(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsListSkusOptionalParams): PagedAsyncIterableIterator<VirtualMachineScaleSetSku>;
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/compute/arm-compute/src/computeManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient {
credential: credentials,
};

const packageDetails = `azsdk-js-arm-compute/22.1.1`;
const packageDetails = `azsdk-js-arm-compute/23.0.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down
2 changes: 1 addition & 1 deletion sdk/compute/arm-compute/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1709,7 +1709,7 @@ export interface DataDisk {
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly diskMBpsReadWrite?: number;
/** 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'. */
/** 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'. */
detachOption?: DiskDetachOptionTypes;
/** 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**. */
deleteOption?: DiskDeleteOptionTypes;
Expand Down
13 changes: 12 additions & 1 deletion sdk/compute/arm-compute/src/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,17 @@ export const nextLink: OperationURLParameter = {
skipEncoding: true,
};

export const location1: OperationURLParameter = {
parameterPath: "location",
mapper: {
serializedName: "location",
required: true,
type: {
name: "Number",
},
},
};

export const contentType: OperationParameter = {
parameterPath: ["options", "contentType"],
mapper: {
Expand Down Expand Up @@ -542,7 +553,7 @@ export const installPatchesInput: OperationParameter = {
mapper: VirtualMachineInstallPatchesParametersMapper,
};

export const location1: OperationURLParameter = {
export const location2: OperationURLParameter = {
parameterPath: "location",
mapper: {
serializedName: "location",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ const getOSVersionOperationSpec: coreClient.OperationSpec = {
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.location1,
Parameters.location2,
Parameters.osVersionName,
],
headerParameters: [Parameters.accept],
Expand All @@ -316,7 +316,7 @@ const listOSVersionsOperationSpec: coreClient.OperationSpec = {
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.location1,
Parameters.location2,
],
headerParameters: [Parameters.accept],
serializer,
Expand All @@ -336,7 +336,7 @@ const getOSFamilyOperationSpec: coreClient.OperationSpec = {
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.location1,
Parameters.location2,
Parameters.osFamilyName,
],
headerParameters: [Parameters.accept],
Expand All @@ -357,7 +357,7 @@ const listOSFamiliesOperationSpec: coreClient.OperationSpec = {
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.location1,
Parameters.location2,
],
headerParameters: [Parameters.accept],
serializer,
Expand All @@ -377,7 +377,7 @@ const listOSVersionsNextOperationSpec: coreClient.OperationSpec = {
Parameters.$host,
Parameters.subscriptionId,
Parameters.nextLink,
Parameters.location1,
Parameters.location2,
],
headerParameters: [Parameters.accept],
serializer,
Expand All @@ -397,7 +397,7 @@ const listOSFamiliesNextOperationSpec: coreClient.OperationSpec = {
Parameters.$host,
Parameters.subscriptionId,
Parameters.nextLink,
Parameters.location1,
Parameters.location2,
],
headerParameters: [Parameters.accept],
serializer,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const getOperationSpec: coreClient.OperationSpec = {
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.location1,
Parameters.location2,
Parameters.publicGalleryName,
],
headerParameters: [Parameters.accept],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ const getOperationSpec: coreClient.OperationSpec = {
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.location1,
Parameters.location2,
Parameters.galleryImageName,
Parameters.galleryImageVersionName,
Parameters.publicGalleryName,
Expand All @@ -241,7 +241,7 @@ const listOperationSpec: coreClient.OperationSpec = {
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.location1,
Parameters.location2,
Parameters.galleryImageName,
Parameters.publicGalleryName,
],
Expand All @@ -263,7 +263,7 @@ const listNextOperationSpec: coreClient.OperationSpec = {
Parameters.$host,
Parameters.subscriptionId,
Parameters.nextLink,
Parameters.location1,
Parameters.location2,
Parameters.galleryImageName,
Parameters.publicGalleryName,
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ const getOperationSpec: coreClient.OperationSpec = {
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.location1,
Parameters.location2,
Parameters.galleryImageName,
Parameters.publicGalleryName,
],
Expand All @@ -207,7 +207,7 @@ const listOperationSpec: coreClient.OperationSpec = {
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.location1,
Parameters.location2,
Parameters.publicGalleryName,
],
headerParameters: [Parameters.accept],
Expand All @@ -228,7 +228,7 @@ const listNextOperationSpec: coreClient.OperationSpec = {
Parameters.$host,
Parameters.subscriptionId,
Parameters.nextLink,
Parameters.location1,
Parameters.location2,
Parameters.publicGalleryName,
],
headerParameters: [Parameters.accept],
Expand Down
6 changes: 3 additions & 3 deletions sdk/compute/arm-compute/src/operations/sharedGalleries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ const listOperationSpec: coreClient.OperationSpec = {
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.location1,
Parameters.location2,
],
headerParameters: [Parameters.accept],
serializer,
Expand All @@ -181,7 +181,7 @@ const getOperationSpec: coreClient.OperationSpec = {
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.location1,
Parameters.location2,
Parameters.galleryUniqueName,
],
headerParameters: [Parameters.accept],
Expand All @@ -202,7 +202,7 @@ const listNextOperationSpec: coreClient.OperationSpec = {
Parameters.$host,
Parameters.subscriptionId,
Parameters.nextLink,
Parameters.location1,
Parameters.location2,
],
headerParameters: [Parameters.accept],
serializer,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ const listOperationSpec: coreClient.OperationSpec = {
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.location1,
Parameters.location2,
Parameters.galleryImageName,
Parameters.galleryUniqueName,
],
Expand All @@ -244,7 +244,7 @@ const getOperationSpec: coreClient.OperationSpec = {
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.location1,
Parameters.location2,
Parameters.galleryImageName,
Parameters.galleryImageVersionName,
Parameters.galleryUniqueName,
Expand All @@ -267,7 +267,7 @@ const listNextOperationSpec: coreClient.OperationSpec = {
Parameters.$host,
Parameters.subscriptionId,
Parameters.nextLink,
Parameters.location1,
Parameters.location2,
Parameters.galleryImageName,
Parameters.galleryUniqueName,
],
Expand Down
6 changes: 3 additions & 3 deletions sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ const listOperationSpec: coreClient.OperationSpec = {
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.location1,
Parameters.location2,
Parameters.galleryUniqueName,
],
headerParameters: [Parameters.accept],
Expand All @@ -207,7 +207,7 @@ const getOperationSpec: coreClient.OperationSpec = {
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.location1,
Parameters.location2,
Parameters.galleryImageName,
Parameters.galleryUniqueName,
],
Expand All @@ -229,7 +229,7 @@ const listNextOperationSpec: coreClient.OperationSpec = {
Parameters.$host,
Parameters.subscriptionId,
Parameters.nextLink,
Parameters.location1,
Parameters.location2,
Parameters.galleryUniqueName,
],
headerParameters: [Parameters.accept],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const getOperationSpec: coreClient.OperationSpec = {
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.location1,
Parameters.location2,
Parameters.publisherName,
Parameters.version,
Parameters.typeParam,
Expand Down Expand Up @@ -142,7 +142,7 @@ const listTypesOperationSpec: coreClient.OperationSpec = {
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.location1,
Parameters.location2,
Parameters.publisherName,
],
headerParameters: [Parameters.accept],
Expand Down Expand Up @@ -178,7 +178,7 @@ const listVersionsOperationSpec: coreClient.OperationSpec = {
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.location1,
Parameters.location2,
Parameters.publisherName,
Parameters.typeParam,
],
Expand Down
Loading