Skip to content

Commit

Permalink
Generated from cc28f75ab2ba0ba66287204b34457d1f060c1461
Browse files Browse the repository at this point in the history
  • Loading branch information
SDK Automation committed Oct 29, 2020
1 parent e64a3aa commit 6d14078
Show file tree
Hide file tree
Showing 80 changed files with 5,292 additions and 450 deletions.
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
15 changes: 12 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 Expand Up @@ -37,6 +36,7 @@ class ComputeManagementClient extends ComputeManagementClientContext {
virtualMachineScaleSetVMs: operations.VirtualMachineScaleSetVMs;
logAnalytics: operations.LogAnalytics;
virtualMachineRunCommands: operations.VirtualMachineRunCommands;
virtualMachineScaleSetVMRunCommands: operations.VirtualMachineScaleSetVMRunCommands;
resourceSkus: operations.ResourceSkus;
disks: operations.Disks;
snapshots: operations.Snapshots;
Expand All @@ -47,6 +47,10 @@ class ComputeManagementClient extends ComputeManagementClientContext {
galleryImageVersions: operations.GalleryImageVersions;
galleryApplications: operations.GalleryApplications;
galleryApplicationVersions: operations.GalleryApplicationVersions;
gallerySharingProfile: operations.GallerySharingProfile;
sharedGalleries: operations.SharedGalleries;
sharedGalleryImages: operations.SharedGalleryImages;
sharedGalleryImageVersions: operations.SharedGalleryImageVersions;
containerServices: operations.ContainerServices;

/**
Expand Down Expand Up @@ -78,6 +82,7 @@ class ComputeManagementClient extends ComputeManagementClientContext {
this.virtualMachineScaleSetVMs = new operations.VirtualMachineScaleSetVMs(this);
this.logAnalytics = new operations.LogAnalytics(this);
this.virtualMachineRunCommands = new operations.VirtualMachineRunCommands(this);
this.virtualMachineScaleSetVMRunCommands = new operations.VirtualMachineScaleSetVMRunCommands(this);
this.resourceSkus = new operations.ResourceSkus(this);
this.disks = new operations.Disks(this);
this.snapshots = new operations.Snapshots(this);
Expand All @@ -88,6 +93,10 @@ class ComputeManagementClient extends ComputeManagementClientContext {
this.galleryImageVersions = new operations.GalleryImageVersions(this);
this.galleryApplications = new operations.GalleryApplications(this);
this.galleryApplicationVersions = new operations.GalleryApplicationVersions(this);
this.gallerySharingProfile = new operations.GallerySharingProfile(this);
this.sharedGalleries = new operations.SharedGalleries(this);
this.sharedGalleryImages = new operations.SharedGalleryImages(this);
this.sharedGalleryImageVersions = new operations.SharedGalleryImageVersions(this);
this.containerServices = new operations.ContainerServices(this);
}
}
Expand Down
5 changes: 2 additions & 3 deletions sdk/compute/arm-compute/src/computeManagementClientContext.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
16 changes: 14 additions & 2 deletions sdk/compute/arm-compute/src/models/availabilitySetsMappers.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 @@ -78,6 +78,7 @@ export {
GalleryDiskImage,
GalleryIdentifier,
GalleryImage,
GalleryImageFeature,
GalleryImageIdentifier,
GalleryImageUpdate,
GalleryImageVersion,
Expand Down Expand Up @@ -129,10 +130,14 @@ export {
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
RunCommandInputParameter,
ScaleInPolicy,
ScheduledEventsProfile,
SecurityProfile,
ShareInfoElement,
SharingProfile,
SharingProfileGroup,
SharingUpdate,
Sku,
Snapshot,
SnapshotSku,
Expand All @@ -150,6 +155,7 @@ export {
UpdateResource,
UpdateResourceDefinition,
UpgradePolicy,
UserArtifactManage,
UserArtifactSource,
VaultCertificate,
VaultSecretGroup,
Expand All @@ -169,6 +175,10 @@ export {
VirtualMachineImageResource,
VirtualMachineInstanceView,
VirtualMachinePatchStatus,
VirtualMachineRunCommand,
VirtualMachineRunCommandInstanceView,
VirtualMachineRunCommandScriptSource,
VirtualMachineRunCommandUpdate,
VirtualMachineScaleSet,
VirtualMachineScaleSetDataDisk,
VirtualMachineScaleSetExtension,
Expand Down Expand Up @@ -197,6 +207,8 @@ export {
VirtualMachineScaleSetUpdateStorageProfile,
VirtualMachineScaleSetUpdateVMProfile,
VirtualMachineScaleSetVM,
VirtualMachineScaleSetVMExtension,
VirtualMachineScaleSetVMExtensionUpdate,
VirtualMachineScaleSetVMInstanceView,
VirtualMachineScaleSetVMNetworkProfileConfiguration,
VirtualMachineScaleSetVMProfile,
Expand Down
15 changes: 13 additions & 2 deletions sdk/compute/arm-compute/src/models/containerServicesMappers.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 @@ -75,6 +75,7 @@ export {
GalleryDiskImage,
GalleryIdentifier,
GalleryImage,
GalleryImageFeature,
GalleryImageIdentifier,
GalleryImageUpdate,
GalleryImageVersion,
Expand Down Expand Up @@ -124,10 +125,14 @@ export {
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
RunCommandInputParameter,
ScaleInPolicy,
ScheduledEventsProfile,
SecurityProfile,
ShareInfoElement,
SharingProfile,
SharingProfileGroup,
SharingUpdate,
Sku,
Snapshot,
SnapshotSku,
Expand All @@ -143,6 +148,7 @@ export {
TerminateNotificationProfile,
UpdateResourceDefinition,
UpgradePolicy,
UserArtifactManage,
UserArtifactSource,
VaultCertificate,
VaultSecretGroup,
Expand All @@ -161,6 +167,9 @@ export {
VirtualMachineImageResource,
VirtualMachineInstanceView,
VirtualMachinePatchStatus,
VirtualMachineRunCommand,
VirtualMachineRunCommandInstanceView,
VirtualMachineRunCommandScriptSource,
VirtualMachineScaleSet,
VirtualMachineScaleSetDataDisk,
VirtualMachineScaleSetExtension,
Expand All @@ -183,6 +192,8 @@ export {
VirtualMachineScaleSetUpdateNetworkConfiguration,
VirtualMachineScaleSetUpdatePublicIPAddressConfiguration,
VirtualMachineScaleSetVM,
VirtualMachineScaleSetVMExtension,
VirtualMachineScaleSetVMExtensionUpdate,
VirtualMachineScaleSetVMInstanceView,
VirtualMachineScaleSetVMNetworkProfileConfiguration,
VirtualMachineScaleSetVMProfile,
Expand Down
16 changes: 14 additions & 2 deletions sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.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 @@ -78,6 +78,7 @@ export {
GalleryDiskImage,
GalleryIdentifier,
GalleryImage,
GalleryImageFeature,
GalleryImageIdentifier,
GalleryImageUpdate,
GalleryImageVersion,
Expand Down Expand Up @@ -129,10 +130,14 @@ export {
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
RunCommandInputParameter,
ScaleInPolicy,
ScheduledEventsProfile,
SecurityProfile,
ShareInfoElement,
SharingProfile,
SharingProfileGroup,
SharingUpdate,
Sku,
Snapshot,
SnapshotSku,
Expand All @@ -150,6 +155,7 @@ export {
UpdateResource,
UpdateResourceDefinition,
UpgradePolicy,
UserArtifactManage,
UserArtifactSource,
VaultCertificate,
VaultSecretGroup,
Expand All @@ -169,6 +175,10 @@ export {
VirtualMachineImageResource,
VirtualMachineInstanceView,
VirtualMachinePatchStatus,
VirtualMachineRunCommand,
VirtualMachineRunCommandInstanceView,
VirtualMachineRunCommandScriptSource,
VirtualMachineRunCommandUpdate,
VirtualMachineScaleSet,
VirtualMachineScaleSetDataDisk,
VirtualMachineScaleSetExtension,
Expand Down Expand Up @@ -197,6 +207,8 @@ export {
VirtualMachineScaleSetUpdateStorageProfile,
VirtualMachineScaleSetUpdateVMProfile,
VirtualMachineScaleSetVM,
VirtualMachineScaleSetVMExtension,
VirtualMachineScaleSetVMExtensionUpdate,
VirtualMachineScaleSetVMInstanceView,
VirtualMachineScaleSetVMNetworkProfileConfiguration,
VirtualMachineScaleSetVMProfile,
Expand Down
16 changes: 14 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 Expand Up @@ -78,6 +78,7 @@ export {
GalleryDiskImage,
GalleryIdentifier,
GalleryImage,
GalleryImageFeature,
GalleryImageIdentifier,
GalleryImageUpdate,
GalleryImageVersion,
Expand Down Expand Up @@ -129,10 +130,14 @@ export {
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
RunCommandInputParameter,
ScaleInPolicy,
ScheduledEventsProfile,
SecurityProfile,
ShareInfoElement,
SharingProfile,
SharingProfileGroup,
SharingUpdate,
Sku,
Snapshot,
SnapshotSku,
Expand All @@ -150,6 +155,7 @@ export {
UpdateResource,
UpdateResourceDefinition,
UpgradePolicy,
UserArtifactManage,
UserArtifactSource,
VaultCertificate,
VaultSecretGroup,
Expand All @@ -169,6 +175,10 @@ export {
VirtualMachineImageResource,
VirtualMachineInstanceView,
VirtualMachinePatchStatus,
VirtualMachineRunCommand,
VirtualMachineRunCommandInstanceView,
VirtualMachineRunCommandScriptSource,
VirtualMachineRunCommandUpdate,
VirtualMachineScaleSet,
VirtualMachineScaleSetDataDisk,
VirtualMachineScaleSetExtension,
Expand Down Expand Up @@ -197,6 +207,8 @@ export {
VirtualMachineScaleSetUpdateStorageProfile,
VirtualMachineScaleSetUpdateVMProfile,
VirtualMachineScaleSetVM,
VirtualMachineScaleSetVMExtension,
VirtualMachineScaleSetVMExtensionUpdate,
VirtualMachineScaleSetVMInstanceView,
VirtualMachineScaleSetVMNetworkProfileConfiguration,
VirtualMachineScaleSetVMProfile,
Expand Down
15 changes: 13 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 Expand Up @@ -76,6 +76,7 @@ export {
GalleryDiskImage,
GalleryIdentifier,
GalleryImage,
GalleryImageFeature,
GalleryImageIdentifier,
GalleryImageUpdate,
GalleryImageVersion,
Expand Down Expand Up @@ -127,10 +128,14 @@ export {
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
RunCommandInputParameter,
ScaleInPolicy,
ScheduledEventsProfile,
SecurityProfile,
ShareInfoElement,
SharingProfile,
SharingProfileGroup,
SharingUpdate,
Sku,
Snapshot,
SnapshotSku,
Expand All @@ -146,6 +151,7 @@ export {
TerminateNotificationProfile,
UpdateResourceDefinition,
UpgradePolicy,
UserArtifactManage,
UserArtifactSource,
VaultCertificate,
VaultSecretGroup,
Expand All @@ -164,6 +170,9 @@ export {
VirtualMachineImageResource,
VirtualMachineInstanceView,
VirtualMachinePatchStatus,
VirtualMachineRunCommand,
VirtualMachineRunCommandInstanceView,
VirtualMachineRunCommandScriptSource,
VirtualMachineScaleSet,
VirtualMachineScaleSetDataDisk,
VirtualMachineScaleSetExtension,
Expand All @@ -186,6 +195,8 @@ export {
VirtualMachineScaleSetUpdateNetworkConfiguration,
VirtualMachineScaleSetUpdatePublicIPAddressConfiguration,
VirtualMachineScaleSetVM,
VirtualMachineScaleSetVMExtension,
VirtualMachineScaleSetVMExtensionUpdate,
VirtualMachineScaleSetVMInstanceView,
VirtualMachineScaleSetVMNetworkProfileConfiguration,
VirtualMachineScaleSetVMProfile,
Expand Down
Loading

0 comments on commit 6d14078

Please sign in to comment.