Skip to content

Commit

Permalink
CodeGen from PR 12222 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 6b653a8b863cb488bb9055d0974bc595cd0e927e into bcd417920ddc33d1e89d0ecfcb2b405025418b3c
  • Loading branch information
SDKAuto committed Dec 28, 2020
1 parent 6c09edd commit 2bc4865
Show file tree
Hide file tree
Showing 80 changed files with 9,762 additions and 1,809 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 @@ -48,6 +48,10 @@ class ComputeManagementClient extends ComputeManagementClientContext {
galleryApplications: operations.GalleryApplications;
galleryApplicationVersions: operations.GalleryApplicationVersions;
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 +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 @@ -89,6 +94,10 @@ class ComputeManagementClient extends ComputeManagementClientContext {
this.galleryApplications = new operations.GalleryApplications(this);
this.galleryApplicationVersions = new operations.GalleryApplicationVersions(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
28 changes: 26 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 Down Expand Up @@ -104,6 +117,10 @@ export {
KeyVaultSecretReference,
LastPatchInstallationSummary,
LinuxConfiguration,
LoadBalancerConfiguration,
LoadBalancerConfigurationProperties,
LoadBalancerFrontendIPConfiguration,
LoadBalancerFrontendIPConfigurationProperties,
MaintenanceRedeployStatus,
ManagedDiskParameters,
NetworkInterfaceReference,
Expand All @@ -129,6 +146,7 @@ export {
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
RunCommandInputParameter,
ScaleInPolicy,
ScheduledEventsProfile,
SecurityProfile,
Expand Down Expand Up @@ -169,6 +187,10 @@ export {
VirtualMachineImageResource,
VirtualMachineInstanceView,
VirtualMachinePatchStatus,
VirtualMachineRunCommand,
VirtualMachineRunCommandInstanceView,
VirtualMachineRunCommandScriptSource,
VirtualMachineRunCommandUpdate,
VirtualMachineScaleSet,
VirtualMachineScaleSetDataDisk,
VirtualMachineScaleSetExtension,
Expand Down Expand Up @@ -197,6 +219,8 @@ export {
VirtualMachineScaleSetUpdateStorageProfile,
VirtualMachineScaleSetUpdateVMProfile,
VirtualMachineScaleSetVM,
VirtualMachineScaleSetVMExtension,
VirtualMachineScaleSetVMExtensionUpdate,
VirtualMachineScaleSetVMInstanceView,
VirtualMachineScaleSetVMNetworkProfileConfiguration,
VirtualMachineScaleSetVMProfile,
Expand Down
222 changes: 222 additions & 0 deletions sdk/compute/arm-compute/src/models/cloudServiceRoleInstancesMappers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
/*
* 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.
*/

export {
AdditionalCapabilities,
AdditionalUnattendContent,
ApiEntityReference,
ApiError,
ApiErrorBase,
AutomaticOSUpgradePolicy,
AutomaticOSUpgradeProperties,
AutomaticRepairsPolicy,
AvailabilitySet,
AvailablePatchSummary,
BaseResource,
BillingProfile,
BootDiagnostics,
BootDiagnosticsInstanceView,
CloudError,
CloudService,
CloudServiceExtensionProfile,
CloudServiceExtensionProperties,
CloudServiceNetworkProfile,
CloudServiceOsProfile,
CloudServiceProperties,
CloudServiceRoleProfile,
CloudServiceRoleProfileProperties,
CloudServiceRoleSku,
CloudServiceVaultAndSecretReference,
CloudServiceVaultCertificate,
CloudServiceVaultSecretGroup,
ContainerService,
ContainerServiceAgentPoolProfile,
ContainerServiceCustomProfile,
ContainerServiceDiagnosticsProfile,
ContainerServiceLinuxProfile,
ContainerServiceMasterProfile,
ContainerServiceOrchestratorProfile,
ContainerServiceServicePrincipalProfile,
ContainerServiceSshConfiguration,
ContainerServiceSshPublicKey,
ContainerServiceVMDiagnostics,
ContainerServiceWindowsProfile,
CreationData,
DataDisk,
DataDiskImage,
DataDiskImageEncryption,
DedicatedHost,
DedicatedHostAllocatableVM,
DedicatedHostAvailableCapacity,
DedicatedHostGroup,
DedicatedHostGroupInstanceView,
DedicatedHostInstanceView,
DedicatedHostInstanceViewWithName,
DiagnosticsProfile,
DiffDiskSettings,
Disallowed,
DisallowedConfiguration,
Disk,
DiskAccess,
DiskEncryptionSet,
DiskEncryptionSetParameters,
DiskEncryptionSettings,
DiskImageEncryption,
DiskInstanceView,
DiskSku,
Encryption,
EncryptionImages,
EncryptionSetIdentity,
EncryptionSettingsCollection,
EncryptionSettingsElement,
Extension,
Gallery,
GalleryApplication,
GalleryApplicationUpdate,
GalleryApplicationVersion,
GalleryApplicationVersionPublishingProfile,
GalleryApplicationVersionUpdate,
GalleryArtifactPublishingProfileBase,
GalleryArtifactVersionSource,
GalleryDataDiskImage,
GalleryDiskImage,
GalleryIdentifier,
GalleryImage,
GalleryImageIdentifier,
GalleryImageUpdate,
GalleryImageVersion,
GalleryImageVersionPublishingProfile,
GalleryImageVersionStorageProfile,
GalleryImageVersionUpdate,
GalleryOSDiskImage,
GalleryUpdate,
HardwareProfile,
Image,
ImageDataDisk,
ImageDisk,
ImageDiskReference,
ImageOSDisk,
ImagePurchasePlan,
ImageReference,
ImageStorageProfile,
InnerError,
InstanceSku,
InstanceViewStatus,
KeyVaultAndKeyReference,
KeyVaultAndSecretReference,
KeyVaultKeyReference,
KeyVaultSecretReference,
LastPatchInstallationSummary,
LinuxConfiguration,
LoadBalancerConfiguration,
LoadBalancerConfigurationProperties,
LoadBalancerFrontendIPConfiguration,
LoadBalancerFrontendIPConfigurationProperties,
MaintenanceRedeployStatus,
ManagedDiskParameters,
NetworkInterfaceReference,
NetworkProfile,
OSDisk,
OSDiskImage,
OSDiskImageEncryption,
OSProfile,
PatchSettings,
Plan,
PrivateEndpoint,
PrivateEndpointConnection,
PrivateLinkServiceConnectionState,
ProximityPlacementGroup,
PurchasePlan,
RecommendedMachineConfiguration,
RegionalReplicationStatus,
ReplicationStatus,
Resource,
ResourceInstanceViewStatus,
ResourceRange,
RoleInstance,
RoleInstanceInstanceView,
RoleInstanceListResult,
RoleInstanceNetworkProfile,
RoleInstanceProperties,
RollingUpgradePolicy,
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
RunCommandInputParameter,
ScaleInPolicy,
ScheduledEventsProfile,
SecurityProfile,
ShareInfoElement,
Sku,
Snapshot,
SnapshotSku,
SourceVault,
SshConfiguration,
SshPublicKey,
SshPublicKeyResource,
StorageProfile,
SubResource,
SubResourceReadOnly,
SubResourceWithColocationStatus,
TargetRegion,
TerminateNotificationProfile,
UpdateResourceDefinition,
UpgradePolicy,
UserArtifactSource,
VaultCertificate,
VaultSecretGroup,
VirtualHardDisk,
VirtualMachine,
VirtualMachineAgentInstanceView,
VirtualMachineCaptureResult,
VirtualMachineExtension,
VirtualMachineExtensionHandlerInstanceView,
VirtualMachineExtensionImage,
VirtualMachineExtensionInstanceView,
VirtualMachineHealthStatus,
VirtualMachineIdentity,
VirtualMachineIdentityUserAssignedIdentitiesValue,
VirtualMachineImage,
VirtualMachineImageResource,
VirtualMachineInstanceView,
VirtualMachinePatchStatus,
VirtualMachineRunCommand,
VirtualMachineRunCommandInstanceView,
VirtualMachineRunCommandScriptSource,
VirtualMachineScaleSet,
VirtualMachineScaleSetDataDisk,
VirtualMachineScaleSetExtension,
VirtualMachineScaleSetExtensionProfile,
VirtualMachineScaleSetExtensionUpdate,
VirtualMachineScaleSetIdentity,
VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue,
VirtualMachineScaleSetIPConfiguration,
VirtualMachineScaleSetIpTag,
VirtualMachineScaleSetManagedDiskParameters,
VirtualMachineScaleSetNetworkConfiguration,
VirtualMachineScaleSetNetworkConfigurationDnsSettings,
VirtualMachineScaleSetNetworkProfile,
VirtualMachineScaleSetOSDisk,
VirtualMachineScaleSetOSProfile,
VirtualMachineScaleSetPublicIPAddressConfiguration,
VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings,
VirtualMachineScaleSetStorageProfile,
VirtualMachineScaleSetUpdateIPConfiguration,
VirtualMachineScaleSetUpdateNetworkConfiguration,
VirtualMachineScaleSetUpdatePublicIPAddressConfiguration,
VirtualMachineScaleSetVM,
VirtualMachineScaleSetVMExtension,
VirtualMachineScaleSetVMExtensionUpdate,
VirtualMachineScaleSetVMInstanceView,
VirtualMachineScaleSetVMNetworkProfileConfiguration,
VirtualMachineScaleSetVMProfile,
VirtualMachineScaleSetVMProtectionPolicy,
WindowsConfiguration,
WinRMConfiguration,
WinRMListener
} from "../models/mappers";
Loading

0 comments on commit 2bc4865

Please sign in to comment.