Skip to content

Commit

Permalink
CodeGen from PR 12913 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge fedde42351b119e141dedcfdd65dd5c234137e33 into 17d5cbccb47a8f4064fa70c51957e012ddd0ba50
  • Loading branch information
SDKAuto committed Feb 9, 2021
1 parent 0708336 commit 0c6c80f
Show file tree
Hide file tree
Showing 76 changed files with 6,863 additions and 2,583 deletions.
2 changes: 1 addition & 1 deletion sdk/compute/arm-compute/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2020 Microsoft
Copyright (c) 2021 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
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
17 changes: 10 additions & 7 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 All @@ -26,28 +25,30 @@ class ComputeManagementClient extends ComputeManagementClientContext {
virtualMachineExtensionImages: operations.VirtualMachineExtensionImages;
virtualMachineExtensions: operations.VirtualMachineExtensions;
virtualMachineImages: operations.VirtualMachineImages;
virtualMachineImagesEdgeZone: operations.VirtualMachineImagesEdgeZone;
usage: operations.UsageOperations;
virtualMachines: operations.VirtualMachines;
virtualMachineScaleSets: operations.VirtualMachineScaleSets;
virtualMachineSizes: operations.VirtualMachineSizes;
images: operations.Images;
virtualMachineScaleSets: operations.VirtualMachineScaleSets;
virtualMachineScaleSetExtensions: operations.VirtualMachineScaleSetExtensions;
virtualMachineScaleSetRollingUpgrades: operations.VirtualMachineScaleSetRollingUpgrades;
virtualMachineScaleSetVMExtensions: operations.VirtualMachineScaleSetVMExtensions;
virtualMachineScaleSetVMs: operations.VirtualMachineScaleSetVMs;
logAnalytics: operations.LogAnalytics;
virtualMachineRunCommands: operations.VirtualMachineRunCommands;
virtualMachineScaleSetVMRunCommands: operations.VirtualMachineScaleSetVMRunCommands;
resourceSkus: operations.ResourceSkus;
disks: operations.Disks;
snapshots: operations.Snapshots;
diskEncryptionSets: operations.DiskEncryptionSets;
diskAccesses: operations.DiskAccesses;
diskRestorePoint: operations.DiskRestorePointOperations;
galleries: operations.Galleries;
galleryImages: operations.GalleryImages;
galleryImageVersions: operations.GalleryImageVersions;
galleryApplications: operations.GalleryApplications;
galleryApplicationVersions: operations.GalleryApplicationVersions;
containerServices: operations.ContainerServices;

/**
* Initializes a new instance of the ComputeManagementClient class.
Expand All @@ -67,28 +68,30 @@ class ComputeManagementClient extends ComputeManagementClientContext {
this.virtualMachineExtensionImages = new operations.VirtualMachineExtensionImages(this);
this.virtualMachineExtensions = new operations.VirtualMachineExtensions(this);
this.virtualMachineImages = new operations.VirtualMachineImages(this);
this.virtualMachineImagesEdgeZone = new operations.VirtualMachineImagesEdgeZone(this);
this.usage = new operations.UsageOperations(this);
this.virtualMachines = new operations.VirtualMachines(this);
this.virtualMachineScaleSets = new operations.VirtualMachineScaleSets(this);
this.virtualMachineSizes = new operations.VirtualMachineSizes(this);
this.images = new operations.Images(this);
this.virtualMachineScaleSets = new operations.VirtualMachineScaleSets(this);
this.virtualMachineScaleSetExtensions = new operations.VirtualMachineScaleSetExtensions(this);
this.virtualMachineScaleSetRollingUpgrades = new operations.VirtualMachineScaleSetRollingUpgrades(this);
this.virtualMachineScaleSetVMExtensions = new operations.VirtualMachineScaleSetVMExtensions(this);
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);
this.diskEncryptionSets = new operations.DiskEncryptionSets(this);
this.diskAccesses = new operations.DiskAccesses(this);
this.diskRestorePoint = new operations.DiskRestorePointOperations(this);
this.galleries = new operations.Galleries(this);
this.galleryImages = new operations.GalleryImages(this);
this.galleryImageVersions = new operations.GalleryImageVersions(this);
this.galleryApplications = new operations.GalleryApplications(this);
this.galleryApplicationVersions = new operations.GalleryApplicationVersions(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
29 changes: 15 additions & 14 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 All @@ -24,18 +24,6 @@ export {
BootDiagnostics,
BootDiagnosticsInstanceView,
CloudError,
ContainerService,
ContainerServiceAgentPoolProfile,
ContainerServiceCustomProfile,
ContainerServiceDiagnosticsProfile,
ContainerServiceLinuxProfile,
ContainerServiceMasterProfile,
ContainerServiceOrchestratorProfile,
ContainerServiceServicePrincipalProfile,
ContainerServiceSshConfiguration,
ContainerServiceSshPublicKey,
ContainerServiceVMDiagnostics,
ContainerServiceWindowsProfile,
CreationData,
DataDisk,
DataDiskImage,
Expand Down Expand Up @@ -66,6 +54,7 @@ export {
EncryptionSetIdentity,
EncryptionSettingsCollection,
EncryptionSettingsElement,
ExtendedLocation,
Gallery,
GalleryApplication,
GalleryApplicationUpdate,
Expand Down Expand Up @@ -98,12 +87,14 @@ export {
ImageUpdate,
InnerError,
InstanceViewStatus,
KeyForDiskEncryptionSet,
KeyVaultAndKeyReference,
KeyVaultAndSecretReference,
KeyVaultKeyReference,
KeyVaultSecretReference,
LastPatchInstallationSummary,
LinuxConfiguration,
LinuxPatchSettings,
MaintenanceRedeployStatus,
ManagedDiskParameters,
NetworkInterfaceReference,
Expand All @@ -129,6 +120,7 @@ export {
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
RunCommandInputParameter,
ScaleInPolicy,
ScheduledEventsProfile,
SecurityProfile,
Expand All @@ -147,9 +139,11 @@ export {
SubResourceWithColocationStatus,
TargetRegion,
TerminateNotificationProfile,
UefiSettings,
UpdateResource,
UpdateResourceDefinition,
UpgradePolicy,
UserArtifactManage,
UserArtifactSource,
VaultCertificate,
VaultSecretGroup,
Expand All @@ -166,9 +160,14 @@ export {
VirtualMachineIdentity,
VirtualMachineIdentityUserAssignedIdentitiesValue,
VirtualMachineImage,
VirtualMachineImageFeature,
VirtualMachineImageResource,
VirtualMachineInstanceView,
VirtualMachinePatchStatus,
VirtualMachineRunCommand,
VirtualMachineRunCommandInstanceView,
VirtualMachineRunCommandScriptSource,
VirtualMachineRunCommandUpdate,
VirtualMachineScaleSet,
VirtualMachineScaleSetDataDisk,
VirtualMachineScaleSetExtension,
Expand Down Expand Up @@ -197,6 +196,8 @@ export {
VirtualMachineScaleSetUpdateStorageProfile,
VirtualMachineScaleSetUpdateVMProfile,
VirtualMachineScaleSetVM,
VirtualMachineScaleSetVMExtension,
VirtualMachineScaleSetVMExtensionUpdate,
VirtualMachineScaleSetVMInstanceView,
VirtualMachineScaleSetVMNetworkProfileConfiguration,
VirtualMachineScaleSetVMProfile,
Expand Down
29 changes: 15 additions & 14 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 All @@ -23,18 +23,6 @@ export {
BootDiagnostics,
BootDiagnosticsInstanceView,
CloudError,
ContainerService,
ContainerServiceAgentPoolProfile,
ContainerServiceCustomProfile,
ContainerServiceDiagnosticsProfile,
ContainerServiceLinuxProfile,
ContainerServiceMasterProfile,
ContainerServiceOrchestratorProfile,
ContainerServiceServicePrincipalProfile,
ContainerServiceSshConfiguration,
ContainerServiceSshPublicKey,
ContainerServiceVMDiagnostics,
ContainerServiceWindowsProfile,
CreationData,
DataDisk,
DataDiskImage,
Expand Down Expand Up @@ -66,6 +54,7 @@ export {
EncryptionSetIdentity,
EncryptionSettingsCollection,
EncryptionSettingsElement,
ExtendedLocation,
Gallery,
GalleryApplication,
GalleryApplicationUpdate,
Expand Down Expand Up @@ -98,12 +87,14 @@ export {
ImageUpdate,
InnerError,
InstanceViewStatus,
KeyForDiskEncryptionSet,
KeyVaultAndKeyReference,
KeyVaultAndSecretReference,
KeyVaultKeyReference,
KeyVaultSecretReference,
LastPatchInstallationSummary,
LinuxConfiguration,
LinuxPatchSettings,
MaintenanceRedeployStatus,
ManagedDiskParameters,
NetworkInterfaceReference,
Expand All @@ -129,6 +120,7 @@ export {
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
RunCommandInputParameter,
ScaleInPolicy,
ScheduledEventsProfile,
SecurityProfile,
Expand All @@ -147,9 +139,11 @@ export {
SubResourceWithColocationStatus,
TargetRegion,
TerminateNotificationProfile,
UefiSettings,
UpdateResource,
UpdateResourceDefinition,
UpgradePolicy,
UserArtifactManage,
UserArtifactSource,
VaultCertificate,
VaultSecretGroup,
Expand All @@ -166,9 +160,14 @@ export {
VirtualMachineIdentity,
VirtualMachineIdentityUserAssignedIdentitiesValue,
VirtualMachineImage,
VirtualMachineImageFeature,
VirtualMachineImageResource,
VirtualMachineInstanceView,
VirtualMachinePatchStatus,
VirtualMachineRunCommand,
VirtualMachineRunCommandInstanceView,
VirtualMachineRunCommandScriptSource,
VirtualMachineRunCommandUpdate,
VirtualMachineScaleSet,
VirtualMachineScaleSetDataDisk,
VirtualMachineScaleSetExtension,
Expand Down Expand Up @@ -197,6 +196,8 @@ export {
VirtualMachineScaleSetUpdateStorageProfile,
VirtualMachineScaleSetUpdateVMProfile,
VirtualMachineScaleSetVM,
VirtualMachineScaleSetVMExtension,
VirtualMachineScaleSetVMExtensionUpdate,
VirtualMachineScaleSetVMInstanceView,
VirtualMachineScaleSetVMNetworkProfileConfiguration,
VirtualMachineScaleSetVMProfile,
Expand Down
Loading

0 comments on commit 0c6c80f

Please sign in to comment.