Skip to content
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
19 changes: 9 additions & 10 deletions sdk/compute/arm-compute/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
# Release History

## 19.2.0 (2022-08-25)

**Features**

## 19.1.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Interface CapacityReservation has a new optional parameter platformFaultDomainCount
- Interface CapacityReservationUpdate has a new optional parameter platformFaultDomainCount
- Interface CapacityReservationUtilization has a new optional parameter currentCapacity


## 19.1.0 (2022-06-27)

**Features**
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": "fda2db441da3f1fab31bb235e97da3e33c8e3903",
"commit": "30bc8eef6816782c35a4a080825a9545d18eeced",
"readme": "specification/compute/resource-manager/readme.md",
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --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/typescript@6.0.0-rc.1 --generate-sample=true",
"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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/compute/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.3.2",
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
"use": "@autorest/typescript@6.0.0-rc.1"
}
17 changes: 4 additions & 13 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": "19.1.1",
"version": "19.2.0",
"engines": {
"node": ">=12.0.0"
},
Expand Down Expand Up @@ -46,8 +46,7 @@
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@azure/dev-tool": "^1.0.0",
"@azure/arm-network": "^26.0.0"
"@azure/dev-tool": "^1.0.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute",
"repository": {
Expand Down Expand Up @@ -110,13 +109,5 @@
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-compute?view=azure-node-preview"
}
}
"autoPublish": true
}
5 changes: 4 additions & 1 deletion sdk/compute/arm-compute/review/arm-compute.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ export type CachingTypes = "None" | "ReadOnly" | "ReadWrite";
// @public
export interface CapacityReservation extends Resource {
readonly instanceView?: CapacityReservationInstanceView;
readonly platformFaultDomainCount?: number;
readonly provisioningState?: string;
readonly provisioningTime?: Date;
readonly reservationId?: string;
Expand Down Expand Up @@ -419,6 +420,7 @@ export type CapacityReservationsUpdateResponse = CapacityReservation;
// @public
export interface CapacityReservationUpdate extends UpdateResource {
readonly instanceView?: CapacityReservationInstanceView;
readonly platformFaultDomainCount?: number;
readonly provisioningState?: string;
readonly provisioningTime?: Date;
readonly reservationId?: string;
Expand All @@ -429,6 +431,7 @@ export interface CapacityReservationUpdate extends UpdateResource {

// @public
export interface CapacityReservationUtilization {
readonly currentCapacity?: number;
readonly virtualMachinesAllocated?: SubResourceReadOnly[];
}

Expand Down Expand Up @@ -4992,7 +4995,7 @@ export interface ShareInfoElement {

// @public
export interface SharingProfile {
communityGalleryInfo?: any;
communityGalleryInfo?: CommunityGalleryInfo;
readonly groups?: SharingProfileGroup[];
permissions?: GallerySharingPermissionTypes;
}
Expand Down
5 changes: 4 additions & 1 deletion sdk/compute/arm-compute/src/computeManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,15 @@ export class ComputeManagementClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-compute/19.1.1`;
const packageDetails = `azsdk-js-arm-compute/19.2.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
: `${packageDetails}`;

if (!options.credentialScopes) {
options.credentialScopes = ["https://management.azure.com/.default"];
}
const optionsWithDefaults = {
...defaults,
...options,
Expand Down
81 changes: 48 additions & 33 deletions sdk/compute/arm-compute/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export interface VirtualMachineScaleSetVMProfile {
capacityReservation?: CapacityReservationProfile;
/** Specifies the gallery applications that should be made available to the VM/VMSS */
applicationProfile?: ApplicationProfile;
/** Specifies the hardware profile related details of a scale set. <br><br>Minimum api-version: 2022-03-01. */
/** Specifies the hardware profile related details of a scale set. <br><br>Minimum api-version: 2021-11-01. */
hardwareProfile?: VirtualMachineScaleSetHardwareProfile;
}

Expand Down Expand Up @@ -644,7 +644,7 @@ export interface VMGalleryApplication {

/** Specifies the hardware settings for the virtual machine scale set. */
export interface VirtualMachineScaleSetHardwareProfile {
/** Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2022-03-01. <br><br> Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details. */
/** Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-11-01. <br><br> Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details. */
vmSizeProperties?: VMSizeProperties;
}

Expand Down Expand Up @@ -2360,6 +2360,11 @@ export interface CapacityReservationInstanceView {

/** Represents the capacity reservation utilization in terms of resources allocated. */
export interface CapacityReservationUtilization {
/**
* The value provides the current capacity of the VM size which was reserved successfully and for which the customer is getting billed.<br><br>Minimum api-version: 2022-08-01.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly currentCapacity?: number;
/**
* A list of all virtual machines resource ids allocated against the capacity reservation.
* NOTE: This property will not be serialized. It can only be populated by the server.
Expand Down Expand Up @@ -3221,7 +3226,7 @@ export interface SharingProfile {
*/
readonly groups?: SharingProfileGroup[];
/** Information of community gallery if current gallery is shared to community. */
communityGalleryInfo?: any;
communityGalleryInfo?: CommunityGalleryInfo;
}

/** Group of the gallery sharing profile */
Expand All @@ -3232,6 +3237,28 @@ export interface SharingProfileGroup {
ids?: string[];
}

/** Information of community gallery if current gallery is shared to community */
export interface CommunityGalleryInfo {
/** The link to the publisher website. Visible to all users. */
publisherUri?: string;
/** Community gallery publisher support email. The email address of the publisher. Visible to all users. */
publisherContact?: string;
/** End-user license agreement for community gallery image. */
eula?: string;
/** The prefix of the gallery name that will be displayed publicly. Visible to all users. */
publicNamePrefix?: string;
/**
* Contains info about whether community gallery sharing is enabled.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly communityGalleryEnabled?: boolean;
/**
* Community gallery public name list.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly publicNames?: string[];
}

/** Contains information about the soft deletion policy of the gallery. */
export interface SoftDeletePolicy {
/** Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time. */
Expand Down Expand Up @@ -4275,28 +4302,6 @@ export interface OSFamilyListResult {
nextLink?: string;
}

/** Information of community gallery if current gallery is shared to community */
export interface CommunityGalleryInfo {
/** The link to the publisher website. Visible to all users. */
publisherUri?: string;
/** Community gallery publisher support email. The email address of the publisher. Visible to all users. */
publisherContact?: string;
/** End-user license agreement for community gallery image. */
eula?: string;
/** The prefix of the gallery name that will be displayed publicly. Visible to all users. */
publicNamePrefix?: string;
/**
* Contains info about whether community gallery sharing is enabled.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly communityGalleryEnabled?: boolean;
/**
* Community gallery public name list.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly publicNames?: string[];
}

/** The source image from which the Image Version is going to be created. */
export interface GalleryArtifactSource {
/** The managed artifact. */
Expand Down Expand Up @@ -4690,7 +4695,7 @@ export interface VirtualMachineScaleSet extends Resource {
/** Specifies the Spot Restore properties for the virtual machine scale set. */
spotRestorePolicy?: SpotRestorePolicy;
/**
* Specifies the time at which the Virtual Machine Scale Set resource was created.<br><br>Minimum api-version: 2022-03-01.
* Specifies the time at which the Virtual Machine Scale Set resource was created.<br><br>Minimum api-version: 2021-11-01.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly timeCreated?: Date;
Expand Down Expand Up @@ -4872,7 +4877,7 @@ export interface VirtualMachine extends Resource {
/** Specifies the gallery applications that should be made available to the VM/VMSS */
applicationProfile?: ApplicationProfile;
/**
* Specifies the time at which the Virtual Machine resource was created.<br><br>Minimum api-version: 2022-03-01.
* Specifies the time at which the Virtual Machine resource was created.<br><br>Minimum api-version: 2021-11-01.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly timeCreated?: Date;
Expand Down Expand Up @@ -4996,7 +5001,7 @@ export interface DedicatedHost extends Resource {
*/
readonly instanceView?: DedicatedHostInstanceView;
/**
* Specifies the time at which the Dedicated Host resource was created.<br><br>Minimum api-version: 2022-03-01.
* Specifies the time at which the Dedicated Host resource was created.<br><br>Minimum api-version: 2021-11-01.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly timeCreated?: Date;
Expand Down Expand Up @@ -5078,6 +5083,11 @@ export interface CapacityReservation extends Resource {
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly reservationId?: string;
/**
* Specifies the value of fault domain count that Capacity Reservation supports for requested VM size.<br>NOTE: The fault domain count specified for a resource (like virtual machines scale set) must be less than or equal to this value if it deploys using capacity reservation.<br><br>Minimum api-version: 2022-08-01.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly platformFaultDomainCount?: number;
/**
* A list of all virtual machine resource ids that are associated with the capacity reservation.
* NOTE: This property will not be serialized. It can only be populated by the server.
Expand All @@ -5099,7 +5109,7 @@ export interface CapacityReservation extends Resource {
*/
readonly instanceView?: CapacityReservationInstanceView;
/**
* Specifies the time at which the Capacity Reservation resource was created.<br><br>Minimum api-version: 2022-03-01.
* Specifies the time at which the Capacity Reservation resource was created.<br><br>Minimum api-version: 2021-11-01.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly timeCreated?: Date;
Expand Down Expand Up @@ -5592,7 +5602,7 @@ export interface VirtualMachineUpdate extends UpdateResource {
/** Specifies the gallery applications that should be made available to the VM/VMSS */
applicationProfile?: ApplicationProfile;
/**
* Specifies the time at which the Virtual Machine resource was created.<br><br>Minimum api-version: 2022-03-01.
* Specifies the time at which the Virtual Machine resource was created.<br><br>Minimum api-version: 2021-11-01.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly timeCreated?: Date;
Expand Down Expand Up @@ -5676,7 +5686,7 @@ export interface DedicatedHostUpdate extends UpdateResource {
*/
readonly instanceView?: DedicatedHostInstanceView;
/**
* Specifies the time at which the Dedicated Host resource was created.<br><br>Minimum api-version: 2022-03-01.
* Specifies the time at which the Dedicated Host resource was created.<br><br>Minimum api-version: 2021-11-01.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly timeCreated?: Date;
Expand Down Expand Up @@ -5752,6 +5762,11 @@ export interface CapacityReservationUpdate extends UpdateResource {
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly reservationId?: string;
/**
* Specifies the value of fault domain count that Capacity Reservation supports for requested VM size.<br>NOTE: The fault domain count specified for a resource (like virtual machines scale set) must be less than or equal to this value if it deploys using capacity reservation.<br><br>Minimum api-version: 2022-08-01.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly platformFaultDomainCount?: number;
/**
* A list of all virtual machine resource ids that are associated with the capacity reservation.
* NOTE: This property will not be serialized. It can only be populated by the server.
Expand All @@ -5773,7 +5788,7 @@ export interface CapacityReservationUpdate extends UpdateResource {
*/
readonly instanceView?: CapacityReservationInstanceView;
/**
* Specifies the time at which the Capacity Reservation resource was created.<br><br>Minimum api-version: 2022-03-01.
* Specifies the time at which the Capacity Reservation resource was created.<br><br>Minimum api-version: 2021-11-01.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly timeCreated?: Date;
Expand Down Expand Up @@ -5860,7 +5875,7 @@ export interface DedicatedHostInstanceViewWithName
export interface ImageOSDisk extends ImageDisk {
/** This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux** */
osType: OperatingSystemTypes;
/** The OS State. */
/** The OS State. For managed images, use Generalized. */
osState: OperatingSystemStateTypes;
}

Expand Down
Loading