Skip to content
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

[mgmt] compute release #28747

Merged
merged 2 commits into from
Mar 15, 2024
Merged
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
The table of contents is too big for display.
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

## 21.5.0 (2024-03-01)

**Features**

## 21.4.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Interface GalleryArtifactVersionFullSource has a new optional parameter virtualMachineId


## 21.4.0 (2023-12-28)

**Features**
Expand Down
2 changes: 1 addition & 1 deletion sdk/compute/arm-compute/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2023 Microsoft
Copyright (c) 2024 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions sdk/compute/arm-compute/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "4792bce7667477529991457890b4a6b670e70508",
"commit": "c42fcc06eb3581fd22384936e55288496b66a0d4",
"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].13 --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=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\compute\\resource-manager\\readme.md --use=@autorest/[email protected].17 --generate-sample=true",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/[email protected]",
"use": "@autorest/[email protected].13"
"use": "@autorest/[email protected].17"
}
2 changes: 1 addition & 1 deletion sdk/compute/arm-compute/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "js",
"TagPrefix": "js/compute/arm-compute",
"Tag": "js/compute/arm-compute_dd8e9a143f"
"Tag": "js/compute/arm-compute_627455e772"
}
7 changes: 3 additions & 4 deletions sdk/compute/arm-compute/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for ComputeManagementClient.",
"version": "21.4.1",
"version": "21.5.0",
"engines": {
"node": ">=18.0.0"
},
Expand All @@ -12,8 +12,8 @@
"@azure/abort-controller": "^1.0.0",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.12.0",
"@azure/core-auth": "^1.6.0",
"@azure/core-rest-pipeline": "^1.14.0",
"tslib": "^2.2.0"
},
"keywords": [
Expand Down Expand Up @@ -79,7 +79,6 @@
"pack": "npm pack 2>&1",
"extract-api": "api-extractor run --local",
"lint": "echo skipped",
"audit": "echo skipped",
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"build:node": "echo skipped",
"build:browser": "echo skipped",
Expand Down
1 change: 1 addition & 0 deletions sdk/compute/arm-compute/review/arm-compute.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2540,6 +2540,7 @@ export interface GalleryArtifactSource {
// @public
export interface GalleryArtifactVersionFullSource extends GalleryArtifactVersionSource {
communityGalleryImageId?: string;
virtualMachineId?: string;
}

// @public
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ async function createAnAvailabilitySet() {
const parameters: AvailabilitySet = {
location: "westus",
platformFaultDomainCount: 2,
platformUpdateDomainCount: 20
platformUpdateDomainCount: 20,
};
const credential = new DefaultAzureCredential();
const client = new ComputeManagementClient(credential, subscriptionId);
const result = await client.availabilitySets.createOrUpdate(
resourceGroupName,
availabilitySetName,
parameters
parameters,
);
console.log(result);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function availabilitySetDeleteMaximumSetGen() {
const client = new ComputeManagementClient(credential, subscriptionId);
const result = await client.availabilitySets.delete(
resourceGroupName,
availabilitySetName
availabilitySetName,
);
console.log(result);
}
Expand All @@ -51,7 +51,7 @@ async function availabilitySetDeleteMinimumSetGen() {
const client = new ComputeManagementClient(credential, subscriptionId);
const result = await client.availabilitySets.delete(
resourceGroupName,
availabilitySetName
availabilitySetName,
);
console.log(result);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function availabilitySetGetMaximumSetGen() {
const client = new ComputeManagementClient(credential, subscriptionId);
const result = await client.availabilitySets.get(
resourceGroupName,
availabilitySetName
availabilitySetName,
);
console.log(result);
}
Expand All @@ -51,7 +51,7 @@ async function availabilitySetGetMinimumSetGen() {
const client = new ComputeManagementClient(credential, subscriptionId);
const result = await client.availabilitySets.get(
resourceGroupName,
availabilitySetName
availabilitySetName,
);
console.log(result);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async function availabilitySetListAvailableSizesMaximumSetGen() {
const resArray = new Array();
for await (let item of client.availabilitySets.listAvailableSizes(
resourceGroupName,
availabilitySetName
availabilitySetName,
)) {
resArray.push(item);
}
Expand All @@ -55,7 +55,7 @@ async function availabilitySetListAvailableSizesMinimumSetGen() {
const resArray = new Array();
for await (let item of client.availabilitySets.listAvailableSizes(
resourceGroupName,
availabilitySetName
availabilitySetName,
)) {
resArray.push(item);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// Licensed under the MIT License.
import {
AvailabilitySetsListBySubscriptionOptionalParams,
ComputeManagementClient
ComputeManagementClient,
} from "@azure/arm-compute";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// Licensed under the MIT License.
import {
AvailabilitySetUpdate,
ComputeManagementClient
ComputeManagementClient,
} from "@azure/arm-compute";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
Expand All @@ -33,24 +33,22 @@ async function availabilitySetUpdateMaximumSetGen() {
platformFaultDomainCount: 2,
platformUpdateDomainCount: 20,
proximityPlacementGroup: {
id:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"
id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}",
},
sku: { name: "DSv3-Type1", capacity: 7, tier: "aaa" },
tags: { key2574: "aaaaaaaa" },
virtualMachines: [
{
id:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"
}
]
id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}",
},
],
};
const credential = new DefaultAzureCredential();
const client = new ComputeManagementClient(credential, subscriptionId);
const result = await client.availabilitySets.update(
resourceGroupName,
availabilitySetName,
parameters
parameters,
);
console.log(result);
}
Expand All @@ -73,7 +71,7 @@ async function availabilitySetUpdateMinimumSetGen() {
const result = await client.availabilitySets.update(
resourceGroupName,
availabilitySetName,
parameters
parameters,
);
console.log(result);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// Licensed under the MIT License.
import {
CapacityReservationGroup,
ComputeManagementClient
ComputeManagementClient,
} from "@azure/arm-compute";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
Expand All @@ -34,18 +34,18 @@ async function createOrUpdateACapacityReservationGroup() {
sharingProfile: {
subscriptionIds: [
{ id: "/subscriptions/{subscription-id1}" },
{ id: "/subscriptions/{subscription-id2}" }
]
{ id: "/subscriptions/{subscription-id2}" },
],
},
tags: { department: "finance" },
zones: ["1", "2"]
zones: ["1", "2"],
};
const credential = new DefaultAzureCredential();
const client = new ComputeManagementClient(credential, subscriptionId);
const result = await client.capacityReservationGroups.createOrUpdate(
resourceGroupName,
capacityReservationGroupName,
parameters
parameters,
);
console.log(result);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function capacityReservationGroupDeleteMaximumSetGen() {
const client = new ComputeManagementClient(credential, subscriptionId);
const result = await client.capacityReservationGroups.delete(
resourceGroupName,
capacityReservationGroupName
capacityReservationGroupName,
);
console.log(result);
}
Expand All @@ -51,7 +51,7 @@ async function capacityReservationGroupDeleteMinimumSetGen() {
const client = new ComputeManagementClient(credential, subscriptionId);
const result = await client.capacityReservationGroups.delete(
resourceGroupName,
capacityReservationGroupName
capacityReservationGroupName,
);
console.log(result);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// Licensed under the MIT License.
import {
CapacityReservationGroupsGetOptionalParams,
ComputeManagementClient
ComputeManagementClient,
} from "@azure/arm-compute";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
Expand All @@ -36,7 +36,7 @@ async function getACapacityReservationGroup() {
const result = await client.capacityReservationGroups.get(
resourceGroupName,
capacityReservationGroupName,
options
options,
);
console.log(result);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// Licensed under the MIT License.
import {
CapacityReservationGroupsListByResourceGroupOptionalParams,
ComputeManagementClient
ComputeManagementClient,
} from "@azure/arm-compute";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
Expand All @@ -30,14 +30,14 @@ async function listCapacityReservationGroupsInResourceGroup() {
process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup";
const expand = "virtualMachines/$ref";
const options: CapacityReservationGroupsListByResourceGroupOptionalParams = {
expand
expand,
};
const credential = new DefaultAzureCredential();
const client = new ComputeManagementClient(credential, subscriptionId);
const resArray = new Array();
for await (let item of client.capacityReservationGroups.listByResourceGroup(
resourceGroupName,
options
options,
)) {
resArray.push(item);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// Licensed under the MIT License.
import {
CapacityReservationGroupsListBySubscriptionOptionalParams,
ComputeManagementClient
ComputeManagementClient,
} from "@azure/arm-compute";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
Expand All @@ -28,13 +28,13 @@ async function listCapacityReservationGroupsInSubscription() {
process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}";
const expand = "virtualMachines/$ref";
const options: CapacityReservationGroupsListBySubscriptionOptionalParams = {
expand
expand,
};
const credential = new DefaultAzureCredential();
const client = new ComputeManagementClient(credential, subscriptionId);
const resArray = new Array();
for await (let item of client.capacityReservationGroups.listBySubscription(
options
options,
)) {
resArray.push(item);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// Licensed under the MIT License.
import {
CapacityReservationGroupUpdate,
ComputeManagementClient
ComputeManagementClient,
} from "@azure/arm-compute";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
Expand All @@ -31,14 +31,14 @@ async function capacityReservationGroupUpdateMaximumSetGen() {
const capacityReservationGroupName = "aaaaaaaaaaaaaaaaaaaaaa";
const parameters: CapacityReservationGroupUpdate = {
instanceView: {},
tags: { key5355: "aaa" }
tags: { key5355: "aaa" },
};
const credential = new DefaultAzureCredential();
const client = new ComputeManagementClient(credential, subscriptionId);
const result = await client.capacityReservationGroups.update(
resourceGroupName,
capacityReservationGroupName,
parameters
parameters,
);
console.log(result);
}
Expand All @@ -61,7 +61,7 @@ async function capacityReservationGroupUpdateMinimumSetGen() {
const result = await client.capacityReservationGroups.update(
resourceGroupName,
capacityReservationGroupName,
parameters
parameters,
);
console.log(result);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// Licensed under the MIT License.
import {
CapacityReservation,
ComputeManagementClient
ComputeManagementClient,
} from "@azure/arm-compute";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
Expand All @@ -34,15 +34,15 @@ async function createOrUpdateACapacityReservation() {
location: "westus",
sku: { name: "Standard_DS1_v2", capacity: 4 },
tags: { department: "HR" },
zones: ["1"]
zones: ["1"],
};
const credential = new DefaultAzureCredential();
const client = new ComputeManagementClient(credential, subscriptionId);
const result = await client.capacityReservations.beginCreateOrUpdateAndWait(
resourceGroupName,
capacityReservationGroupName,
capacityReservationName,
parameters
parameters,
);
console.log(result);
}
Expand Down
Loading