Skip to content
Open
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
9 changes: 4 additions & 5 deletions sdk/compute/arm-compute/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm install @azure/arm-compute

### How to use

#### nodejs - Authentication, client creation and list operations as an example written in TypeScript.
#### nodejs - client creation and list operations as an example written in TypeScript.

##### Install @azure/ms-rest-nodeauth

Expand All @@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0"

##### Sample code

While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
```typescript
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
import { ComputeManagementClient, ComputeManagementModels, ComputeManagementMappers } from "@azure/arm-compute";
const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
const { ComputeManagementClient } = require("@azure/arm-compute");
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];

msRestNodeAuth.interactiveLogin().then((creds) => {
Expand Down
4 changes: 2 additions & 2 deletions sdk/compute/arm-compute/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const config = {
"@azure/ms-rest-azure-js": "msRestAzure"
},
banner: `/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
5 changes: 2 additions & 3 deletions sdk/compute/arm-compute/src/computeManagementClient.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
4 changes: 2 additions & 2 deletions sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
4 changes: 2 additions & 2 deletions sdk/compute/arm-compute/src/models/diskAccessesMappers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
4 changes: 2 additions & 2 deletions sdk/compute/arm-compute/src/models/disksMappers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
4 changes: 2 additions & 2 deletions sdk/compute/arm-compute/src/models/galleriesMappers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
4 changes: 2 additions & 2 deletions sdk/compute/arm-compute/src/models/galleryImagesMappers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
4 changes: 2 additions & 2 deletions sdk/compute/arm-compute/src/models/imagesMappers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
74 changes: 72 additions & 2 deletions sdk/compute/arm-compute/src/models/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down Expand Up @@ -2391,6 +2391,16 @@ export interface VirtualMachine extends Resource {
* assigned to. <br><br>Minimum api-version: 2018-04-01.
*/
proximityPlacementGroup?: SubResource;
/**
* Specifies the scale set logical fault domain into which the Virtual Machine will be created.
* By default, the Virtual Machine will by automatically assigned to a fault domain that best
* maintains balance across available fault domains.<br><li>This is applicable only if the
* 'virtualMachineScaleSet' property of this Virtual Machine is set.<li>The Virtual Machine Scale
* Set that is referenced, must have 'platformFaultDomainCount' &gt; 1.<li>This property cannot
* be updated once the Virtual Machine is created.<li>Fault domain assignment can be viewed in
* the Virtual Machine Instance View.<br><br>Minimum api‐version: 2020‐12‐01
*/
platformFaultDomain?: number;
/**
* Specifies the priority for the virtual machine. <br><br>Minimum api-version: 2019-03-01.
* Possible values include: 'Regular', 'Low', 'Spot'
Expand Down Expand Up @@ -2537,6 +2547,16 @@ export interface VirtualMachineUpdate extends UpdateResource {
* assigned to. <br><br>Minimum api-version: 2018-04-01.
*/
proximityPlacementGroup?: SubResource;
/**
* Specifies the scale set logical fault domain into which the Virtual Machine will be created.
* By default, the Virtual Machine will by automatically assigned to a fault domain that best
* maintains balance across available fault domains.<br><li>This is applicable only if the
* 'virtualMachineScaleSet' property of this Virtual Machine is set.<li>The Virtual Machine Scale
* Set that is referenced, must have 'platformFaultDomainCount' &gt; 1.<li>This property cannot
* be updated once the Virtual Machine is created.<li>Fault domain assignment can be viewed in
* the Virtual Machine Instance View.<br><br>Minimum api‐version: 2020‐12‐01
*/
platformFaultDomain?: number;
/**
* Specifies the priority for the virtual machine. <br><br>Minimum api-version: 2019-03-01.
* Possible values include: 'Regular', 'Low', 'Spot'
Expand Down Expand Up @@ -6514,6 +6534,16 @@ export interface AvailabilitySetsListBySubscriptionOptionalParams extends msRest
expand?: string;
}

/**
* Optional Parameters.
*/
export interface AvailabilitySetsListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase {
/**
* The expand expression to apply to the operation. Allowed values are 'instanceView'.
*/
expand?: string;
}

/**
* Optional Parameters.
*/
Expand Down Expand Up @@ -6666,6 +6696,16 @@ export interface VirtualMachinesBeginReimageOptionalParams extends msRest.Reques
parameters?: VirtualMachineReimageParameters;
}

/**
* Optional Parameters.
*/
export interface VirtualMachinesListAllNextOptionalParams extends msRest.RequestOptionsBase {
/**
* statusOnly=true enables fetching run time status of all Virtual Machines in the subscription.
*/
statusOnly?: string;
}

/**
* Optional Parameters.
*/
Expand Down Expand Up @@ -6964,6 +7004,26 @@ export interface VirtualMachineScaleSetVMsBeginPowerOffOptionalParams extends ms
skipShutdown?: boolean;
}

/**
* Optional Parameters.
*/
export interface VirtualMachineScaleSetVMsListNextOptionalParams extends msRest.RequestOptionsBase {
/**
* The filter to apply to the operation. Allowed values are
* 'startswith(instanceView/statuses/code, 'PowerState') eq true', 'properties/latestModelApplied
* eq true', 'properties/latestModelApplied eq false'.
*/
filter?: string;
/**
* The list parameters. Allowed values are 'instanceView', 'instanceView/statuses'.
*/
select?: string;
/**
* The expand expression to apply to the operation. Allowed values are 'instanceView'.
*/
expand?: string;
}

/**
* Optional Parameters.
*/
Expand All @@ -6974,6 +7034,16 @@ export interface ResourceSkusListOptionalParams extends msRest.RequestOptionsBas
filter?: string;
}

/**
* Optional Parameters.
*/
export interface ResourceSkusListNextOptionalParams extends msRest.RequestOptionsBase {
/**
* The filter to apply on the operation. Only **location** filter is supported currently.
*/
filter?: string;
}

/**
* Optional Parameters.
*/
Expand Down
4 changes: 2 additions & 2 deletions sdk/compute/arm-compute/src/models/logAnalyticsMappers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
16 changes: 14 additions & 2 deletions sdk/compute/arm-compute/src/models/mappers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down Expand Up @@ -3518,6 +3518,12 @@ export const VirtualMachine: msRest.CompositeMapper = {
className: "SubResource"
}
},
platformFaultDomain: {
serializedName: "properties.platformFaultDomain",
type: {
name: "Number"
}
},
priority: {
serializedName: "properties.priority",
type: {
Expand Down Expand Up @@ -3704,6 +3710,12 @@ export const VirtualMachineUpdate: msRest.CompositeMapper = {
className: "SubResource"
}
},
platformFaultDomain: {
serializedName: "properties.platformFaultDomain",
type: {
name: "Number"
}
},
priority: {
serializedName: "properties.priority",
type: {
Expand Down
4 changes: 2 additions & 2 deletions sdk/compute/arm-compute/src/models/operationsMappers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
Loading