Skip to content

Commit

Permalink
CodeGen from PR 11806 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge ba79e0997766b5ecda32307a054ddd8d3f9084c9 into 206d0326939ad6f0ec2e0d83a946a76464648462
  • Loading branch information
SDKAuto committed Nov 24, 2020
1 parent b493d44 commit 206149d
Show file tree
Hide file tree
Showing 88 changed files with 12,043 additions and 1,915 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
23 changes: 20 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,7 +47,15 @@ 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;
cloudServiceRoleInstances: operations.CloudServiceRoleInstances;
cloudServiceRoles: operations.CloudServiceRoles;
cloudServices: operations.CloudServices;
cloudServicesUpdateDomain: operations.CloudServicesUpdateDomain;

/**
* Initializes a new instance of the ComputeManagementClient class.
Expand Down Expand Up @@ -78,6 +86,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,7 +97,15 @@ 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);
this.cloudServiceRoleInstances = new operations.CloudServiceRoleInstances(this);
this.cloudServiceRoles = new operations.CloudServiceRoles(this);
this.cloudServices = new operations.CloudServices(this);
this.cloudServicesUpdateDomain = new operations.CloudServicesUpdateDomain(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
33 changes: 31 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 All @@ -24,6 +24,18 @@ export {
BootDiagnostics,
BootDiagnosticsInstanceView,
CloudError,
CloudService,
CloudServiceExtensionProfile,
CloudServiceExtensionProperties,
CloudServiceNetworkProfile,
CloudServiceOsProfile,
CloudServiceProperties,
CloudServiceRoleProfile,
CloudServiceRoleProfileProperties,
CloudServiceRoleSku,
CloudServiceVaultAndSecretReference,
CloudServiceVaultCertificate,
CloudServiceVaultSecretGroup,
ContainerService,
ContainerServiceAgentPoolProfile,
ContainerServiceCustomProfile,
Expand Down Expand Up @@ -66,6 +78,7 @@ export {
EncryptionSetIdentity,
EncryptionSettingsCollection,
EncryptionSettingsElement,
Extension,
Gallery,
GalleryApplication,
GalleryApplicationUpdate,
Expand All @@ -78,6 +91,7 @@ export {
GalleryDiskImage,
GalleryIdentifier,
GalleryImage,
GalleryImageFeature,
GalleryImageIdentifier,
GalleryImageUpdate,
GalleryImageVersion,
Expand All @@ -104,6 +118,10 @@ export {
KeyVaultSecretReference,
LastPatchInstallationSummary,
LinuxConfiguration,
LoadBalancerConfiguration,
LoadBalancerConfigurationProperties,
LoadBalancerFrontendIPConfiguration,
LoadBalancerFrontendIPConfigurationProperties,
MaintenanceRedeployStatus,
ManagedDiskParameters,
NetworkInterfaceReference,
Expand All @@ -129,10 +147,14 @@ export {
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
RunCommandInputParameter,
ScaleInPolicy,
ScheduledEventsProfile,
SecurityProfile,
ShareInfoElement,
SharingProfile,
SharingProfileGroup,
SharingUpdate,
Sku,
Snapshot,
SnapshotSku,
Expand All @@ -150,6 +172,7 @@ export {
UpdateResource,
UpdateResourceDefinition,
UpgradePolicy,
UserArtifactManage,
UserArtifactSource,
VaultCertificate,
VaultSecretGroup,
Expand All @@ -169,6 +192,10 @@ export {
VirtualMachineImageResource,
VirtualMachineInstanceView,
VirtualMachinePatchStatus,
VirtualMachineRunCommand,
VirtualMachineRunCommandInstanceView,
VirtualMachineRunCommandScriptSource,
VirtualMachineRunCommandUpdate,
VirtualMachineScaleSet,
VirtualMachineScaleSetDataDisk,
VirtualMachineScaleSetExtension,
Expand Down Expand Up @@ -197,6 +224,8 @@ export {
VirtualMachineScaleSetUpdateStorageProfile,
VirtualMachineScaleSetUpdateVMProfile,
VirtualMachineScaleSetVM,
VirtualMachineScaleSetVMExtension,
VirtualMachineScaleSetVMExtensionUpdate,
VirtualMachineScaleSetVMInstanceView,
VirtualMachineScaleSetVMNetworkProfileConfiguration,
VirtualMachineScaleSetVMProfile,
Expand Down
Loading

0 comments on commit 206149d

Please sign in to comment.