From 4930654330955d43ceba308f4576c62d0bb1dfc1 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 18 Jan 2021 05:37:06 +0000 Subject: [PATCH] CodeGen from PR 12348 in Azure/azure-rest-api-specs Merge d1ac2953a4a9d45cd5167fa66aeb607e07e786f3 into 1c6cda0fb00f0f3fccf04cebcd2a1b439e6b3e24 --- sdk/compute/arm-compute/LICENSE.txt | 2 +- sdk/compute/arm-compute/README.md | 9 +- sdk/compute/arm-compute/rollup.config.js | 4 +- .../src/computeManagementClient.ts | 15 +- .../src/computeManagementClientContext.ts | 5 +- .../src/models/availabilitySetsMappers.ts | 27 +- .../src/models/dedicatedHostGroupsMappers.ts | 27 +- .../src/models/dedicatedHostsMappers.ts | 27 +- .../src/models/diskAccessesMappers.ts | 26 +- .../src/models/diskEncryptionSetsMappers.ts | 26 +- .../arm-compute/src/models/disksMappers.ts | 26 +- .../src/models/galleriesMappers.ts | 26 +- .../galleryApplicationVersionsMappers.ts | 26 +- .../src/models/galleryApplicationsMappers.ts | 26 +- .../src/models/galleryImageVersionsMappers.ts | 26 +- .../src/models/galleryImagesMappers.ts | 26 +- .../arm-compute/src/models/imagesMappers.ts | 27 +- sdk/compute/arm-compute/src/models/index.ts | 3008 +++++++++++------ .../src/models/logAnalyticsMappers.ts | 4 +- sdk/compute/arm-compute/src/models/mappers.ts | 1890 +++++++---- .../src/models/operationsMappers.ts | 4 +- .../arm-compute/src/models/parameters.ts | 61 +- .../models/proximityPlacementGroupsMappers.ts | 27 +- .../src/models/resourceSkusMappers.ts | 4 +- .../src/models/snapshotsMappers.ts | 26 +- .../src/models/sshPublicKeysMappers.ts | 27 +- .../src/models/usageOperationsMappers.ts | 4 +- .../virtualMachineExtensionImagesMappers.ts | 26 +- .../models/virtualMachineExtensionsMappers.ts | 27 +- ...=> virtualMachineImagesEdgeZoneMappers.ts} | 27 +- .../src/models/virtualMachineImagesMappers.ts | 26 +- .../virtualMachineRunCommandsMappers.ts | 202 +- ...virtualMachineScaleSetExtensionsMappers.ts | 26 +- ...alMachineScaleSetRollingUpgradesMappers.ts | 26 +- ...rtualMachineScaleSetVMExtensionsMappers.ts | 43 +- ...tualMachineScaleSetVMRunCommandsMappers.ts | 207 ++ .../virtualMachineScaleSetVMsMappers.ts | 25 +- .../models/virtualMachineScaleSetsMappers.ts | 27 +- .../src/models/virtualMachineSizesMappers.ts | 4 +- .../src/models/virtualMachinesMappers.ts | 31 +- .../src/operations/availabilitySets.ts | 18 +- .../src/operations/containerServices.ts | 444 --- .../src/operations/dedicatedHostGroups.ts | 11 +- .../src/operations/dedicatedHosts.ts | 8 +- .../src/operations/diskAccesses.ts | 11 +- .../src/operations/diskEncryptionSets.ts | 14 +- .../arm-compute/src/operations/disks.ts | 11 +- .../arm-compute/src/operations/galleries.ts | 11 +- .../operations/galleryApplicationVersions.ts | 8 +- .../src/operations/galleryApplications.ts | 8 +- .../src/operations/galleryImageVersions.ts | 8 +- .../src/operations/galleryImages.ts | 8 +- .../arm-compute/src/operations/images.ts | 11 +- .../arm-compute/src/operations/index.ts | 10 +- .../src/operations/logAnalytics.ts | 5 +- .../arm-compute/src/operations/operations.ts | 5 +- .../operations/proximityPlacementGroups.ts | 11 +- .../src/operations/resourceSkus.ts | 15 +- .../arm-compute/src/operations/snapshots.ts | 11 +- .../src/operations/sshPublicKeys.ts | 11 +- .../src/operations/usageOperations.ts | 8 +- .../virtualMachineExtensionImages.ts | 5 +- .../operations/virtualMachineExtensions.ts | 5 +- .../src/operations/virtualMachineImages.ts | 5 +- .../virtualMachineImagesEdgeZone.ts | 413 +++ .../operations/virtualMachineRunCommands.ts | 385 ++- .../virtualMachineScaleSetExtensions.ts | 8 +- .../virtualMachineScaleSetRollingUpgrades.ts | 5 +- .../virtualMachineScaleSetVMExtensions.ts | 39 +- .../virtualMachineScaleSetVMRunCommands.ts | 426 +++ .../operations/virtualMachineScaleSetVMs.ts | 22 +- .../src/operations/virtualMachineScaleSets.ts | 131 +- .../src/operations/virtualMachineSizes.ts | 5 +- .../src/operations/virtualMachines.ts | 95 +- 74 files changed, 5641 insertions(+), 2653 deletions(-) rename sdk/compute/arm-compute/src/models/{containerServicesMappers.ts => virtualMachineImagesEdgeZoneMappers.ts} (88%) create mode 100644 sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMRunCommandsMappers.ts delete mode 100644 sdk/compute/arm-compute/src/operations/containerServices.ts create mode 100644 sdk/compute/arm-compute/src/operations/virtualMachineImagesEdgeZone.ts create mode 100644 sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts diff --git a/sdk/compute/arm-compute/LICENSE.txt b/sdk/compute/arm-compute/LICENSE.txt index ea8fb1516028..2d3163745319 100644 --- a/sdk/compute/arm-compute/LICENSE.txt +++ b/sdk/compute/arm-compute/LICENSE.txt @@ -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 diff --git a/sdk/compute/arm-compute/README.md b/sdk/compute/arm-compute/README.md index e9c72aae2c8b..64daf5f54b2d 100644 --- a/sdk/compute/arm-compute/README.md +++ b/sdk/compute/arm-compute/README.md @@ -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 @@ -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) => { diff --git a/sdk/compute/arm-compute/rollup.config.js b/sdk/compute/arm-compute/rollup.config.js index e7a527c7d3ad..21325d2ced2e 100644 --- a/sdk/compute/arm-compute/rollup.config.js +++ b/sdk/compute/arm-compute/rollup.config.js @@ -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. diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index 4617fee5e9c3..64f0cf88cbd0 100644 --- a/sdk/compute/arm-compute/src/computeManagementClient.ts +++ b/sdk/compute/arm-compute/src/computeManagementClient.ts @@ -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 @@ -26,17 +25,19 @@ 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; @@ -47,7 +48,6 @@ class ComputeManagementClient extends ComputeManagementClientContext { galleryImageVersions: operations.GalleryImageVersions; galleryApplications: operations.GalleryApplications; galleryApplicationVersions: operations.GalleryApplicationVersions; - containerServices: operations.ContainerServices; /** * Initializes a new instance of the ComputeManagementClient class. @@ -67,17 +67,19 @@ 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); @@ -88,7 +90,6 @@ class ComputeManagementClient extends ComputeManagementClientContext { this.galleryImageVersions = new operations.GalleryImageVersions(this); this.galleryApplications = new operations.GalleryApplications(this); this.galleryApplicationVersions = new operations.GalleryApplicationVersions(this); - this.containerServices = new operations.ContainerServices(this); } } diff --git a/sdk/compute/arm-compute/src/computeManagementClientContext.ts b/sdk/compute/arm-compute/src/computeManagementClientContext.ts index cebdc218eaf4..01d00869e6e2 100644 --- a/sdk/compute/arm-compute/src/computeManagementClientContext.ts +++ b/sdk/compute/arm-compute/src/computeManagementClientContext.ts @@ -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 diff --git a/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts b/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts index 81c92f5c003c..1c8d2e5492f9 100644 --- a/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts +++ b/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts @@ -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. @@ -24,18 +24,6 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, - ContainerService, - ContainerServiceAgentPoolProfile, - ContainerServiceCustomProfile, - ContainerServiceDiagnosticsProfile, - ContainerServiceLinuxProfile, - ContainerServiceMasterProfile, - ContainerServiceOrchestratorProfile, - ContainerServiceServicePrincipalProfile, - ContainerServiceSshConfiguration, - ContainerServiceSshPublicKey, - ContainerServiceVMDiagnostics, - ContainerServiceWindowsProfile, CreationData, DataDisk, DataDiskImage, @@ -66,6 +54,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -104,6 +93,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -129,6 +119,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, @@ -147,6 +138,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResource, UpdateResourceDefinition, UpgradePolicy, @@ -166,9 +158,14 @@ export { VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, VirtualMachineImage, + VirtualMachineImageFeature, VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -197,6 +194,8 @@ export { VirtualMachineScaleSetUpdateStorageProfile, VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts b/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts index d6492a5ccb31..d9cfcc3c4cbe 100644 --- a/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts +++ b/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts @@ -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. @@ -23,18 +23,6 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, - ContainerService, - ContainerServiceAgentPoolProfile, - ContainerServiceCustomProfile, - ContainerServiceDiagnosticsProfile, - ContainerServiceLinuxProfile, - ContainerServiceMasterProfile, - ContainerServiceOrchestratorProfile, - ContainerServiceServicePrincipalProfile, - ContainerServiceSshConfiguration, - ContainerServiceSshPublicKey, - ContainerServiceVMDiagnostics, - ContainerServiceWindowsProfile, CreationData, DataDisk, DataDiskImage, @@ -66,6 +54,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -104,6 +93,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -129,6 +119,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, @@ -147,6 +138,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResource, UpdateResourceDefinition, UpgradePolicy, @@ -166,9 +158,14 @@ export { VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, VirtualMachineImage, + VirtualMachineImageFeature, VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -197,6 +194,8 @@ export { VirtualMachineScaleSetUpdateStorageProfile, VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts b/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts index e13ef3198917..f98498af8bc1 100644 --- a/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts +++ b/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts @@ -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. @@ -23,18 +23,6 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, - ContainerService, - ContainerServiceAgentPoolProfile, - ContainerServiceCustomProfile, - ContainerServiceDiagnosticsProfile, - ContainerServiceLinuxProfile, - ContainerServiceMasterProfile, - ContainerServiceOrchestratorProfile, - ContainerServiceServicePrincipalProfile, - ContainerServiceSshConfiguration, - ContainerServiceSshPublicKey, - ContainerServiceVMDiagnostics, - ContainerServiceWindowsProfile, CreationData, DataDisk, DataDiskImage, @@ -66,6 +54,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -104,6 +93,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -129,6 +119,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, @@ -147,6 +138,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResource, UpdateResourceDefinition, UpgradePolicy, @@ -166,9 +158,14 @@ export { VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, VirtualMachineImage, + VirtualMachineImageFeature, VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -197,6 +194,8 @@ export { VirtualMachineScaleSetUpdateStorageProfile, VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts b/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts index 04693ac9ce02..83a22331e0a6 100644 --- a/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts +++ b/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts @@ -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. @@ -22,18 +22,6 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, - ContainerService, - ContainerServiceAgentPoolProfile, - ContainerServiceCustomProfile, - ContainerServiceDiagnosticsProfile, - ContainerServiceLinuxProfile, - ContainerServiceMasterProfile, - ContainerServiceOrchestratorProfile, - ContainerServiceServicePrincipalProfile, - ContainerServiceSshConfiguration, - ContainerServiceSshPublicKey, - ContainerServiceVMDiagnostics, - ContainerServiceWindowsProfile, CreationData, DataDisk, DataDiskImage, @@ -64,6 +52,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -101,6 +90,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -127,6 +117,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, @@ -144,6 +135,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -161,9 +153,13 @@ export { VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, VirtualMachineImage, + VirtualMachineImageFeature, VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -186,6 +182,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts b/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts index 1fb77b62ea0b..bcafed4747af 100644 --- a/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts +++ b/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts @@ -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. @@ -22,18 +22,6 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, - ContainerService, - ContainerServiceAgentPoolProfile, - ContainerServiceCustomProfile, - ContainerServiceDiagnosticsProfile, - ContainerServiceLinuxProfile, - ContainerServiceMasterProfile, - ContainerServiceOrchestratorProfile, - ContainerServiceServicePrincipalProfile, - ContainerServiceSshConfiguration, - ContainerServiceSshPublicKey, - ContainerServiceVMDiagnostics, - ContainerServiceWindowsProfile, CreationData, DataDisk, DataDiskImage, @@ -64,6 +52,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -101,6 +90,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -126,6 +116,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, @@ -143,6 +134,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -160,9 +152,13 @@ export { VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, VirtualMachineImage, + VirtualMachineImageFeature, VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -185,6 +181,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/disksMappers.ts b/sdk/compute/arm-compute/src/models/disksMappers.ts index f4b1367453d6..e88adb8ff624 100644 --- a/sdk/compute/arm-compute/src/models/disksMappers.ts +++ b/sdk/compute/arm-compute/src/models/disksMappers.ts @@ -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. @@ -23,18 +23,6 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, - ContainerService, - ContainerServiceAgentPoolProfile, - ContainerServiceCustomProfile, - ContainerServiceDiagnosticsProfile, - ContainerServiceLinuxProfile, - ContainerServiceMasterProfile, - ContainerServiceOrchestratorProfile, - ContainerServiceServicePrincipalProfile, - ContainerServiceSshConfiguration, - ContainerServiceSshPublicKey, - ContainerServiceVMDiagnostics, - ContainerServiceWindowsProfile, CreationData, DataDisk, DataDiskImage, @@ -65,6 +53,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -103,6 +92,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -127,6 +117,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, @@ -144,6 +135,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -161,9 +153,13 @@ export { VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, VirtualMachineImage, + VirtualMachineImageFeature, VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -186,6 +182,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/galleriesMappers.ts b/sdk/compute/arm-compute/src/models/galleriesMappers.ts index e8848382bd37..3d72c29bfd54 100644 --- a/sdk/compute/arm-compute/src/models/galleriesMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleriesMappers.ts @@ -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. @@ -22,18 +22,6 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, - ContainerService, - ContainerServiceAgentPoolProfile, - ContainerServiceCustomProfile, - ContainerServiceDiagnosticsProfile, - ContainerServiceLinuxProfile, - ContainerServiceMasterProfile, - ContainerServiceOrchestratorProfile, - ContainerServiceServicePrincipalProfile, - ContainerServiceSshConfiguration, - ContainerServiceSshPublicKey, - ContainerServiceVMDiagnostics, - ContainerServiceWindowsProfile, CreationData, DataDisk, DataDiskImage, @@ -62,6 +50,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -100,6 +89,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -124,6 +114,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, @@ -141,6 +132,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -158,9 +150,13 @@ export { VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, VirtualMachineImage, + VirtualMachineImageFeature, VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -183,6 +179,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts b/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts index 08917ccbf34c..f5d02f0c519a 100644 --- a/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts @@ -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. @@ -22,18 +22,6 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, - ContainerService, - ContainerServiceAgentPoolProfile, - ContainerServiceCustomProfile, - ContainerServiceDiagnosticsProfile, - ContainerServiceLinuxProfile, - ContainerServiceMasterProfile, - ContainerServiceOrchestratorProfile, - ContainerServiceServicePrincipalProfile, - ContainerServiceSshConfiguration, - ContainerServiceSshPublicKey, - ContainerServiceVMDiagnostics, - ContainerServiceWindowsProfile, CreationData, DataDisk, DataDiskImage, @@ -62,6 +50,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -100,6 +89,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -124,6 +114,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, @@ -141,6 +132,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -158,9 +150,13 @@ export { VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, VirtualMachineImage, + VirtualMachineImageFeature, VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -183,6 +179,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts b/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts index 23e299c473a6..f61201f2883d 100644 --- a/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts @@ -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. @@ -22,18 +22,6 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, - ContainerService, - ContainerServiceAgentPoolProfile, - ContainerServiceCustomProfile, - ContainerServiceDiagnosticsProfile, - ContainerServiceLinuxProfile, - ContainerServiceMasterProfile, - ContainerServiceOrchestratorProfile, - ContainerServiceServicePrincipalProfile, - ContainerServiceSshConfiguration, - ContainerServiceSshPublicKey, - ContainerServiceVMDiagnostics, - ContainerServiceWindowsProfile, CreationData, DataDisk, DataDiskImage, @@ -62,6 +50,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationList, @@ -100,6 +89,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -124,6 +114,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, @@ -141,6 +132,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -158,9 +150,13 @@ export { VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, VirtualMachineImage, + VirtualMachineImageFeature, VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -183,6 +179,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts b/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts index f793a9a603e8..8ade95c34b48 100644 --- a/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts @@ -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. @@ -22,18 +22,6 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, - ContainerService, - ContainerServiceAgentPoolProfile, - ContainerServiceCustomProfile, - ContainerServiceDiagnosticsProfile, - ContainerServiceLinuxProfile, - ContainerServiceMasterProfile, - ContainerServiceOrchestratorProfile, - ContainerServiceServicePrincipalProfile, - ContainerServiceSshConfiguration, - ContainerServiceSshPublicKey, - ContainerServiceVMDiagnostics, - ContainerServiceWindowsProfile, CreationData, DataDisk, DataDiskImage, @@ -62,6 +50,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -100,6 +89,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -124,6 +114,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, @@ -141,6 +132,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -158,9 +150,13 @@ export { VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, VirtualMachineImage, + VirtualMachineImageFeature, VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -183,6 +179,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts b/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts index 578486eff4ca..3d7b83d49bda 100644 --- a/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts @@ -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. @@ -22,18 +22,6 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, - ContainerService, - ContainerServiceAgentPoolProfile, - ContainerServiceCustomProfile, - ContainerServiceDiagnosticsProfile, - ContainerServiceLinuxProfile, - ContainerServiceMasterProfile, - ContainerServiceOrchestratorProfile, - ContainerServiceServicePrincipalProfile, - ContainerServiceSshConfiguration, - ContainerServiceSshPublicKey, - ContainerServiceVMDiagnostics, - ContainerServiceWindowsProfile, CreationData, DataDisk, DataDiskImage, @@ -62,6 +50,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -100,6 +89,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -124,6 +114,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, @@ -141,6 +132,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -158,9 +150,13 @@ export { VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, VirtualMachineImage, + VirtualMachineImageFeature, VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -183,6 +179,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/imagesMappers.ts b/sdk/compute/arm-compute/src/models/imagesMappers.ts index 69e44f43cd84..1112d50bfa0f 100644 --- a/sdk/compute/arm-compute/src/models/imagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/imagesMappers.ts @@ -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. @@ -23,18 +23,6 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, - ContainerService, - ContainerServiceAgentPoolProfile, - ContainerServiceCustomProfile, - ContainerServiceDiagnosticsProfile, - ContainerServiceLinuxProfile, - ContainerServiceMasterProfile, - ContainerServiceOrchestratorProfile, - ContainerServiceServicePrincipalProfile, - ContainerServiceSshConfiguration, - ContainerServiceSshPublicKey, - ContainerServiceVMDiagnostics, - ContainerServiceWindowsProfile, CreationData, DataDisk, DataDiskImage, @@ -65,6 +53,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -104,6 +93,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -129,6 +119,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, @@ -147,6 +138,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResource, UpdateResourceDefinition, UpgradePolicy, @@ -166,9 +158,14 @@ export { VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, VirtualMachineImage, + VirtualMachineImageFeature, VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -197,6 +194,8 @@ export { VirtualMachineScaleSetUpdateStorageProfile, VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/index.ts b/sdk/compute/arm-compute/src/models/index.ts index cc59586f553f..e3b67551344e 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -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. @@ -369,7 +369,7 @@ export interface DedicatedHostGroup extends Resource { * Specifies whether virtual machines or virtual machine scale sets can be placed automatically * on the dedicated host group. Automatic placement means resources are allocated on dedicated * hosts, that are chosen by Azure, under the dedicated host group. The value is defaulted to - * 'true' when not provided.

Minimum api-version: 2020-06-01. + * 'false' when not provided.

Minimum api-version: 2020-06-01. */ supportAutomaticPlacement?: boolean; /** @@ -404,7 +404,7 @@ export interface DedicatedHostGroupUpdate extends UpdateResource { * Specifies whether virtual machines or virtual machine scale sets can be placed automatically * on the dedicated host group. Automatic placement means resources are allocated on dedicated * hosts, that are chosen by Azure, under the dedicated host group. The value is defaulted to - * 'true' when not provided.

Minimum api-version: 2020-06-01. + * 'false' when not provided.

Minimum api-version: 2020-06-01. */ supportAutomaticPlacement?: boolean; /** @@ -648,6 +648,16 @@ export interface VirtualMachineExtensionImage extends Resource { supportsMultipleExtensions?: boolean; } +/** + * ExtendedLocation complex type. + */ +export interface ExtendedLocation { + /** + * The name of the extended location. + */ + name: string; +} + /** * Virtual machine image resource information. */ @@ -666,6 +676,10 @@ export interface VirtualMachineImageResource extends SubResource { * resources](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md). */ tags?: { [propertyName: string]: string }; + /** + * The extended location of the Virtual Machine. + */ + extendedLocation?: ExtendedLocation; } /** @@ -746,6 +760,68 @@ export interface VirtualMachineExtension extends Resource { instanceView?: VirtualMachineExtensionInstanceView; } +/** + * Describes a VMSS VM Extension. + */ +export interface VirtualMachineScaleSetVMExtension extends SubResourceReadOnly { + /** + * The name of the extension. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * How the extension handler should be forced to update even if the extension configuration has + * not changed. + */ + forceUpdateTag?: string; + /** + * The name of the extension handler publisher. + */ + publisher?: string; + /** + * Specifies the type of the extension; an example is "CustomScriptExtension". + */ + type1?: string; + /** + * Specifies the version of the script handler. + */ + typeHandlerVersion?: string; + /** + * Indicates whether the extension should use a newer minor version if one is available at + * deployment time. Once deployed, however, the extension will not upgrade minor versions unless + * redeployed, even with this property set to true. + */ + autoUpgradeMinorVersion?: boolean; + /** + * Indicates whether the extension should be automatically upgraded by the platform if there is a + * newer version of the extension available. + */ + enableAutomaticUpgrade?: boolean; + /** + * Json formatted public settings for the extension. + */ + settings?: any; + /** + * The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no + * protected settings at all. + */ + protectedSettings?: any; + /** + * The provisioning state, which only appears in the response. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * The virtual machine extension instance view. + */ + instanceView?: VirtualMachineExtensionInstanceView; +} + /** * Describes a Virtual Machine Extension. */ @@ -789,6 +865,59 @@ export interface VirtualMachineExtensionUpdate extends UpdateResource { protectedSettings?: any; } +/** + * Describes a VMSS VM Extension. + */ +export interface VirtualMachineScaleSetVMExtensionUpdate extends SubResourceReadOnly { + /** + * The name of the extension. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * How the extension handler should be forced to update even if the extension configuration has + * not changed. + */ + forceUpdateTag?: string; + /** + * The name of the extension handler publisher. + */ + publisher?: string; + /** + * Specifies the type of the extension; an example is "CustomScriptExtension". + */ + type1?: string; + /** + * Specifies the version of the script handler. + */ + typeHandlerVersion?: string; + /** + * Indicates whether the extension should use a newer minor version if one is available at + * deployment time. Once deployed, however, the extension will not upgrade minor versions unless + * redeployed, even with this property set to true. + */ + autoUpgradeMinorVersion?: boolean; + /** + * Indicates whether the extension should be automatically upgraded by the platform if there is a + * newer version of the extension available. + */ + enableAutomaticUpgrade?: boolean; + /** + * Json formatted public settings for the extension. + */ + settings?: any; + /** + * The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no + * protected settings at all. + */ + protectedSettings?: any; +} + /** * The List Extension operation response */ @@ -799,6 +928,16 @@ export interface VirtualMachineExtensionsListResult { value?: VirtualMachineExtension[]; } +/** + * The List VMSS VM Extension operation response + */ +export interface VirtualMachineScaleSetVMExtensionsListResult { + /** + * The list of VMSS VM extensions + */ + value?: VirtualMachineScaleSetVMExtension[]; +} + /** * Describes the properties of a Virtual Machine software patch. */ @@ -822,18 +961,18 @@ export interface VirtualMachineSoftwarePatchProperties { * The KBID of the patch. Only applies to Windows patches. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly kbid?: string; + readonly kbId?: string; /** * The classification(s) of the patch as provided by the patch publisher. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly classifications?: string[]; /** - * Describes the reboot requirements of the patch. Possible values include: 'NeverReboots', - * 'AlwaysRequiresReboot', 'CanRequestReboot' + * Describes the reboot requirements of the patch. Possible values include: 'Unknown', + * 'NeverReboots', 'AlwaysRequiresReboot', 'CanRequestReboot' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly rebootBehavior?: SoftwareUpdateRebootBehavior; + readonly rebootBehavior?: VMGuestPatchRebootBehavior; /** * The activity ID of the operation that produced this result. It is used to correlate across CRP * and extension logs. @@ -851,8 +990,7 @@ export interface VirtualMachineSoftwarePatchProperties { */ readonly lastModifiedDateTime?: Date; /** - * Describes the outcome of an install operation for a given patch. Possible values include: - * 'Installed', 'Failed', 'Excluded', 'NotSelected', 'Pending', 'Available' + * Describes the availability of a given patch. Possible values include: 'Unknown', 'Available' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly assessmentState?: PatchAssessmentState; @@ -922,9 +1060,9 @@ export interface ApiError { export interface VirtualMachineAssessPatchesResult { /** * The overall success or failure status of the operation. It remains "InProgress" until the - * operation completes. At that point it will become "Failed", "Succeeded", or - * "CompletedWithWarnings.". Possible values include: 'InProgress', 'Failed', 'Succeeded', - * 'CompletedWithWarnings' + * operation completes. At that point it will become "Unknown", "Failed", "Succeeded", or + * "CompletedWithWarnings.". Possible values include: 'Unknown', 'InProgress', 'Failed', + * 'Succeeded', 'CompletedWithWarnings' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly status?: PatchOperationStatus; @@ -960,7 +1098,7 @@ export interface VirtualMachineAssessPatchesResult { * The list of patches that have been detected as available for installation. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly patches?: VirtualMachineSoftwarePatchProperties[]; + readonly availablePatches?: VirtualMachineSoftwarePatchProperties[]; /** * The errors that were encountered during execution of the operation. The details array contains * the list of them. @@ -970,184 +1108,385 @@ export interface VirtualMachineAssessPatchesResult { } /** - * Used for establishing the purchase context of any 3rd Party artifact through MarketPlace. + * Input for InstallPatches on a Windows VM, as directly received by the API */ -export interface PurchasePlan { +export interface WindowsParameters { /** - * The publisher ID. - */ - publisher: string; - /** - * The plan ID. + * The update classifications to select when installing patches for Windows. */ - name: string; + classificationsToInclude?: VMGuestPatchClassificationWindows[]; /** - * Specifies the product of the image from the marketplace. This is the same value as Offer under - * the imageReference element. + * Kbs to include in the patch operation */ - product: string; -} - -/** - * Contains the os disk image information. - */ -export interface OSDiskImage { + kbNumbersToInclude?: string[]; /** - * The operating system of the osDiskImage. Possible values include: 'Windows', 'Linux' + * Kbs to exclude in the patch operation */ - operatingSystem: OperatingSystemTypes; -} - -/** - * Contains the data disk images information. - */ -export interface DataDiskImage { + kbNumbersToExclude?: string[]; /** - * Specifies the logical unit number of the data disk. This value is used to identify data disks - * within the VM and therefore must be unique for each data disk attached to a VM. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Filters out Kbs that don't have an InstallationRebootBehavior of 'NeverReboots' when this is + * set to true. */ - readonly lun?: number; -} - -/** - * Describes automatic OS upgrade properties on the image. - */ -export interface AutomaticOSUpgradeProperties { + excludeKbsRequiringReboot?: boolean; /** - * Specifies whether automatic OS upgrade is supported on the image. + * This is used to install patches that were published on or before this given max published + * date. */ - automaticOSUpgradeSupported: boolean; + maxPatchPublishDate?: Date; } /** - * Describes a Virtual Machine Image. + * Input for InstallPatches on a Linux VM, as directly received by the API */ -export interface VirtualMachineImage extends VirtualMachineImageResource { - plan?: PurchasePlan; - osDiskImage?: OSDiskImage; - dataDiskImages?: DataDiskImage[]; - automaticOSUpgradeProperties?: AutomaticOSUpgradeProperties; +export interface LinuxParameters { /** - * Possible values include: 'V1', 'V2' + * The update classifications to select when installing patches for Linux. */ - hyperVGeneration?: HyperVGenerationTypes; + classificationsToInclude?: VMGuestPatchClassificationLinux[]; /** - * Specifies disallowed configuration for the VirtualMachine created from the image + * packages to include in the patch operation. Format: packageName_packageVersion */ - disallowed?: DisallowedConfiguration; -} - -/** - * The Usage Names. - */ -export interface UsageName { + packageNameMasksToInclude?: string[]; /** - * The name of the resource. + * packages to exclude in the patch operation. Format: packageName_packageVersion */ - value?: string; + packageNameMasksToExclude?: string[]; /** - * The localized name of the resource. + * This is used as a maintenance run identifier for Auto VM Guest Patching in Linux. */ - localizedValue?: string; + maintenanceRunId?: string; } /** - * Describes Compute Resource Usage. + * Input for InstallPatches as directly received by the API */ -export interface Usage { +export interface VirtualMachineInstallPatchesParameters { /** - * The current usage of the resource. + * Specifies the maximum amount of time that the operation will run. It must be an ISO + * 8601-compliant duration string such as PT4H (4 hours) */ - currentValue: number; + maximumDuration: string; /** - * The maximum permitted usage of the resource. + * Defines when it is acceptable to reboot a VM during a software update operation. Possible + * values include: 'IfRequired', 'Never', 'Always' */ - limit: number; + rebootSetting: VMGuestPatchRebootSetting; /** - * The name of the type of usage. + * Input for InstallPatches on a Windows VM, as directly received by the API */ - name: UsageName; -} - -/** - * Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged - */ -export interface VirtualMachineReimageParameters { + windowsParameters?: WindowsParameters; /** - * Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage - * parameter is only supported for VM/VMSS with Ephemeral OS disk. + * Input for InstallPatches on a Linux VM, as directly received by the API */ - tempDisk?: boolean; + linuxParameters?: LinuxParameters; } /** - * Capture Virtual Machine parameters. + * Information about a specific patch that was encountered during an installation action. */ -export interface VirtualMachineCaptureParameters { - /** - * The captured virtual hard disk's name prefix. - */ - vhdPrefix: string; +export interface PatchInstallationDetail { /** - * The destination container name. + * A unique identifier for the patch. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - destinationContainerName: string; + readonly patchId?: string; /** - * Specifies whether to overwrite the destination virtual hard disk, in case of conflict. + * The friendly name of the patch. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - overwriteVhds: boolean; -} - -/** - * Output of virtual machine capture operation. - */ -export interface VirtualMachineCaptureResult extends SubResource { + readonly name?: string; /** - * the schema of the captured virtual machine + * The version string of the package. It may conform to Semantic Versioning. Only applies to + * Linux. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly schema?: string; + readonly version?: string; /** - * the version of the content + * The KBID of the patch. Only applies to Windows patches. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly contentVersion?: string; + readonly kbId?: string; /** - * parameters of the captured virtual machine + * The classification(s) of the patch as provided by the patch publisher. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly parameters?: any; + readonly classifications?: string[]; /** - * a list of resource items of the captured virtual machine + * The state of the patch after the installation operation completed. Possible values include: + * 'Unknown', 'Installed', 'Failed', 'Excluded', 'NotSelected', 'Pending' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly resources?: any[]; + readonly installationState?: PatchInstallationState; } /** - * Specifies information about the marketplace image used to create the virtual machine. This - * element is only used for marketplace images. Before you can use a marketplace image from an API, - * you must enable the image for programmatic use. In the Azure portal, find the marketplace image - * that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter - * any required information and then click **Save**. + * The result summary of an installation operation. */ -export interface Plan { +export interface VirtualMachineInstallPatchesResult { /** - * The plan ID. + * The overall success or failure status of the operation. It remains "InProgress" until the + * operation completes. At that point it will become "Failed", "Succeeded", "Unknown" or + * "CompletedWithWarnings.". Possible values include: 'Unknown', 'InProgress', 'Failed', + * 'Succeeded', 'CompletedWithWarnings' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - name?: string; + readonly status?: PatchOperationStatus; /** - * The publisher ID. + * The activity ID of the operation that produced this result. It is used to correlate across CRP + * and extension logs. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - publisher?: string; + readonly installationActivityId?: string; /** - * Specifies the product of the image from the marketplace. This is the same value as Offer under - * the imageReference element. + * The reboot state of the VM following completion of the operation. Possible values include: + * 'Unknown', 'NotNeeded', 'Required', 'Started', 'Failed', 'Completed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - product?: string; + readonly rebootStatus?: VMGuestPatchRebootStatus; /** - * The promotion code. + * Whether the operation ran out of time before it completed all its intended actions. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly maintenanceWindowExceeded?: boolean; + /** + * The number of patches that were not installed due to the user blocking their installation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly excludedPatchCount?: number; + /** + * The number of patches that were detected as available for install, but did not meet the + * operation's criteria. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly notSelectedPatchCount?: number; + /** + * The number of patches that were identified as meeting the installation criteria, but were not + * able to be installed. Typically this happens when maintenanceWindowExceeded == true. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly pendingPatchCount?: number; + /** + * The number of patches successfully installed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly installedPatchCount?: number; + /** + * The number of patches that could not be installed due to some issue. See errors for details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly failedPatchCount?: number; + /** + * The patches that were installed during the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly patches?: PatchInstallationDetail[]; + /** + * The UTC timestamp when the operation began. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly startDateTime?: Date; + /** + * The errors that were encountered during execution of the operation. The details array contains + * the list of them. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly error?: ApiError; +} + +/** + * Used for establishing the purchase context of any 3rd Party artifact through MarketPlace. + */ +export interface PurchasePlan { + /** + * The publisher ID. + */ + publisher: string; + /** + * The plan ID. + */ + name: string; + /** + * Specifies the product of the image from the marketplace. This is the same value as Offer under + * the imageReference element. + */ + product: string; +} + +/** + * Contains the os disk image information. + */ +export interface OSDiskImage { + /** + * The operating system of the osDiskImage. Possible values include: 'Windows', 'Linux' + */ + operatingSystem: OperatingSystemTypes; +} + +/** + * Contains the data disk images information. + */ +export interface DataDiskImage { + /** + * Specifies the logical unit number of the data disk. This value is used to identify data disks + * within the VM and therefore must be unique for each data disk attached to a VM. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lun?: number; +} + +/** + * Describes automatic OS upgrade properties on the image. + */ +export interface AutomaticOSUpgradeProperties { + /** + * Specifies whether automatic OS upgrade is supported on the image. + */ + automaticOSUpgradeSupported: boolean; +} + +/** + * Specifies additional capabilities supported by the image + */ +export interface VirtualMachineImageFeature { + /** + * The name of the feature. + */ + name?: string; + /** + * The corresponding value for the feature. + */ + value?: string; +} + +/** + * Describes a Virtual Machine Image. + */ +export interface VirtualMachineImage extends VirtualMachineImageResource { + plan?: PurchasePlan; + osDiskImage?: OSDiskImage; + dataDiskImages?: DataDiskImage[]; + automaticOSUpgradeProperties?: AutomaticOSUpgradeProperties; + /** + * Possible values include: 'V1', 'V2' + */ + hyperVGeneration?: HyperVGenerationTypes; + /** + * Specifies disallowed configuration for the VirtualMachine created from the image + */ + disallowed?: DisallowedConfiguration; + features?: VirtualMachineImageFeature[]; +} + +/** + * The Usage Names. + */ +export interface UsageName { + /** + * The name of the resource. + */ + value?: string; + /** + * The localized name of the resource. + */ + localizedValue?: string; +} + +/** + * Describes Compute Resource Usage. + */ +export interface Usage { + /** + * The current usage of the resource. + */ + currentValue: number; + /** + * The maximum permitted usage of the resource. + */ + limit: number; + /** + * The name of the type of usage. + */ + name: UsageName; +} + +/** + * Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged + */ +export interface VirtualMachineReimageParameters { + /** + * Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage + * parameter is only supported for VM/VMSS with Ephemeral OS disk. + */ + tempDisk?: boolean; +} + +/** + * Capture Virtual Machine parameters. + */ +export interface VirtualMachineCaptureParameters { + /** + * The captured virtual hard disk's name prefix. + */ + vhdPrefix: string; + /** + * The destination container name. + */ + destinationContainerName: string; + /** + * Specifies whether to overwrite the destination virtual hard disk, in case of conflict. + */ + overwriteVhds: boolean; +} + +/** + * Output of virtual machine capture operation. + */ +export interface VirtualMachineCaptureResult extends SubResource { + /** + * the schema of the captured virtual machine + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly schema?: string; + /** + * the version of the content + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly contentVersion?: string; + /** + * parameters of the captured virtual machine + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly parameters?: any; + /** + * a list of resource items of the captured virtual machine + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resources?: any[]; +} + +/** + * Specifies information about the marketplace image used to create the virtual machine. This + * element is only used for marketplace images. Before you can use a marketplace image from an API, + * you must enable the image for programmatic use. In the Azure portal, find the marketplace image + * that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter + * any required information and then click **Save**. + */ +export interface Plan { + /** + * The plan ID. + */ + name?: string; + /** + * The publisher ID. + */ + publisher?: string; + /** + * Specifies the product of the image from the marketplace. This is the same value as Offer under + * the imageReference element. + */ + product?: string; + /** + * The promotion code. */ promotionCode?: string; } @@ -1157,51 +1496,52 @@ export interface Plan { */ export interface HardwareProfile { /** - * Specifies the size of the virtual machine. For more information about virtual machine sizes, - * see [Sizes for virtual - * machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-sizes?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). - *

The available VM sizes depend on region and availability set. For a list of available - * sizes use these APIs:

[List all available virtual machine sizes in an availability + * Specifies the size of the virtual machine.

The enum data type is currently deprecated + * and will be removed by December 23rd 2023.

Recommended way to get the list of + * available sizes is using these APIs:

[List all available virtual machine sizes in an + * availability * set](https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes)

- * [List all available virtual machine sizes in a - * region](https://docs.microsoft.com/rest/api/compute/virtualmachinesizes/list)

[List - * all available virtual machine sizes for - * resizing](https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes). - * Possible values include: 'Basic_A0', 'Basic_A1', 'Basic_A2', 'Basic_A3', 'Basic_A4', - * 'Standard_A0', 'Standard_A1', 'Standard_A2', 'Standard_A3', 'Standard_A4', 'Standard_A5', - * 'Standard_A6', 'Standard_A7', 'Standard_A8', 'Standard_A9', 'Standard_A10', 'Standard_A11', - * 'Standard_A1_v2', 'Standard_A2_v2', 'Standard_A4_v2', 'Standard_A8_v2', 'Standard_A2m_v2', - * 'Standard_A4m_v2', 'Standard_A8m_v2', 'Standard_B1s', 'Standard_B1ms', 'Standard_B2s', - * 'Standard_B2ms', 'Standard_B4ms', 'Standard_B8ms', 'Standard_D1', 'Standard_D2', - * 'Standard_D3', 'Standard_D4', 'Standard_D11', 'Standard_D12', 'Standard_D13', 'Standard_D14', - * 'Standard_D1_v2', 'Standard_D2_v2', 'Standard_D3_v2', 'Standard_D4_v2', 'Standard_D5_v2', - * 'Standard_D2_v3', 'Standard_D4_v3', 'Standard_D8_v3', 'Standard_D16_v3', 'Standard_D32_v3', - * 'Standard_D64_v3', 'Standard_D2s_v3', 'Standard_D4s_v3', 'Standard_D8s_v3', - * 'Standard_D16s_v3', 'Standard_D32s_v3', 'Standard_D64s_v3', 'Standard_D11_v2', - * 'Standard_D12_v2', 'Standard_D13_v2', 'Standard_D14_v2', 'Standard_D15_v2', 'Standard_DS1', - * 'Standard_DS2', 'Standard_DS3', 'Standard_DS4', 'Standard_DS11', 'Standard_DS12', - * 'Standard_DS13', 'Standard_DS14', 'Standard_DS1_v2', 'Standard_DS2_v2', 'Standard_DS3_v2', - * 'Standard_DS4_v2', 'Standard_DS5_v2', 'Standard_DS11_v2', 'Standard_DS12_v2', - * 'Standard_DS13_v2', 'Standard_DS14_v2', 'Standard_DS15_v2', 'Standard_DS13-4_v2', - * 'Standard_DS13-2_v2', 'Standard_DS14-8_v2', 'Standard_DS14-4_v2', 'Standard_E2_v3', - * 'Standard_E4_v3', 'Standard_E8_v3', 'Standard_E16_v3', 'Standard_E32_v3', 'Standard_E64_v3', - * 'Standard_E2s_v3', 'Standard_E4s_v3', 'Standard_E8s_v3', 'Standard_E16s_v3', - * 'Standard_E32s_v3', 'Standard_E64s_v3', 'Standard_E32-16_v3', 'Standard_E32-8s_v3', - * 'Standard_E64-32s_v3', 'Standard_E64-16s_v3', 'Standard_F1', 'Standard_F2', 'Standard_F4', - * 'Standard_F8', 'Standard_F16', 'Standard_F1s', 'Standard_F2s', 'Standard_F4s', 'Standard_F8s', - * 'Standard_F16s', 'Standard_F2s_v2', 'Standard_F4s_v2', 'Standard_F8s_v2', 'Standard_F16s_v2', - * 'Standard_F32s_v2', 'Standard_F64s_v2', 'Standard_F72s_v2', 'Standard_G1', 'Standard_G2', - * 'Standard_G3', 'Standard_G4', 'Standard_G5', 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', - * 'Standard_GS4', 'Standard_GS5', 'Standard_GS4-8', 'Standard_GS4-4', 'Standard_GS5-16', - * 'Standard_GS5-8', 'Standard_H8', 'Standard_H16', 'Standard_H8m', 'Standard_H16m', - * 'Standard_H16r', 'Standard_H16mr', 'Standard_L4s', 'Standard_L8s', 'Standard_L16s', - * 'Standard_L32s', 'Standard_M64s', 'Standard_M64ms', 'Standard_M128s', 'Standard_M128ms', - * 'Standard_M64-32ms', 'Standard_M64-16ms', 'Standard_M128-64ms', 'Standard_M128-32ms', - * 'Standard_NC6', 'Standard_NC12', 'Standard_NC24', 'Standard_NC24r', 'Standard_NC6s_v2', - * 'Standard_NC12s_v2', 'Standard_NC24s_v2', 'Standard_NC24rs_v2', 'Standard_NC6s_v3', - * 'Standard_NC12s_v3', 'Standard_NC24s_v3', 'Standard_NC24rs_v3', 'Standard_ND6s', - * 'Standard_ND12s', 'Standard_ND24s', 'Standard_ND24rs', 'Standard_NV6', 'Standard_NV12', - * 'Standard_NV24' + * [List all available virtual machine sizes in a region]( + * https://docs.microsoft.com/en-us/rest/api/compute/resourceskus/list)

[List all + * available virtual machine sizes for + * resizing](https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes). For + * more information about virtual machine sizes, see [Sizes for virtual + * machines](https://docs.microsoft.com/en-us/azure/virtual-machines/sizes).

The + * available VM sizes depend on region and availability set. Possible values include: 'Basic_A0', + * 'Basic_A1', 'Basic_A2', 'Basic_A3', 'Basic_A4', 'Standard_A0', 'Standard_A1', 'Standard_A2', + * 'Standard_A3', 'Standard_A4', 'Standard_A5', 'Standard_A6', 'Standard_A7', 'Standard_A8', + * 'Standard_A9', 'Standard_A10', 'Standard_A11', 'Standard_A1_v2', 'Standard_A2_v2', + * 'Standard_A4_v2', 'Standard_A8_v2', 'Standard_A2m_v2', 'Standard_A4m_v2', 'Standard_A8m_v2', + * 'Standard_B1s', 'Standard_B1ms', 'Standard_B2s', 'Standard_B2ms', 'Standard_B4ms', + * 'Standard_B8ms', 'Standard_D1', 'Standard_D2', 'Standard_D3', 'Standard_D4', 'Standard_D11', + * 'Standard_D12', 'Standard_D13', 'Standard_D14', 'Standard_D1_v2', 'Standard_D2_v2', + * 'Standard_D3_v2', 'Standard_D4_v2', 'Standard_D5_v2', 'Standard_D2_v3', 'Standard_D4_v3', + * 'Standard_D8_v3', 'Standard_D16_v3', 'Standard_D32_v3', 'Standard_D64_v3', 'Standard_D2s_v3', + * 'Standard_D4s_v3', 'Standard_D8s_v3', 'Standard_D16s_v3', 'Standard_D32s_v3', + * 'Standard_D64s_v3', 'Standard_D11_v2', 'Standard_D12_v2', 'Standard_D13_v2', + * 'Standard_D14_v2', 'Standard_D15_v2', 'Standard_DS1', 'Standard_DS2', 'Standard_DS3', + * 'Standard_DS4', 'Standard_DS11', 'Standard_DS12', 'Standard_DS13', 'Standard_DS14', + * 'Standard_DS1_v2', 'Standard_DS2_v2', 'Standard_DS3_v2', 'Standard_DS4_v2', 'Standard_DS5_v2', + * 'Standard_DS11_v2', 'Standard_DS12_v2', 'Standard_DS13_v2', 'Standard_DS14_v2', + * 'Standard_DS15_v2', 'Standard_DS13-4_v2', 'Standard_DS13-2_v2', 'Standard_DS14-8_v2', + * 'Standard_DS14-4_v2', 'Standard_E2_v3', 'Standard_E4_v3', 'Standard_E8_v3', 'Standard_E16_v3', + * 'Standard_E32_v3', 'Standard_E64_v3', 'Standard_E2s_v3', 'Standard_E4s_v3', 'Standard_E8s_v3', + * 'Standard_E16s_v3', 'Standard_E32s_v3', 'Standard_E64s_v3', 'Standard_E32-16_v3', + * 'Standard_E32-8s_v3', 'Standard_E64-32s_v3', 'Standard_E64-16s_v3', 'Standard_F1', + * 'Standard_F2', 'Standard_F4', 'Standard_F8', 'Standard_F16', 'Standard_F1s', 'Standard_F2s', + * 'Standard_F4s', 'Standard_F8s', 'Standard_F16s', 'Standard_F2s_v2', 'Standard_F4s_v2', + * 'Standard_F8s_v2', 'Standard_F16s_v2', 'Standard_F32s_v2', 'Standard_F64s_v2', + * 'Standard_F72s_v2', 'Standard_G1', 'Standard_G2', 'Standard_G3', 'Standard_G4', 'Standard_G5', + * 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', 'Standard_GS5', + * 'Standard_GS4-8', 'Standard_GS4-4', 'Standard_GS5-16', 'Standard_GS5-8', 'Standard_H8', + * 'Standard_H16', 'Standard_H8m', 'Standard_H16m', 'Standard_H16r', 'Standard_H16mr', + * 'Standard_L4s', 'Standard_L8s', 'Standard_L16s', 'Standard_L32s', 'Standard_M64s', + * 'Standard_M64ms', 'Standard_M128s', 'Standard_M128ms', 'Standard_M64-32ms', + * 'Standard_M64-16ms', 'Standard_M128-64ms', 'Standard_M128-32ms', 'Standard_NC6', + * 'Standard_NC12', 'Standard_NC24', 'Standard_NC24r', 'Standard_NC6s_v2', 'Standard_NC12s_v2', + * 'Standard_NC24s_v2', 'Standard_NC24rs_v2', 'Standard_NC6s_v3', 'Standard_NC12s_v3', + * 'Standard_NC24s_v3', 'Standard_NC24rs_v3', 'Standard_ND6s', 'Standard_ND12s', + * 'Standard_ND24s', 'Standard_ND24rs', 'Standard_NV6', 'Standard_NV12', 'Standard_NV24' */ vmSize?: VirtualMachineSizeTypes; } @@ -1469,6 +1809,18 @@ export interface DataDisk { * VirtualMachine/VirtualMachineScaleset */ toBeDetached?: boolean; + /** + * Specifies the detach behavior to be used while detaching a disk or which is already in the + * process of detachment from the virtual machine. Supported values: **ForceDetach**.

+ * detachOption: **ForceDetach** is applicable only for managed data disks. If a previous + * detachment attempt of the data disk did not complete due to an unexpected failure from the + * virtual machine and the disk is still not released then use force-detach as a last resort + * option to detach the disk forcibly from the VM. All writes might not have been flushed when + * using this detach behavior.

This feature is still in preview mode and is not + * supported for VirtualMachineScaleSet. To force-detach a data disk update toBeDetached to + * 'true' along with setting detachOption: 'ForceDetach'. Possible values include: 'ForceDetach' + */ + detachOption?: DiskDetachOptionTypes; /** * Specifies the Read-Write IOPS for the managed disk when StorageAccountType is UltraSSD_LRS. * Returned only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the @@ -1510,10 +1862,32 @@ export interface StorageProfile { dataDisks?: DataDisk[]; } +/** + * Specifies the security settings like secure boot and vTPM used while creating the virtual + * machine.

Minimum api-version: 2020-12-01 + */ +export interface UefiSettings { + /** + * Specifies whether secure boot should be enabled on the virtual machine.

Minimum + * api-version: 2020-12-01 + */ + secureBootEnabled?: boolean; + /** + * Specifies whether vTPM should be enabled on the virtual machine.

Minimum api-version: + * 2020-12-01 + */ + vTpmEnabled?: boolean; +} + /** * Specifies the Security profile settings for the virtual machine or virtual machine scale set. */ export interface SecurityProfile { + /** + * Specifies the security settings like secure boot and vTPM used while creating the virtual + * machine.

Minimum api-version: 2020-12-01 + */ + uefiSettings?: UefiSettings; /** * This property can be used by user in the request to enable or disable the Host Encryption for * the virtual machine or virtual machine scale set. This will enable the encryption for all the @@ -1521,6 +1895,12 @@ export interface SecurityProfile { * will be disabled unless this property is set to true for the resource. */ encryptionAtHost?: boolean; + /** + * Specifies the SecurityType of the virtual machine. It is set as TrustedLaunch to enable + * UefiSettings.

Default: UefiSettings will not be enabled unless this property is set + * as TrustedLaunch. Possible values include: 'TrustedLaunch' + */ + securityType?: SecurityTypes; } /** @@ -1596,11 +1976,11 @@ export interface WinRMConfiguration { } /** - * An interface representing PatchSettings. + * Specifies settings related to VM Guest Patching on Windows. */ export interface PatchSettings { /** - * Specifies the mode of in-guest patching to IaaS virtual machine.

Possible values + * Specifies the mode of VM Guest Patching to IaaS virtual machine.

Possible values * are:

**Manual** - You control the application of patches to a virtual machine. * You do this by applying patches manually inside the VM. In this mode, automatic updates are * disabled; the property WindowsConfiguration.enableAutomaticUpdates must be false

@@ -1610,7 +1990,13 @@ export interface PatchSettings { * properties provisionVMAgent and WindowsConfiguration.enableAutomaticUpdates must be true. * Possible values include: 'Manual', 'AutomaticByOS', 'AutomaticByPlatform' */ - patchMode?: InGuestPatchMode; + patchMode?: WindowsVMGuestPatchMode; + /** + * Enables customers to patch their Azure VMs without requiring a reboot. For enableHotpatching, + * the 'provisionVMAgent' must be set to true and 'patchMode' must be set to + * 'AutomaticByPlatform'. + */ + enableHotpatching?: boolean; } /** @@ -1644,7 +2030,7 @@ export interface WindowsConfiguration { */ additionalUnattendContent?: AdditionalUnattendContent[]; /** - * Specifies settings related to in-guest patching (KBs). + * [Preview Feature] Specifies settings related to VM Guest Patching on Windows. */ patchSettings?: PatchSettings; /** @@ -1682,6 +2068,20 @@ export interface SshConfiguration { publicKeys?: SshPublicKey[]; } +/** + * Specifies settings related to VM Guest Patching on Linux. + */ +export interface LinuxPatchSettings { + /** + * Specifies the mode of VM Guest Patching to IaaS virtual machine.

Possible values + * are:

**ImageDefault** - The virtual machine's default patching configuration is + * used.

**AutomaticByPlatform** - The virtual machine will be automatically updated + * by the platform. The property provisionVMAgent must be true. Possible values include: + * 'ImageDefault', 'AutomaticByPlatform' + */ + patchMode?: LinuxVMGuestPatchMode; +} + /** * Specifies the Linux operating system settings on the virtual machine.

For a list of * supported Linux distributions, see [Linux on Azure-Endorsed @@ -1705,6 +2105,10 @@ export interface LinuxConfiguration { * to the VM later. */ provisionVMAgent?: boolean; + /** + * [Preview Feature] Specifies settings related to VM Guest Patching on Linux. + */ + patchSettings?: LinuxPatchSettings; } /** @@ -2099,9 +2503,9 @@ export interface VirtualMachineHealthStatus { export interface AvailablePatchSummary { /** * The overall success or failure status of the operation. It remains "InProgress" until the - * operation completes. At that point it will become "Failed", "Succeeded", or - * "CompletedWithWarnings.". Possible values include: 'InProgress', 'Failed', 'Succeeded', - * 'CompletedWithWarnings' + * operation completes. At that point it will become "Unknown", "Failed", "Succeeded", or + * "CompletedWithWarnings.". Possible values include: 'Unknown', 'InProgress', 'Failed', + * 'Succeeded', 'CompletedWithWarnings' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly status?: PatchOperationStatus; @@ -2152,9 +2556,9 @@ export interface AvailablePatchSummary { export interface LastPatchInstallationSummary { /** * The overall success or failure status of the operation. It remains "InProgress" until the - * operation completes. At that point it will become "Failed", "Succeeded", or - * "CompletedWithWarnings.". Possible values include: 'InProgress', 'Failed', 'Succeeded', - * 'CompletedWithWarnings' + * operation completes. At that point it will become "Unknown", "Failed", "Succeeded", or + * "CompletedWithWarnings.". Possible values include: 'Unknown', 'InProgress', 'Failed', + * 'Succeeded', 'CompletedWithWarnings' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly status?: PatchOperationStatus; @@ -2169,16 +2573,6 @@ export interface LastPatchInstallationSummary { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly maintenanceWindowExceeded?: boolean; - /** - * The reboot status of the machine after the patch operation. It will be in "NotNeeded" status - * if reboot is not needed after the patch operation. "Required" will be the status once the - * patch is applied and machine is required to reboot. "Started" will be the reboot status when - * the machine has started to reboot. "Failed" will be the status if the machine is failed to - * reboot. "Completed" will be the status once the machine is rebooted successfully. Possible - * values include: 'NotNeeded', 'Required', 'Started', 'Failed', 'Completed' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly rebootStatus?: RebootStatus; /** * The number of all available patches but not going to be installed because it didn't match a * classification or inclusion list entry. @@ -2217,11 +2611,6 @@ export interface LastPatchInstallationSummary { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly lastModifiedTime?: Date; - /** - * The person or system account that started the operation - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly startedBy?: string; /** * The errors that were encountered during execution of the operation. The details array contains * the list of them. @@ -2242,6 +2631,11 @@ export interface VirtualMachinePatchStatus { * The installation summary of the latest installation operation for the virtual machine. */ lastPatchInstallationSummary?: LastPatchInstallationSummary; + /** + * The enablement status of the specified patchMode + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly configurationStatuses?: InstanceViewStatus[]; } /** @@ -2316,7 +2710,7 @@ export interface VirtualMachineInstanceView { */ statuses?: InstanceViewStatus[]; /** - * The status of virtual machine patch operations. + * [Preview Feature] The status of virtual machine patch operations. */ patchStatus?: VirtualMachinePatchStatus; } @@ -2391,6 +2785,16 @@ export interface VirtualMachine extends Resource { * assigned to.

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.
  • This is applicable only if the + * 'virtualMachineScaleSet' property of this Virtual Machine is set.
  • The Virtual Machine Scale + * Set that is referenced, must have 'platformFaultDomainCount' > 1.
  • This property cannot + * be updated once the Virtual Machine is created.
  • Fault domain assignment can be viewed in + * the Virtual Machine Instance View.

    Minimum api‐version: 2020‐12‐01 + */ + platformFaultDomain?: number; /** * Specifies the priority for the virtual machine.

    Minimum api-version: 2019-03-01. * Possible values include: 'Regular', 'Low', 'Spot' @@ -2431,12 +2835,14 @@ export interface VirtualMachine extends Resource { */ readonly instanceView?: VirtualMachineInstanceView; /** - * Specifies that the image or disk that is being used was licensed on-premises. This element is - * only used for images that contain the Windows Server operating system.

    Possible - * values are:

    Windows_Client

    Windows_Server

    If this element is - * included in a request for an update, the value must match the initial value. This value cannot - * be updated.

    For more information, see [Azure Hybrid Use Benefit for Windows - * Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) + * Specifies that the image or disk that is being used was licensed on-premises.

    + * Possible values for Windows Server operating system are:

    Windows_Client

    + * Windows_Server

    Possible values for Linux Server operating system are:

    + * RHEL_BYOS (for RHEL)

    SLES_BYOS (for SUSE)

    For more information, see [Azure + * Hybrid Use Benefit for Windows + * Server](https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing) + *

    [Azure Hybrid Use Benefit for Linux + * Server](https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux) *

    Minimum api-version: 2015-06-15 */ licenseType?: string; @@ -2465,6 +2871,10 @@ export interface VirtualMachine extends Resource { * The virtual machine zones. */ zones?: string[]; + /** + * The extended location of the Virtual Machine. + */ + extendedLocation?: ExtendedLocation; } /** @@ -2537,6 +2947,16 @@ export interface VirtualMachineUpdate extends UpdateResource { * assigned to.

    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.
  • This is applicable only if the + * 'virtualMachineScaleSet' property of this Virtual Machine is set.
  • The Virtual Machine Scale + * Set that is referenced, must have 'platformFaultDomainCount' > 1.
  • This property cannot + * be updated once the Virtual Machine is created.
  • Fault domain assignment can be viewed in + * the Virtual Machine Instance View.

    Minimum api‐version: 2020‐12‐01 + */ + platformFaultDomain?: number; /** * Specifies the priority for the virtual machine.

    Minimum api-version: 2019-03-01. * Possible values include: 'Regular', 'Low', 'Spot' @@ -2577,12 +2997,14 @@ export interface VirtualMachineUpdate extends UpdateResource { */ readonly instanceView?: VirtualMachineInstanceView; /** - * Specifies that the image or disk that is being used was licensed on-premises. This element is - * only used for images that contain the Windows Server operating system.

    Possible - * values are:

    Windows_Client

    Windows_Server

    If this element is - * included in a request for an update, the value must match the initial value. This value cannot - * be updated.

    For more information, see [Azure Hybrid Use Benefit for Windows - * Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) + * Specifies that the image or disk that is being used was licensed on-premises.

    + * Possible values for Windows Server operating system are:

    Windows_Client

    + * Windows_Server

    Possible values for Linux Server operating system are:

    + * RHEL_BYOS (for RHEL)

    SLES_BYOS (for SUSE)

    For more information, see [Azure + * Hybrid Use Benefit for Windows + * Server](https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing) + *

    [Azure Hybrid Use Benefit for Linux + * Server](https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux) *

    Minimum api-version: 2015-06-15 */ licenseType?: string; @@ -2657,6 +3079,15 @@ export interface RollingUpgradePolicy { * 0 seconds (PT0S). */ pauseTimeBetweenBatches?: string; + /** + * Allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration + * the Update Domain and maxBatchInstancePercent to determine the batch size. + */ + enableCrossZoneUpgrade?: boolean; + /** + * Upgrade all unhealthy instances in a scale set before any healthy instances. + */ + prioritizeUnhealthyInstances?: boolean; } /** @@ -2816,6 +3247,10 @@ export interface Image extends Resource { * include: 'V1', 'V2' */ hyperVGeneration?: HyperVGenerationTypes; + /** + * The extended location of the Image. + */ + extendedLocation?: ExtendedLocation; } /** @@ -3672,12 +4107,14 @@ export interface VirtualMachineScaleSetVMProfile { */ extensionProfile?: VirtualMachineScaleSetExtensionProfile; /** - * Specifies that the image or disk that is being used was licensed on-premises. This element is - * only used for images that contain the Windows Server operating system.

    Possible - * values are:

    Windows_Client

    Windows_Server

    If this element is - * included in a request for an update, the value must match the initial value. This value cannot - * be updated.

    For more information, see [Azure Hybrid Use Benefit for Windows - * Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) + * Specifies that the image or disk that is being used was licensed on-premises.

    + * Possible values for Windows Server operating system are:

    Windows_Client

    + * Windows_Server

    Possible values for Linux Server operating system are:

    + * RHEL_BYOS (for RHEL)

    SLES_BYOS (for SUSE)

    For more information, see [Azure + * Hybrid Use Benefit for Windows + * Server](https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing) + *

    [Azure Hybrid Use Benefit for Linux + * Server](https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux) *

    Minimum api-version: 2015-06-15 */ licenseType?: string; @@ -3832,6 +4269,11 @@ export interface VirtualMachineScaleSet extends Resource { * a Virtual Machine Scale Set is scaled-in. */ scaleInPolicy?: ScaleInPolicy; + /** + * Specifies the orchestration mode for the virtual machine scale set. Possible values include: + * 'Uniform', 'Flexible' + */ + orchestrationMode?: OrchestrationMode; /** * The identity of the virtual machine scale set, if configured. */ @@ -3841,6 +4283,10 @@ export interface VirtualMachineScaleSet extends Resource { * the scale set */ zones?: string[]; + /** + * The extended location of the Virtual Machine Scale Set. + */ + extendedLocation?: ExtendedLocation; } /** @@ -4373,12 +4819,14 @@ export interface VirtualMachineScaleSetVM extends Resource { */ readonly provisioningState?: string; /** - * Specifies that the image or disk that is being used was licensed on-premises. This element is - * only used for images that contain the Windows Server operating system.

    Possible - * values are:

    Windows_Client

    Windows_Server

    If this element is - * included in a request for an update, the value must match the initial value. This value cannot - * be updated.

    For more information, see [Azure Hybrid Use Benefit for Windows - * Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) + * Specifies that the image or disk that is being used was licensed on-premises.

    + * Possible values for Windows Server operating system are:

    Windows_Client

    + * Windows_Server

    Possible values for Linux Server operating system are:

    + * RHEL_BYOS (for RHEL)

    SLES_BYOS (for SUSE)

    For more information, see [Azure + * Hybrid Use Benefit for Windows + * Server](https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing) + *

    [Azure Hybrid Use Benefit for Linux + * Server](https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux) *

    Minimum api-version: 2015-06-15 */ licenseType?: string; @@ -4510,6 +4958,14 @@ export interface LogAnalyticsInputBase { * Group query result by Resource Name. */ groupByResourceName?: boolean; + /** + * Group query result by Client Application ID. + */ + groupByClientApplicationId?: boolean; + /** + * Group query result by User Agent. + */ + groupByUserAgent?: boolean; } /** @@ -4683,6 +5139,169 @@ export interface RunCommandResult { value?: InstanceViewStatus[]; } +/** + * The instance view of a virtual machine run command. + */ +export interface VirtualMachineRunCommandInstanceView { + /** + * Script execution status. Possible values include: 'Unknown', 'Pending', 'Running', 'Failed', + * 'Succeeded', 'TimedOut', 'Canceled' + */ + executionState?: ExecutionState; + /** + * Communicate script configuration errors or execution messages. + */ + executionMessage?: string; + /** + * Exit code returned from script execution. + */ + exitCode?: number; + /** + * Script output stream. + */ + output?: string; + /** + * Script error stream. + */ + error?: string; + /** + * Script start time. + */ + startTime?: Date; + /** + * Script end time. + */ + endTime?: Date; + /** + * The resource status information. + */ + statuses?: InstanceViewStatus[]; +} + +/** + * Describes the script sources for run command. + */ +export interface VirtualMachineRunCommandScriptSource { + /** + * Specifies the script content to be executed on the VM. + */ + script?: string; + /** + * Specifies the script download location. + */ + scriptUri?: string; + /** + * Specifies a commandId of predefined built-in script. + */ + commandId?: string; +} + +/** + * Describes a Virtual Machine run command. + */ +export interface VirtualMachineRunCommand extends Resource { + /** + * The source of the run command script. + */ + source?: VirtualMachineRunCommandScriptSource; + /** + * The parameters used by the script. + */ + parameters?: RunCommandInputParameter[]; + /** + * The parameters used by the script. + */ + protectedParameters?: RunCommandInputParameter[]; + /** + * Optional. If set to true, provisioning will complete as soon as the script starts and will not + * wait for script to complete. Default value: false. + */ + asyncExecution?: boolean; + /** + * Specifies the user account on the VM when executing the run command. + */ + runAsUser?: string; + /** + * Specifies the user account password on the VM when executing the run command. + */ + runAsPassword?: string; + /** + * The timeout in seconds to execute the run command. + */ + timeoutInSeconds?: number; + /** + * Specifies the Azure storage blob where script output stream will be uploaded. + */ + outputBlobUri?: string; + /** + * Specifies the Azure storage blob where script error stream will be uploaded. + */ + errorBlobUri?: string; + /** + * The provisioning state, which only appears in the response. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * The virtual machine run command instance view. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly instanceView?: VirtualMachineRunCommandInstanceView; +} + +/** + * Describes a Virtual Machine run command. + */ +export interface VirtualMachineRunCommandUpdate extends UpdateResource { + /** + * The source of the run command script. + */ + source?: VirtualMachineRunCommandScriptSource; + /** + * The parameters used by the script. + */ + parameters?: RunCommandInputParameter[]; + /** + * The parameters used by the script. + */ + protectedParameters?: RunCommandInputParameter[]; + /** + * Optional. If set to true, provisioning will complete as soon as the script starts and will not + * wait for script to complete. Default value: false. + */ + asyncExecution?: boolean; + /** + * Specifies the user account on the VM when executing the run command. + */ + runAsUser?: string; + /** + * Specifies the user account password on the VM when executing the run command. + */ + runAsPassword?: string; + /** + * The timeout in seconds to execute the run command. + */ + timeoutInSeconds?: number; + /** + * Specifies the Azure storage blob where script output stream will be uploaded. + */ + outputBlobUri?: string; + /** + * Specifies the Azure storage blob where script error stream will be uploaded. + */ + errorBlobUri?: string; + /** + * The provisioning state, which only appears in the response. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * The virtual machine run command instance view. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly instanceView?: VirtualMachineRunCommandInstanceView; +} + /** * Describes scaling information of a SKU. */ @@ -6295,219 +6914,19 @@ export interface GalleryArtifactSource { } /** - * Properties to configure a custom container service cluster. - */ -export interface ContainerServiceCustomProfile { - /** - * The name of the custom orchestrator to use. - */ - orchestrator: string; -} - -/** - * Information about a service principal identity for the cluster to use for manipulating Azure - * APIs. - */ -export interface ContainerServiceServicePrincipalProfile { - /** - * The ID for the service principal. - */ - clientId: string; - /** - * The secret password associated with the service principal. - */ - secret: string; -} - -/** - * Profile for the container service orchestrator. - */ -export interface ContainerServiceOrchestratorProfile { - /** - * The orchestrator to use to manage container service cluster resources. Valid values are Swarm, - * DCOS, and Custom. Possible values include: 'Swarm', 'DCOS', 'Custom', 'Kubernetes' - */ - orchestratorType: ContainerServiceOrchestratorTypes; -} - -/** - * Profile for the container service master. - */ -export interface ContainerServiceMasterProfile { - /** - * Number of masters (VMs) in the container service cluster. Allowed values are 1, 3, and 5. The - * default value is 1. Default value: 1. - */ - count?: number; - /** - * DNS prefix to be used to create the FQDN for master. - */ - dnsPrefix: string; - /** - * FQDN for the master. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly fqdn?: string; -} - -/** - * Profile for the container service agent pool. - */ -export interface ContainerServiceAgentPoolProfile { - /** - * Unique name of the agent pool profile in the context of the subscription and resource group. - */ - name: string; - /** - * Number of agents (VMs) to host docker containers. Allowed values must be in the range of 1 to - * 100 (inclusive). The default value is 1. Default value: 1. - */ - count: number; - /** - * Size of agent VMs. Possible values include: 'Standard_A0', 'Standard_A1', 'Standard_A2', - * 'Standard_A3', 'Standard_A4', 'Standard_A5', 'Standard_A6', 'Standard_A7', 'Standard_A8', - * 'Standard_A9', 'Standard_A10', 'Standard_A11', 'Standard_D1', 'Standard_D2', 'Standard_D3', - * 'Standard_D4', 'Standard_D11', 'Standard_D12', 'Standard_D13', 'Standard_D14', - * 'Standard_D1_v2', 'Standard_D2_v2', 'Standard_D3_v2', 'Standard_D4_v2', 'Standard_D5_v2', - * 'Standard_D11_v2', 'Standard_D12_v2', 'Standard_D13_v2', 'Standard_D14_v2', 'Standard_G1', - * 'Standard_G2', 'Standard_G3', 'Standard_G4', 'Standard_G5', 'Standard_DS1', 'Standard_DS2', - * 'Standard_DS3', 'Standard_DS4', 'Standard_DS11', 'Standard_DS12', 'Standard_DS13', - * 'Standard_DS14', 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', - * 'Standard_GS5' - */ - vmSize: ContainerServiceVMSizeTypes; - /** - * DNS prefix to be used to create the FQDN for the agent pool. - */ - dnsPrefix: string; - /** - * FQDN for the agent pool. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly fqdn?: string; -} - -/** - * Profile for Windows VMs in the container service cluster. - */ -export interface ContainerServiceWindowsProfile { - /** - * The administrator username to use for Windows VMs. - */ - adminUsername: string; - /** - * The administrator password to use for Windows VMs. - */ - adminPassword: string; -} - -/** - * Contains information about SSH certificate public key data. - */ -export interface ContainerServiceSshPublicKey { - /** - * Certificate public key used to authenticate with VMs through SSH. The certificate must be in - * PEM format with or without headers. - */ - keyData: string; -} - -/** - * SSH configuration for Linux-based VMs running on Azure. - */ -export interface ContainerServiceSshConfiguration { - /** - * the list of SSH public keys used to authenticate with Linux-based VMs. - */ - publicKeys: ContainerServiceSshPublicKey[]; -} - -/** - * Profile for Linux VMs in the container service cluster. - */ -export interface ContainerServiceLinuxProfile { - /** - * The administrator username to use for Linux VMs. - */ - adminUsername: string; - /** - * The ssh key configuration for Linux VMs. - */ - ssh: ContainerServiceSshConfiguration; -} - -/** - * Profile for diagnostics on the container service VMs. - */ -export interface ContainerServiceVMDiagnostics { - /** - * Whether the VM diagnostic agent is provisioned on the VM. - */ - enabled: boolean; - /** - * The URI of the storage account where diagnostics are stored. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly storageUri?: string; -} - -/** - * An interface representing ContainerServiceDiagnosticsProfile. - */ -export interface ContainerServiceDiagnosticsProfile { - /** - * Profile for the container service VM diagnostic agent. - */ - vmDiagnostics: ContainerServiceVMDiagnostics; -} - -/** - * Container service. + * Optional Parameters. */ -export interface ContainerService extends Resource { - /** - * the current deployment or provisioning state, which only appears in the response. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningState?: string; - /** - * Properties of the orchestrator. - */ - orchestratorProfile?: ContainerServiceOrchestratorProfile; - /** - * Properties for custom clusters. - */ - customProfile?: ContainerServiceCustomProfile; - /** - * Properties for cluster service principals. - */ - servicePrincipalProfile?: ContainerServiceServicePrincipalProfile; - /** - * Properties of master agents. - */ - masterProfile: ContainerServiceMasterProfile; - /** - * Properties of the agent pool. - */ - agentPoolProfiles: ContainerServiceAgentPoolProfile[]; - /** - * Properties of Windows VMs. - */ - windowsProfile?: ContainerServiceWindowsProfile; - /** - * Properties of Linux VMs. - */ - linuxProfile: ContainerServiceLinuxProfile; +export interface AvailabilitySetsListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { /** - * Properties of the diagnostic agent. + * The expand expression to apply to the operation. Allowed values are 'instanceView'. */ - diagnosticsProfile?: ContainerServiceDiagnosticsProfile; + expand?: string; } /** * Optional Parameters. */ -export interface AvailabilitySetsListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { +export interface AvailabilitySetsListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase { /** * The expand expression to apply to the operation. Allowed values are 'instanceView'. */ @@ -6593,21 +7012,49 @@ export interface VirtualMachineImagesListOptionalParams extends msRest.RequestOp /** * Optional Parameters. */ -export interface VirtualMachinesGetOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachineImagesEdgeZoneListOptionalParams extends msRest.RequestOptionsBase { /** - * The expand expression to apply on the operation. Possible values include: 'instanceView' + * The expand expression to apply on the operation. */ - expand?: InstanceViewTypes; + expand?: string; + /** + * An integer value specifying the number of images to return that matches supplied values. + */ + top?: number; + /** + * Specifies the order of the results returned. Formatted as an OData query. + */ + orderby?: string; } /** * Optional Parameters. */ -export interface VirtualMachinesListAllOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachinesDeleteMethodOptionalParams extends msRest.RequestOptionsBase { /** - * statusOnly=true enables fetching run time status of all Virtual Machines in the subscription. + * Optional parameter to force delete virtual machines.(Feature in Preview) */ - statusOnly?: string; + forceDeletion?: boolean; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachinesGetOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. Possible values include: 'instanceView' + */ + expand?: InstanceViewTypes; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachinesListAllOptionalParams extends msRest.RequestOptionsBase { + /** + * statusOnly=true enables fetching run time status of all Virtual Machines in the subscription. + */ + statusOnly?: string; } /** @@ -6644,6 +7091,16 @@ export interface VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams extend sasUriExpirationTimeInMinutes?: number; } +/** + * Optional Parameters. + */ +export interface VirtualMachinesBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to force delete virtual machines.(Feature in Preview) + */ + forceDeletion?: boolean; +} + /** * Optional Parameters. */ @@ -6669,11 +7126,21 @@ export interface VirtualMachinesBeginReimageOptionalParams extends msRest.Reques /** * Optional Parameters. */ -export interface ImagesGetOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachinesListAllNextOptionalParams extends msRest.RequestOptionsBase { /** - * The expand expression to apply on the operation. + * statusOnly=true enables fetching run time status of all Virtual Machines in the subscription. */ - expand?: string; + statusOnly?: string; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachineScaleSetsDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to force delete a VM scale set. (Feature in Preview) + */ + forceDeletion?: boolean; } /** @@ -6686,6 +7153,17 @@ export interface VirtualMachineScaleSetsDeallocateOptionalParams extends msRest. vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } +/** + * Optional Parameters. + */ +export interface VirtualMachineScaleSetsDeleteInstancesOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to force delete virtual machines from the VM scale set. (Feature in + * Preview) + */ + forceDeletion?: boolean; +} + /** * Optional Parameters. */ @@ -6762,6 +7240,16 @@ export interface VirtualMachineScaleSetsReimageAllOptionalParams extends msRest. vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } +/** + * Optional Parameters. + */ +export interface VirtualMachineScaleSetsBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to force delete a VM scale set. (Feature in Preview) + */ + forceDeletion?: boolean; +} + /** * Optional Parameters. */ @@ -6772,6 +7260,17 @@ export interface VirtualMachineScaleSetsBeginDeallocateOptionalParams extends ms vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } +/** + * Optional Parameters. + */ +export interface VirtualMachineScaleSetsBeginDeleteInstancesOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to force delete virtual machines from the VM scale set. (Feature in + * Preview) + */ + forceDeletion?: boolean; +} + /** * Optional Parameters. */ @@ -6848,6 +7347,16 @@ export interface VirtualMachineScaleSetsBeginReimageAllOptionalParams extends ms vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } +/** + * Optional Parameters. + */ +export interface ImagesGetOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. + */ + expand?: string; +} + /** * Optional Parameters. */ @@ -6888,6 +7397,16 @@ export interface VirtualMachineScaleSetVMsReimageOptionalParams extends msRest.R vmScaleSetVMReimageInput?: VirtualMachineScaleSetVMReimageParameters; } +/** + * Optional Parameters. + */ +export interface VirtualMachineScaleSetVMsDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to force delete a virtual machine from a VM scale set. (Feature in Preview) + */ + forceDeletion?: boolean; +} + /** * Optional Parameters. */ @@ -6952,6 +7471,16 @@ export interface VirtualMachineScaleSetVMsBeginReimageOptionalParams extends msR vmScaleSetVMReimageInput?: VirtualMachineScaleSetVMReimageParameters; } +/** + * Optional Parameters. + */ +export interface VirtualMachineScaleSetVMsBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to force delete a virtual machine from a VM scale set. (Feature in Preview) + */ + forceDeletion?: boolean; +} + /** * Optional Parameters. */ @@ -6964,6 +7493,86 @@ 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. + */ +export interface VirtualMachineRunCommandsGetByVirtualMachineOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachineRunCommandsListByVirtualMachineOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachineRunCommandsListByVirtualMachineNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachineScaleSetVMRunCommandsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachineScaleSetVMRunCommandsListOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachineScaleSetVMRunCommandsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. + */ + expand?: string; +} + /** * Optional Parameters. */ @@ -6974,6 +7583,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. */ @@ -7107,19 +7726,6 @@ export interface VirtualMachineListResult extends Array { nextLink?: string; } -/** - * @interface - * The List Image operation response. - * @extends Array - */ -export interface ImageListResult extends Array { - /** - * The uri to fetch the next page of Images. Call ListNext() with this to fetch the next page of - * Images. - */ - nextLink?: string; -} - /** * @interface * The List Virtual Machine operation response. @@ -7172,6 +7778,19 @@ export interface VirtualMachineScaleSetListOSUpgradeHistory extends Array + */ +export interface ImageListResult extends Array { + /** + * The uri to fetch the next page of Images. Call ListNext() with this to fetch the next page of + * Images. + */ + nextLink?: string; +} + /** * @interface * The List VM scale set extension operation response. @@ -7211,6 +7830,18 @@ export interface RunCommandListResult extends Array { nextLink?: string; } +/** + * @interface + * The List run command operation response + * @extends Array + */ +export interface VirtualMachineRunCommandsListResult extends Array { + /** + * The uri to fetch the next page of run commands. + */ + nextLink?: string; +} + /** * @interface * The List Resource Skus operation response. @@ -7354,18 +7985,6 @@ export interface GalleryApplicationVersionList extends Array - */ -export interface ContainerServiceListResult extends Array { - /** - * The URL to get the next set of container service results. - */ - nextLink?: string; -} - /** * Defines values for VmDiskTypes. * Possible values include: 'None', 'Unmanaged' @@ -7415,29 +8034,69 @@ export type ProximityPlacementGroupType = 'Standard' | 'Ultra'; export type DedicatedHostLicenseTypes = 'None' | 'Windows_Server_Hybrid' | 'Windows_Server_Perpetual'; /** - * Defines values for SoftwareUpdateRebootBehavior. - * Possible values include: 'NeverReboots', 'AlwaysRequiresReboot', 'CanRequestReboot' + * Defines values for VMGuestPatchRebootBehavior. + * Possible values include: 'Unknown', 'NeverReboots', 'AlwaysRequiresReboot', 'CanRequestReboot' * @readonly * @enum {string} */ -export type SoftwareUpdateRebootBehavior = 'NeverReboots' | 'AlwaysRequiresReboot' | 'CanRequestReboot'; +export type VMGuestPatchRebootBehavior = 'Unknown' | 'NeverReboots' | 'AlwaysRequiresReboot' | 'CanRequestReboot'; /** * Defines values for PatchAssessmentState. - * Possible values include: 'Installed', 'Failed', 'Excluded', 'NotSelected', 'Pending', - * 'Available' + * Possible values include: 'Unknown', 'Available' * @readonly * @enum {string} */ -export type PatchAssessmentState = 'Installed' | 'Failed' | 'Excluded' | 'NotSelected' | 'Pending' | 'Available'; +export type PatchAssessmentState = 'Unknown' | 'Available'; /** * Defines values for PatchOperationStatus. - * Possible values include: 'InProgress', 'Failed', 'Succeeded', 'CompletedWithWarnings' + * Possible values include: 'Unknown', 'InProgress', 'Failed', 'Succeeded', 'CompletedWithWarnings' + * @readonly + * @enum {string} + */ +export type PatchOperationStatus = 'Unknown' | 'InProgress' | 'Failed' | 'Succeeded' | 'CompletedWithWarnings'; + +/** + * Defines values for VMGuestPatchRebootSetting. + * Possible values include: 'IfRequired', 'Never', 'Always' + * @readonly + * @enum {string} + */ +export type VMGuestPatchRebootSetting = 'IfRequired' | 'Never' | 'Always'; + +/** + * Defines values for VMGuestPatchClassificationWindows. + * Possible values include: 'Critical', 'Security', 'UpdateRollUp', 'FeaturePack', 'ServicePack', + * 'Definition', 'Tools', 'Updates' + * @readonly + * @enum {string} + */ +export type VMGuestPatchClassificationWindows = 'Critical' | 'Security' | 'UpdateRollUp' | 'FeaturePack' | 'ServicePack' | 'Definition' | 'Tools' | 'Updates'; + +/** + * Defines values for VMGuestPatchClassificationLinux. + * Possible values include: 'Critical', 'Security', 'Other' + * @readonly + * @enum {string} + */ +export type VMGuestPatchClassificationLinux = 'Critical' | 'Security' | 'Other'; + +/** + * Defines values for VMGuestPatchRebootStatus. + * Possible values include: 'Unknown', 'NotNeeded', 'Required', 'Started', 'Failed', 'Completed' + * @readonly + * @enum {string} + */ +export type VMGuestPatchRebootStatus = 'Unknown' | 'NotNeeded' | 'Required' | 'Started' | 'Failed' | 'Completed'; + +/** + * Defines values for PatchInstallationState. + * Possible values include: 'Unknown', 'Installed', 'Failed', 'Excluded', 'NotSelected', 'Pending' * @readonly * @enum {string} */ -export type PatchOperationStatus = 'InProgress' | 'Failed' | 'Succeeded' | 'CompletedWithWarnings'; +export type PatchInstallationState = 'Unknown' | 'Installed' | 'Failed' | 'Excluded' | 'NotSelected' | 'Pending'; /** * Defines values for OperatingSystemTypes. @@ -7504,6 +8163,14 @@ export type CachingTypes = 'None' | 'ReadOnly' | 'ReadWrite'; */ export type DiskCreateOptionTypes = 'FromImage' | 'Empty' | 'Attach'; +/** + * Defines values for DiskDetachOptionTypes. + * Possible values include: 'ForceDetach' + * @readonly + * @enum {string} + */ +export type DiskDetachOptionTypes = 'ForceDetach'; + /** * Defines values for StorageAccountTypes. * Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS' @@ -7528,6 +8195,14 @@ export type DiffDiskOptions = 'Local'; */ export type DiffDiskPlacement = 'CacheDisk' | 'ResourceDisk'; +/** + * Defines values for SecurityTypes. + * Possible values include: 'TrustedLaunch' + * @readonly + * @enum {string} + */ +export type SecurityTypes = 'TrustedLaunch'; + /** * Defines values for PassNames. * Possible values include: 'OobeSystem' @@ -7561,12 +8236,20 @@ export type SettingNames = 'AutoLogon' | 'FirstLogonCommands'; export type ProtocolTypes = 'Http' | 'Https'; /** - * Defines values for InGuestPatchMode. + * Defines values for WindowsVMGuestPatchMode. * Possible values include: 'Manual', 'AutomaticByOS', 'AutomaticByPlatform' * @readonly * @enum {string} */ -export type InGuestPatchMode = 'Manual' | 'AutomaticByOS' | 'AutomaticByPlatform'; +export type WindowsVMGuestPatchMode = 'Manual' | 'AutomaticByOS' | 'AutomaticByPlatform'; + +/** + * Defines values for LinuxVMGuestPatchMode. + * Possible values include: 'ImageDefault', 'AutomaticByPlatform' + * @readonly + * @enum {string} + */ +export type LinuxVMGuestPatchMode = 'ImageDefault' | 'AutomaticByPlatform'; /** * Defines values for VirtualMachinePriorityTypes. @@ -7609,14 +8292,6 @@ export type MaintenanceOperationResultCodeTypes = 'None' | 'RetryLater' | 'Maint */ export type HyperVGenerationType = 'V1' | 'V2'; -/** - * Defines values for RebootStatus. - * Possible values include: 'NotNeeded', 'Required', 'Started', 'Failed', 'Completed' - * @readonly - * @enum {string} - */ -export type RebootStatus = 'NotNeeded' | 'Required' | 'Started' | 'Failed' | 'Completed'; - /** * Defines values for UpgradeMode. * Possible values include: 'Automatic', 'Manual', 'Rolling' @@ -7634,12 +8309,20 @@ export type UpgradeMode = 'Automatic' | 'Manual' | 'Rolling'; export type VirtualMachineScaleSetScaleInRules = 'Default' | 'OldestVM' | 'NewestVM'; /** - * Defines values for OperatingSystemStateTypes. - * Possible values include: 'Generalized', 'Specialized' + * Defines values for OrchestrationMode. + * Possible values include: 'Uniform', 'Flexible' * @readonly * @enum {string} */ -export type OperatingSystemStateTypes = 'Generalized' | 'Specialized'; +export type OrchestrationMode = 'Uniform' | 'Flexible'; + +/** + * Defines values for OperatingSystemStateTypes. + * Possible values include: 'Generalized', 'Specialized' + * @readonly + * @enum {string} + */ +export type OperatingSystemStateTypes = 'Generalized' | 'Specialized'; /** * Defines values for IPVersion. @@ -7705,6 +8388,14 @@ export type RollingUpgradeStatusCode = 'RollingForward' | 'Cancelled' | 'Complet */ export type RollingUpgradeActionType = 'Start' | 'Cancel'; +/** + * Defines values for ExtendedLocationTypes. + * Possible values include: 'EdgeZone' + * @readonly + * @enum {string} + */ +export type ExtendedLocationTypes = 'EdgeZone'; + /** * Defines values for IntervalInMins. * Possible values include: 'ThreeMins', 'FiveMins', 'ThirtyMins', 'SixtyMins' @@ -7721,6 +8412,15 @@ export type IntervalInMins = 'ThreeMins' | 'FiveMins' | 'ThirtyMins' | 'SixtyMin */ export type OrchestrationServiceStateAction = 'Resume' | 'Suspend'; +/** + * Defines values for ExecutionState. + * Possible values include: 'Unknown', 'Pending', 'Running', 'Failed', 'Succeeded', 'TimedOut', + * 'Canceled' + * @readonly + * @enum {string} + */ +export type ExecutionState = 'Unknown' | 'Pending' | 'Running' | 'Failed' | 'Succeeded' | 'TimedOut' | 'Canceled'; + /** * Defines values for ResourceSkuCapacityScaleType. * Possible values include: 'Automatic', 'Manual', 'None' @@ -7876,30 +8576,6 @@ export type StorageAccountType = 'Standard_LRS' | 'Standard_ZRS' | 'Premium_LRS' */ export type HostCaching = 'None' | 'ReadOnly' | 'ReadWrite'; -/** - * Defines values for ContainerServiceOrchestratorTypes. - * Possible values include: 'Swarm', 'DCOS', 'Custom', 'Kubernetes' - * @readonly - * @enum {string} - */ -export type ContainerServiceOrchestratorTypes = 'Swarm' | 'DCOS' | 'Custom' | 'Kubernetes'; - -/** - * Defines values for ContainerServiceVMSizeTypes. - * Possible values include: 'Standard_A0', 'Standard_A1', 'Standard_A2', 'Standard_A3', - * 'Standard_A4', 'Standard_A5', 'Standard_A6', 'Standard_A7', 'Standard_A8', 'Standard_A9', - * 'Standard_A10', 'Standard_A11', 'Standard_D1', 'Standard_D2', 'Standard_D3', 'Standard_D4', - * 'Standard_D11', 'Standard_D12', 'Standard_D13', 'Standard_D14', 'Standard_D1_v2', - * 'Standard_D2_v2', 'Standard_D3_v2', 'Standard_D4_v2', 'Standard_D5_v2', 'Standard_D11_v2', - * 'Standard_D12_v2', 'Standard_D13_v2', 'Standard_D14_v2', 'Standard_G1', 'Standard_G2', - * 'Standard_G3', 'Standard_G4', 'Standard_G5', 'Standard_DS1', 'Standard_DS2', 'Standard_DS3', - * 'Standard_DS4', 'Standard_DS11', 'Standard_DS12', 'Standard_DS13', 'Standard_DS14', - * 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', 'Standard_GS5' - * @readonly - * @enum {string} - */ -export type ContainerServiceVMSizeTypes = 'Standard_A0' | 'Standard_A1' | 'Standard_A2' | 'Standard_A3' | 'Standard_A4' | 'Standard_A5' | 'Standard_A6' | 'Standard_A7' | 'Standard_A8' | 'Standard_A9' | 'Standard_A10' | 'Standard_A11' | 'Standard_D1' | 'Standard_D2' | 'Standard_D3' | 'Standard_D4' | 'Standard_D11' | 'Standard_D12' | 'Standard_D13' | 'Standard_D14' | 'Standard_D1_v2' | 'Standard_D2_v2' | 'Standard_D3_v2' | 'Standard_D4_v2' | 'Standard_D5_v2' | 'Standard_D11_v2' | 'Standard_D12_v2' | 'Standard_D13_v2' | 'Standard_D14_v2' | 'Standard_G1' | 'Standard_G2' | 'Standard_G3' | 'Standard_G4' | 'Standard_G5' | 'Standard_DS1' | 'Standard_DS2' | 'Standard_DS3' | 'Standard_DS4' | 'Standard_DS11' | 'Standard_DS12' | 'Standard_DS13' | 'Standard_DS14' | 'Standard_GS1' | 'Standard_GS2' | 'Standard_GS3' | 'Standard_GS4' | 'Standard_GS5'; - /** * Defines values for InstanceViewTypes. * Possible values include: 'instanceView' @@ -7964,14 +8640,494 @@ export type OperationsListResponse = ComputeOperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ComputeOperationListResult; + parsedBody: ComputeOperationListResult; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type AvailabilitySetsCreateOrUpdateResponse = AvailabilitySet & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AvailabilitySet; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type AvailabilitySetsUpdateResponse = AvailabilitySet & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AvailabilitySet; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type AvailabilitySetsGetResponse = AvailabilitySet & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AvailabilitySet; + }; +}; + +/** + * Contains response data for the listBySubscription operation. + */ +export type AvailabilitySetsListBySubscriptionResponse = AvailabilitySetListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AvailabilitySetListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type AvailabilitySetsListResponse = AvailabilitySetListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AvailabilitySetListResult; + }; +}; + +/** + * Contains response data for the listAvailableSizes operation. + */ +export type AvailabilitySetsListAvailableSizesResponse = VirtualMachineSizeListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualMachineSizeListResult; + }; +}; + +/** + * Contains response data for the listBySubscriptionNext operation. + */ +export type AvailabilitySetsListBySubscriptionNextResponse = AvailabilitySetListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AvailabilitySetListResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type AvailabilitySetsListNextResponse = AvailabilitySetListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AvailabilitySetListResult; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ProximityPlacementGroupsCreateOrUpdateResponse = ProximityPlacementGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProximityPlacementGroup; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type ProximityPlacementGroupsUpdateResponse = ProximityPlacementGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProximityPlacementGroup; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ProximityPlacementGroupsGetResponse = ProximityPlacementGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProximityPlacementGroup; + }; +}; + +/** + * Contains response data for the listBySubscription operation. + */ +export type ProximityPlacementGroupsListBySubscriptionResponse = ProximityPlacementGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProximityPlacementGroupListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type ProximityPlacementGroupsListByResourceGroupResponse = ProximityPlacementGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProximityPlacementGroupListResult; + }; +}; + +/** + * Contains response data for the listBySubscriptionNext operation. + */ +export type ProximityPlacementGroupsListBySubscriptionNextResponse = ProximityPlacementGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProximityPlacementGroupListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type ProximityPlacementGroupsListByResourceGroupNextResponse = ProximityPlacementGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProximityPlacementGroupListResult; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DedicatedHostGroupsCreateOrUpdateResponse = DedicatedHostGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostGroup; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type DedicatedHostGroupsUpdateResponse = DedicatedHostGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostGroup; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DedicatedHostGroupsGetResponse = DedicatedHostGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostGroup; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type DedicatedHostGroupsListByResourceGroupResponse = DedicatedHostGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostGroupListResult; + }; +}; + +/** + * Contains response data for the listBySubscription operation. + */ +export type DedicatedHostGroupsListBySubscriptionResponse = DedicatedHostGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostGroupListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type DedicatedHostGroupsListByResourceGroupNextResponse = DedicatedHostGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostGroupListResult; + }; +}; + +/** + * Contains response data for the listBySubscriptionNext operation. + */ +export type DedicatedHostGroupsListBySubscriptionNextResponse = DedicatedHostGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostGroupListResult; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DedicatedHostsCreateOrUpdateResponse = DedicatedHost & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHost; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type DedicatedHostsUpdateResponse = DedicatedHost & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHost; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type AvailabilitySetsCreateOrUpdateResponse = AvailabilitySet & { +export type DedicatedHostsGetResponse = DedicatedHost & { /** * The underlying HTTP response. */ @@ -7984,14 +9140,14 @@ export type AvailabilitySetsCreateOrUpdateResponse = AvailabilitySet & { /** * The response body as parsed JSON or XML */ - parsedBody: AvailabilitySet; + parsedBody: DedicatedHost; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listByHostGroup operation. */ -export type AvailabilitySetsUpdateResponse = AvailabilitySet & { +export type DedicatedHostsListByHostGroupResponse = DedicatedHostListResult & { /** * The underlying HTTP response. */ @@ -8004,14 +9160,14 @@ export type AvailabilitySetsUpdateResponse = AvailabilitySet & { /** * The response body as parsed JSON or XML */ - parsedBody: AvailabilitySet; + parsedBody: DedicatedHostListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type AvailabilitySetsGetResponse = AvailabilitySet & { +export type DedicatedHostsBeginCreateOrUpdateResponse = DedicatedHost & { /** * The underlying HTTP response. */ @@ -8024,14 +9180,14 @@ export type AvailabilitySetsGetResponse = AvailabilitySet & { /** * The response body as parsed JSON or XML */ - parsedBody: AvailabilitySet; + parsedBody: DedicatedHost; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the beginUpdate operation. */ -export type AvailabilitySetsListBySubscriptionResponse = AvailabilitySetListResult & { +export type DedicatedHostsBeginUpdateResponse = DedicatedHost & { /** * The underlying HTTP response. */ @@ -8044,14 +9200,14 @@ export type AvailabilitySetsListBySubscriptionResponse = AvailabilitySetListResu /** * The response body as parsed JSON or XML */ - parsedBody: AvailabilitySetListResult; + parsedBody: DedicatedHost; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByHostGroupNext operation. */ -export type AvailabilitySetsListResponse = AvailabilitySetListResult & { +export type DedicatedHostsListByHostGroupNextResponse = DedicatedHostListResult & { /** * The underlying HTTP response. */ @@ -8064,14 +9220,14 @@ export type AvailabilitySetsListResponse = AvailabilitySetListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: AvailabilitySetListResult; + parsedBody: DedicatedHostListResult; }; }; /** - * Contains response data for the listAvailableSizes operation. + * Contains response data for the listBySubscription operation. */ -export type AvailabilitySetsListAvailableSizesResponse = VirtualMachineSizeListResult & { +export type SshPublicKeysListBySubscriptionResponse = SshPublicKeysGroupListResult & { /** * The underlying HTTP response. */ @@ -8084,14 +9240,14 @@ export type AvailabilitySetsListAvailableSizesResponse = VirtualMachineSizeListR /** * The response body as parsed JSON or XML */ - parsedBody: VirtualMachineSizeListResult; + parsedBody: SshPublicKeysGroupListResult; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the listByResourceGroup operation. */ -export type AvailabilitySetsListBySubscriptionNextResponse = AvailabilitySetListResult & { +export type SshPublicKeysListByResourceGroupResponse = SshPublicKeysGroupListResult & { /** * The underlying HTTP response. */ @@ -8104,14 +9260,14 @@ export type AvailabilitySetsListBySubscriptionNextResponse = AvailabilitySetList /** * The response body as parsed JSON or XML */ - parsedBody: AvailabilitySetListResult; + parsedBody: SshPublicKeysGroupListResult; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the create operation. */ -export type AvailabilitySetsListNextResponse = AvailabilitySetListResult & { +export type SshPublicKeysCreateResponse = SshPublicKeyResource & { /** * The underlying HTTP response. */ @@ -8124,14 +9280,14 @@ export type AvailabilitySetsListNextResponse = AvailabilitySetListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: AvailabilitySetListResult; + parsedBody: SshPublicKeyResource; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the update operation. */ -export type ProximityPlacementGroupsCreateOrUpdateResponse = ProximityPlacementGroup & { +export type SshPublicKeysUpdateResponse = SshPublicKeyResource & { /** * The underlying HTTP response. */ @@ -8144,14 +9300,14 @@ export type ProximityPlacementGroupsCreateOrUpdateResponse = ProximityPlacementG /** * The response body as parsed JSON or XML */ - parsedBody: ProximityPlacementGroup; + parsedBody: SshPublicKeyResource; }; }; /** - * Contains response data for the update operation. + * Contains response data for the get operation. */ -export type ProximityPlacementGroupsUpdateResponse = ProximityPlacementGroup & { +export type SshPublicKeysGetResponse = SshPublicKeyResource & { /** * The underlying HTTP response. */ @@ -8164,14 +9320,14 @@ export type ProximityPlacementGroupsUpdateResponse = ProximityPlacementGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: ProximityPlacementGroup; + parsedBody: SshPublicKeyResource; }; }; /** - * Contains response data for the get operation. + * Contains response data for the generateKeyPair operation. */ -export type ProximityPlacementGroupsGetResponse = ProximityPlacementGroup & { +export type SshPublicKeysGenerateKeyPairResponse = SshPublicKeyGenerateKeyPairResult & { /** * The underlying HTTP response. */ @@ -8184,14 +9340,14 @@ export type ProximityPlacementGroupsGetResponse = ProximityPlacementGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: ProximityPlacementGroup; + parsedBody: SshPublicKeyGenerateKeyPairResult; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the listBySubscriptionNext operation. */ -export type ProximityPlacementGroupsListBySubscriptionResponse = ProximityPlacementGroupListResult & { +export type SshPublicKeysListBySubscriptionNextResponse = SshPublicKeysGroupListResult & { /** * The underlying HTTP response. */ @@ -8204,14 +9360,14 @@ export type ProximityPlacementGroupsListBySubscriptionResponse = ProximityPlacem /** * The response body as parsed JSON or XML */ - parsedBody: ProximityPlacementGroupListResult; + parsedBody: SshPublicKeysGroupListResult; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type ProximityPlacementGroupsListByResourceGroupResponse = ProximityPlacementGroupListResult & { +export type SshPublicKeysListByResourceGroupNextResponse = SshPublicKeysGroupListResult & { /** * The underlying HTTP response. */ @@ -8224,14 +9380,14 @@ export type ProximityPlacementGroupsListByResourceGroupResponse = ProximityPlace /** * The response body as parsed JSON or XML */ - parsedBody: ProximityPlacementGroupListResult; + parsedBody: SshPublicKeysGroupListResult; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the get operation. */ -export type ProximityPlacementGroupsListBySubscriptionNextResponse = ProximityPlacementGroupListResult & { +export type VirtualMachineExtensionImagesGetResponse = VirtualMachineExtensionImage & { /** * The underlying HTTP response. */ @@ -8244,14 +9400,14 @@ export type ProximityPlacementGroupsListBySubscriptionNextResponse = ProximityPl /** * The response body as parsed JSON or XML */ - parsedBody: ProximityPlacementGroupListResult; + parsedBody: VirtualMachineExtensionImage; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the listTypes operation. */ -export type ProximityPlacementGroupsListByResourceGroupNextResponse = ProximityPlacementGroupListResult & { +export type VirtualMachineExtensionImagesListTypesResponse = Array & { /** * The underlying HTTP response. */ @@ -8264,14 +9420,14 @@ export type ProximityPlacementGroupsListByResourceGroupNextResponse = ProximityP /** * The response body as parsed JSON or XML */ - parsedBody: ProximityPlacementGroupListResult; + parsedBody: VirtualMachineExtensionImage[]; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listVersions operation. */ -export type DedicatedHostGroupsCreateOrUpdateResponse = DedicatedHostGroup & { +export type VirtualMachineExtensionImagesListVersionsResponse = Array & { /** * The underlying HTTP response. */ @@ -8284,14 +9440,14 @@ export type DedicatedHostGroupsCreateOrUpdateResponse = DedicatedHostGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostGroup; + parsedBody: VirtualMachineExtensionImage[]; }; }; /** - * Contains response data for the update operation. + * Contains response data for the createOrUpdate operation. */ -export type DedicatedHostGroupsUpdateResponse = DedicatedHostGroup & { +export type VirtualMachineExtensionsCreateOrUpdateResponse = VirtualMachineExtension & { /** * The underlying HTTP response. */ @@ -8304,14 +9460,14 @@ export type DedicatedHostGroupsUpdateResponse = DedicatedHostGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostGroup; + parsedBody: VirtualMachineExtension; }; }; /** - * Contains response data for the get operation. + * Contains response data for the update operation. */ -export type DedicatedHostGroupsGetResponse = DedicatedHostGroup & { +export type VirtualMachineExtensionsUpdateResponse = VirtualMachineExtension & { /** * The underlying HTTP response. */ @@ -8324,14 +9480,14 @@ export type DedicatedHostGroupsGetResponse = DedicatedHostGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostGroup; + parsedBody: VirtualMachineExtension; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the get operation. */ -export type DedicatedHostGroupsListByResourceGroupResponse = DedicatedHostGroupListResult & { +export type VirtualMachineExtensionsGetResponse = VirtualMachineExtension & { /** * The underlying HTTP response. */ @@ -8344,14 +9500,14 @@ export type DedicatedHostGroupsListByResourceGroupResponse = DedicatedHostGroupL /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostGroupListResult; + parsedBody: VirtualMachineExtension; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the list operation. */ -export type DedicatedHostGroupsListBySubscriptionResponse = DedicatedHostGroupListResult & { +export type VirtualMachineExtensionsListResponse = VirtualMachineExtensionsListResult & { /** * The underlying HTTP response. */ @@ -8364,14 +9520,14 @@ export type DedicatedHostGroupsListBySubscriptionResponse = DedicatedHostGroupLi /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostGroupListResult; + parsedBody: VirtualMachineExtensionsListResult; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type DedicatedHostGroupsListByResourceGroupNextResponse = DedicatedHostGroupListResult & { +export type VirtualMachineExtensionsBeginCreateOrUpdateResponse = VirtualMachineExtension & { /** * The underlying HTTP response. */ @@ -8384,14 +9540,14 @@ export type DedicatedHostGroupsListByResourceGroupNextResponse = DedicatedHostGr /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostGroupListResult; + parsedBody: VirtualMachineExtension; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the beginUpdate operation. */ -export type DedicatedHostGroupsListBySubscriptionNextResponse = DedicatedHostGroupListResult & { +export type VirtualMachineExtensionsBeginUpdateResponse = VirtualMachineExtension & { /** * The underlying HTTP response. */ @@ -8404,14 +9560,14 @@ export type DedicatedHostGroupsListBySubscriptionNextResponse = DedicatedHostGro /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostGroupListResult; + parsedBody: VirtualMachineExtension; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type DedicatedHostsCreateOrUpdateResponse = DedicatedHost & { +export type VirtualMachineImagesGetResponse = VirtualMachineImage & { /** * The underlying HTTP response. */ @@ -8424,14 +9580,14 @@ export type DedicatedHostsCreateOrUpdateResponse = DedicatedHost & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHost; + parsedBody: VirtualMachineImage; }; }; /** - * Contains response data for the update operation. + * Contains response data for the list operation. */ -export type DedicatedHostsUpdateResponse = DedicatedHost & { +export type VirtualMachineImagesListResponse = Array & { /** * The underlying HTTP response. */ @@ -8444,14 +9600,14 @@ export type DedicatedHostsUpdateResponse = DedicatedHost & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHost; + parsedBody: VirtualMachineImageResource[]; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listOffers operation. */ -export type DedicatedHostsGetResponse = DedicatedHost & { +export type VirtualMachineImagesListOffersResponse = Array & { /** * The underlying HTTP response. */ @@ -8464,14 +9620,14 @@ export type DedicatedHostsGetResponse = DedicatedHost & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHost; + parsedBody: VirtualMachineImageResource[]; }; }; /** - * Contains response data for the listByHostGroup operation. + * Contains response data for the listPublishers operation. */ -export type DedicatedHostsListByHostGroupResponse = DedicatedHostListResult & { +export type VirtualMachineImagesListPublishersResponse = Array & { /** * The underlying HTTP response. */ @@ -8484,14 +9640,14 @@ export type DedicatedHostsListByHostGroupResponse = DedicatedHostListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostListResult; + parsedBody: VirtualMachineImageResource[]; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listSkus operation. */ -export type DedicatedHostsBeginCreateOrUpdateResponse = DedicatedHost & { +export type VirtualMachineImagesListSkusResponse = Array & { /** * The underlying HTTP response. */ @@ -8504,14 +9660,14 @@ export type DedicatedHostsBeginCreateOrUpdateResponse = DedicatedHost & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHost; + parsedBody: VirtualMachineImageResource[]; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the get operation. */ -export type DedicatedHostsBeginUpdateResponse = DedicatedHost & { +export type VirtualMachineImagesEdgeZoneGetResponse = VirtualMachineImage & { /** * The underlying HTTP response. */ @@ -8524,14 +9680,14 @@ export type DedicatedHostsBeginUpdateResponse = DedicatedHost & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHost; + parsedBody: VirtualMachineImage; }; }; /** - * Contains response data for the listByHostGroupNext operation. + * Contains response data for the list operation. */ -export type DedicatedHostsListByHostGroupNextResponse = DedicatedHostListResult & { +export type VirtualMachineImagesEdgeZoneListResponse = Array & { /** * The underlying HTTP response. */ @@ -8544,14 +9700,14 @@ export type DedicatedHostsListByHostGroupNextResponse = DedicatedHostListResult /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostListResult; + parsedBody: VirtualMachineImageResource[]; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the listOffers operation. */ -export type SshPublicKeysListBySubscriptionResponse = SshPublicKeysGroupListResult & { +export type VirtualMachineImagesEdgeZoneListOffersResponse = Array & { /** * The underlying HTTP response. */ @@ -8564,14 +9720,14 @@ export type SshPublicKeysListBySubscriptionResponse = SshPublicKeysGroupListResu /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeysGroupListResult; + parsedBody: VirtualMachineImageResource[]; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the listPublishers operation. */ -export type SshPublicKeysListByResourceGroupResponse = SshPublicKeysGroupListResult & { +export type VirtualMachineImagesEdgeZoneListPublishersResponse = Array & { /** * The underlying HTTP response. */ @@ -8584,14 +9740,14 @@ export type SshPublicKeysListByResourceGroupResponse = SshPublicKeysGroupListRes /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeysGroupListResult; + parsedBody: VirtualMachineImageResource[]; }; }; /** - * Contains response data for the create operation. + * Contains response data for the listSkus operation. */ -export type SshPublicKeysCreateResponse = SshPublicKeyResource & { +export type VirtualMachineImagesEdgeZoneListSkusResponse = Array & { /** * The underlying HTTP response. */ @@ -8604,14 +9760,14 @@ export type SshPublicKeysCreateResponse = SshPublicKeyResource & { /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeyResource; + parsedBody: VirtualMachineImageResource[]; }; }; /** - * Contains response data for the update operation. + * Contains response data for the list operation. */ -export type SshPublicKeysUpdateResponse = SshPublicKeyResource & { +export type UsageListResponse = ListUsagesResult & { /** * The underlying HTTP response. */ @@ -8624,14 +9780,14 @@ export type SshPublicKeysUpdateResponse = SshPublicKeyResource & { /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeyResource; + parsedBody: ListUsagesResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type SshPublicKeysGetResponse = SshPublicKeyResource & { +export type UsageListNextResponse = ListUsagesResult & { /** * The underlying HTTP response. */ @@ -8644,14 +9800,14 @@ export type SshPublicKeysGetResponse = SshPublicKeyResource & { /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeyResource; + parsedBody: ListUsagesResult; }; }; /** - * Contains response data for the generateKeyPair operation. + * Contains response data for the listByLocation operation. */ -export type SshPublicKeysGenerateKeyPairResponse = SshPublicKeyGenerateKeyPairResult & { +export type VirtualMachinesListByLocationResponse = VirtualMachineListResult & { /** * The underlying HTTP response. */ @@ -8664,14 +9820,14 @@ export type SshPublicKeysGenerateKeyPairResponse = SshPublicKeyGenerateKeyPairRe /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeyGenerateKeyPairResult; + parsedBody: VirtualMachineListResult; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the capture operation. */ -export type SshPublicKeysListBySubscriptionNextResponse = SshPublicKeysGroupListResult & { +export type VirtualMachinesCaptureResponse = VirtualMachineCaptureResult & { /** * The underlying HTTP response. */ @@ -8684,14 +9840,14 @@ export type SshPublicKeysListBySubscriptionNextResponse = SshPublicKeysGroupList /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeysGroupListResult; + parsedBody: VirtualMachineCaptureResult; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the createOrUpdate operation. */ -export type SshPublicKeysListByResourceGroupNextResponse = SshPublicKeysGroupListResult & { +export type VirtualMachinesCreateOrUpdateResponse = VirtualMachine & { /** * The underlying HTTP response. */ @@ -8704,14 +9860,14 @@ export type SshPublicKeysListByResourceGroupNextResponse = SshPublicKeysGroupLis /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeysGroupListResult; + parsedBody: VirtualMachine; }; }; /** - * Contains response data for the get operation. + * Contains response data for the update operation. */ -export type VirtualMachineExtensionImagesGetResponse = VirtualMachineExtensionImage & { +export type VirtualMachinesUpdateResponse = VirtualMachine & { /** * The underlying HTTP response. */ @@ -8724,14 +9880,14 @@ export type VirtualMachineExtensionImagesGetResponse = VirtualMachineExtensionIm /** * The response body as parsed JSON or XML */ - parsedBody: VirtualMachineExtensionImage; + parsedBody: VirtualMachine; }; }; /** - * Contains response data for the listTypes operation. + * Contains response data for the get operation. */ -export type VirtualMachineExtensionImagesListTypesResponse = Array & { +export type VirtualMachinesGetResponse = VirtualMachine & { /** * The underlying HTTP response. */ @@ -8744,14 +9900,14 @@ export type VirtualMachineExtensionImagesListTypesResponse = Array & { +export type VirtualMachinesInstanceViewResponse = VirtualMachineInstanceView & { /** * The underlying HTTP response. */ @@ -8764,14 +9920,14 @@ export type VirtualMachineExtensionImagesListVersionsResponse = Array & { +export type VirtualMachinesBeginCaptureResponse = VirtualMachineCaptureResult & { /** * The underlying HTTP response. */ @@ -8924,14 +10080,14 @@ export type VirtualMachineImagesListResponse = Array & { +export type VirtualMachinesBeginCreateOrUpdateResponse = VirtualMachine & { /** * The underlying HTTP response. */ @@ -8944,14 +10100,14 @@ export type VirtualMachineImagesListOffersResponse = Array & { +export type VirtualMachinesBeginUpdateResponse = VirtualMachine & { /** * The underlying HTTP response. */ @@ -8964,14 +10120,14 @@ export type VirtualMachineImagesListPublishersResponse = Array & { +export type VirtualMachinesBeginAssessPatchesResponse = VirtualMachineAssessPatchesResult & { /** * The underlying HTTP response. */ @@ -8984,14 +10140,14 @@ export type VirtualMachineImagesListSkusResponse = Array */ - listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listBySubscriptionNext(nextPageLink: string, options?: Models.AvailabilitySetsListBySubscriptionNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -264,8 +263,8 @@ export class AvailabilitySets { * @param options The optional parameters * @param callback The callback */ - listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listBySubscriptionNext(nextPageLink: string, options: Models.AvailabilitySetsListBySubscriptionNextOptionalParams, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: Models.AvailabilitySetsListBySubscriptionNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -499,6 +498,10 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.expand0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -520,6 +523,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/containerServices.ts b/sdk/compute/arm-compute/src/operations/containerServices.ts deleted file mode 100644 index a0b681fc5406..000000000000 --- a/sdk/compute/arm-compute/src/operations/containerServices.ts +++ /dev/null @@ -1,444 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/containerServicesMappers"; -import * as Parameters from "../models/parameters"; -import { ComputeManagementClientContext } from "../computeManagementClientContext"; - -/** Class representing a ContainerServices. */ -export class ContainerServices { - private readonly client: ComputeManagementClientContext; - - /** - * Create a ContainerServices. - * @param {ComputeManagementClientContext} client Reference to the service client. - */ - constructor(client: ComputeManagementClientContext) { - this.client = client; - } - - /** - * Gets a list of container services in the specified subscription. The operation returns - * properties of each container service including state, orchestrator, number of masters and - * agents, and FQDNs of masters and agents. - * @summary Gets a list of container services in the specified subscription. - * @param [options] The optional parameters - * @returns Promise - */ - list(options?: msRest.RequestOptionsBase): Promise; - /** - * @param callback The callback - */ - list(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - options - }, - listOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates a container service with the specified configuration of orchestrator, - * masters, and agents. - * @summary Creates or updates a container service. - * @param resourceGroupName The name of the resource group. - * @param containerServiceName The name of the container service in the specified subscription and - * resource group. - * @param parameters Parameters supplied to the Create or Update a Container Service operation. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, containerServiceName: string, parameters: Models.ContainerService, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,containerServiceName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Gets the properties of the specified container service in the specified subscription and - * resource group. The operation returns the properties including state, orchestrator, number of - * masters and agents, and FQDNs of masters and agents. - * @summary Gets the properties of the specified container service. - * @param resourceGroupName The name of the resource group. - * @param containerServiceName The name of the container service in the specified subscription and - * resource group. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, containerServiceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @param containerServiceName The name of the container service in the specified subscription and - * resource group. - * @param callback The callback - */ - get(resourceGroupName: string, containerServiceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @param containerServiceName The name of the container service in the specified subscription and - * resource group. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, containerServiceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, containerServiceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - containerServiceName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Deletes the specified container service in the specified subscription and resource group. The - * operation does not delete other resources created as part of creating a container service, - * including storage accounts, VMs, and availability sets. All the other resources created with the - * container service are part of the same resource group and can be deleted individually. - * @summary Deletes the specified container service. - * @param resourceGroupName The name of the resource group. - * @param containerServiceName The name of the container service in the specified subscription and - * resource group. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, containerServiceName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,containerServiceName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Gets a list of container services in the specified subscription and resource group. The - * operation returns properties of each container service including state, orchestrator, number of - * masters and agents, and FQDNs of masters and agents. - * @summary Gets a list of container services in the specified resource group. - * @param resourceGroupName The name of the resource group. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @param callback The callback - */ - listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @param options The optional parameters - * @param callback The callback - */ - listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - options - }, - listByResourceGroupOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates a container service with the specified configuration of orchestrator, - * masters, and agents. - * @summary Creates or updates a container service. - * @param resourceGroupName The name of the resource group. - * @param containerServiceName The name of the container service in the specified subscription and - * resource group. - * @param parameters Parameters supplied to the Create or Update a Container Service operation. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, containerServiceName: string, parameters: Models.ContainerService, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - containerServiceName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } - - /** - * Deletes the specified container service in the specified subscription and resource group. The - * operation does not delete other resources created as part of creating a container service, - * including storage accounts, VMs, and availability sets. All the other resources created with the - * container service are part of the same resource group and can be deleted individually. - * @summary Deletes the specified container service. - * @param resourceGroupName The name of the resource group. - * @param containerServiceName The name of the container service in the specified subscription and - * resource group. - * @param [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod(resourceGroupName: string, containerServiceName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - containerServiceName, - options - }, - beginDeleteMethodOperationSpec, - options); - } - - /** - * Gets a list of container services in the specified subscription. The operation returns - * properties of each container service including state, orchestrator, number of masters and - * agents, and FQDNs of masters and agents. - * @summary Gets a list of container services in the specified subscription. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; - } - - /** - * Gets a list of container services in the specified subscription and resource group. The - * operation returns properties of each container service including state, orchestrator, number of - * masters and agents, and FQDNs of masters and agents. - * @summary Gets a list of container services in the specified resource group. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByResourceGroupNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/containerServices", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ContainerServiceListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.containerServiceName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ContainerService - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ContainerServiceListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.containerServiceName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ContainerService, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ContainerService - }, - 201: { - bodyMapper: Mappers.ContainerService - }, - 202: { - bodyMapper: Mappers.ContainerService - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.containerServiceName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ContainerServiceListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ContainerServiceListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts b/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts index 52c24be5bd99..e5470bb2a190 100644 --- a/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts +++ b/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts @@ -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 @@ -449,6 +448,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -470,6 +472,9 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts b/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts index ae75b9bd3869..4ea103423d43 100644 --- a/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts +++ b/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts @@ -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 @@ -387,6 +386,9 @@ const listByHostGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/diskAccesses.ts b/sdk/compute/arm-compute/src/operations/diskAccesses.ts index 840735b7139e..e95dffd704d5 100644 --- a/sdk/compute/arm-compute/src/operations/diskAccesses.ts +++ b/sdk/compute/arm-compute/src/operations/diskAccesses.ts @@ -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 @@ -521,6 +520,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion2 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -542,6 +544,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion2 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts b/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts index 428767a6a919..9573d7617337 100644 --- a/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts +++ b/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts @@ -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 @@ -553,6 +552,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion2 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -574,6 +576,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion2 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -595,6 +600,9 @@ const listAssociatedResourcesNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion2 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/disks.ts b/sdk/compute/arm-compute/src/operations/disks.ts index 97002da76ce8..ecc5543e49b3 100644 --- a/sdk/compute/arm-compute/src/operations/disks.ts +++ b/sdk/compute/arm-compute/src/operations/disks.ts @@ -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 @@ -586,6 +585,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion2 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -607,6 +609,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion2 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/galleries.ts b/sdk/compute/arm-compute/src/operations/galleries.ts index f5b3dd565142..7bb6f9d49be8 100644 --- a/sdk/compute/arm-compute/src/operations/galleries.ts +++ b/sdk/compute/arm-compute/src/operations/galleries.ts @@ -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 @@ -444,6 +443,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -465,6 +467,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts b/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts index 6f21204e3e9e..00cb290c934c 100644 --- a/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts +++ b/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts @@ -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 @@ -453,6 +452,9 @@ const listByGalleryApplicationNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/galleryApplications.ts b/sdk/compute/arm-compute/src/operations/galleryApplications.ts index 08d78de63174..c98937542377 100644 --- a/sdk/compute/arm-compute/src/operations/galleryApplications.ts +++ b/sdk/compute/arm-compute/src/operations/galleryApplications.ts @@ -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 @@ -409,6 +408,9 @@ const listByGalleryNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts index 0799bdde9106..7d6e01840af7 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts @@ -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 @@ -432,6 +431,9 @@ const listByGalleryImageNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/galleryImages.ts b/sdk/compute/arm-compute/src/operations/galleryImages.ts index bdc5ac10b2ce..a362179062ca 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImages.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImages.ts @@ -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 @@ -407,6 +406,9 @@ const listByGalleryNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/images.ts b/sdk/compute/arm-compute/src/operations/images.ts index 6187e85ab7f9..3cb8f8698344 100644 --- a/sdk/compute/arm-compute/src/operations/images.ts +++ b/sdk/compute/arm-compute/src/operations/images.ts @@ -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 @@ -443,6 +442,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -464,6 +466,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/index.ts b/sdk/compute/arm-compute/src/operations/index.ts index be38385dadc1..6981d0952c5b 100644 --- a/sdk/compute/arm-compute/src/operations/index.ts +++ b/sdk/compute/arm-compute/src/operations/index.ts @@ -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 @@ -17,17 +16,19 @@ export * from "./sshPublicKeys"; export * from "./virtualMachineExtensionImages"; export * from "./virtualMachineExtensions"; export * from "./virtualMachineImages"; +export * from "./virtualMachineImagesEdgeZone"; export * from "./usageOperations"; export * from "./virtualMachines"; +export * from "./virtualMachineScaleSets"; export * from "./virtualMachineSizes"; export * from "./images"; -export * from "./virtualMachineScaleSets"; export * from "./virtualMachineScaleSetExtensions"; export * from "./virtualMachineScaleSetRollingUpgrades"; export * from "./virtualMachineScaleSetVMExtensions"; export * from "./virtualMachineScaleSetVMs"; export * from "./logAnalytics"; export * from "./virtualMachineRunCommands"; +export * from "./virtualMachineScaleSetVMRunCommands"; export * from "./resourceSkus"; export * from "./disks"; export * from "./snapshots"; @@ -38,4 +39,3 @@ export * from "./galleryImages"; export * from "./galleryImageVersions"; export * from "./galleryApplications"; export * from "./galleryApplicationVersions"; -export * from "./containerServices"; diff --git a/sdk/compute/arm-compute/src/operations/logAnalytics.ts b/sdk/compute/arm-compute/src/operations/logAnalytics.ts index 3734f06d68aa..6eb293790941 100644 --- a/sdk/compute/arm-compute/src/operations/logAnalytics.ts +++ b/sdk/compute/arm-compute/src/operations/logAnalytics.ts @@ -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 diff --git a/sdk/compute/arm-compute/src/operations/operations.ts b/sdk/compute/arm-compute/src/operations/operations.ts index 641f050bdd14..dec5eb098fc5 100644 --- a/sdk/compute/arm-compute/src/operations/operations.ts +++ b/sdk/compute/arm-compute/src/operations/operations.ts @@ -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 diff --git a/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts b/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts index 31fc32c8293e..dde78adc61f1 100644 --- a/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts +++ b/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts @@ -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 @@ -443,6 +442,9 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -464,6 +466,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/resourceSkus.ts b/sdk/compute/arm-compute/src/operations/resourceSkus.ts index db92867631a2..7cf76612ac89 100644 --- a/sdk/compute/arm-compute/src/operations/resourceSkus.ts +++ b/sdk/compute/arm-compute/src/operations/resourceSkus.ts @@ -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 @@ -56,7 +55,7 @@ export class ResourceSkus { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.ResourceSkusListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -67,8 +66,8 @@ export class ResourceSkus { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.ResourceSkusListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ResourceSkusListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -112,6 +111,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/snapshots.ts b/sdk/compute/arm-compute/src/operations/snapshots.ts index 5a5e9c9090c2..748f68b8c09d 100644 --- a/sdk/compute/arm-compute/src/operations/snapshots.ts +++ b/sdk/compute/arm-compute/src/operations/snapshots.ts @@ -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 @@ -588,6 +587,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion2 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -609,6 +611,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion2 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts b/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts index 5a109035ac24..e1abc960f854 100644 --- a/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts +++ b/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts @@ -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 @@ -506,6 +505,9 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -527,6 +529,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/usageOperations.ts b/sdk/compute/arm-compute/src/operations/usageOperations.ts index b6cae3039867..14f7a9d6406e 100644 --- a/sdk/compute/arm-compute/src/operations/usageOperations.ts +++ b/sdk/compute/arm-compute/src/operations/usageOperations.ts @@ -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 @@ -118,6 +117,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineExtensionImages.ts b/sdk/compute/arm-compute/src/operations/virtualMachineExtensionImages.ts index d429b13e72fe..b53521d45e15 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineExtensionImages.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineExtensionImages.ts @@ -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 diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts b/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts index 289e3d3134e9..a1d8b68fa3d8 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts @@ -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 diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineImages.ts b/sdk/compute/arm-compute/src/operations/virtualMachineImages.ts index 273097af54aa..111aa91f7d8a 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineImages.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineImages.ts @@ -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 diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineImagesEdgeZone.ts b/sdk/compute/arm-compute/src/operations/virtualMachineImagesEdgeZone.ts new file mode 100644 index 000000000000..c1ea54bba4af --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/virtualMachineImagesEdgeZone.ts @@ -0,0 +1,413 @@ +/* + * 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. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/virtualMachineImagesEdgeZoneMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a VirtualMachineImagesEdgeZone. */ +export class VirtualMachineImagesEdgeZone { + private readonly client: ComputeManagementClientContext; + + /** + * Create a VirtualMachineImagesEdgeZone. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * Gets a virtual machine image in an edge zone. + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param offer A valid image publisher offer. + * @param skus A valid image SKU. + * @param version A valid image SKU version. + * @param [options] The optional parameters + * @returns Promise + */ + get(location: string, edgeZone: string, publisherName: string, offer: string, skus: string, version: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param offer A valid image publisher offer. + * @param skus A valid image SKU. + * @param version A valid image SKU version. + * @param callback The callback + */ + get(location: string, edgeZone: string, publisherName: string, offer: string, skus: string, version: string, callback: msRest.ServiceCallback): void; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param offer A valid image publisher offer. + * @param skus A valid image SKU. + * @param version A valid image SKU version. + * @param options The optional parameters + * @param callback The callback + */ + get(location: string, edgeZone: string, publisherName: string, offer: string, skus: string, version: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(location: string, edgeZone: string, publisherName: string, offer: string, skus: string, version: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + edgeZone, + publisherName, + offer, + skus, + version, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of all virtual machine image versions for the specified location, edge zone, + * publisher, offer, and SKU. + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param offer A valid image publisher offer. + * @param skus A valid image SKU. + * @param [options] The optional parameters + * @returns Promise + */ + list(location: string, edgeZone: string, publisherName: string, offer: string, skus: string, options?: Models.VirtualMachineImagesEdgeZoneListOptionalParams): Promise; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param offer A valid image publisher offer. + * @param skus A valid image SKU. + * @param callback The callback + */ + list(location: string, edgeZone: string, publisherName: string, offer: string, skus: string, callback: msRest.ServiceCallback): void; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param offer A valid image publisher offer. + * @param skus A valid image SKU. + * @param options The optional parameters + * @param callback The callback + */ + list(location: string, edgeZone: string, publisherName: string, offer: string, skus: string, options: Models.VirtualMachineImagesEdgeZoneListOptionalParams, callback: msRest.ServiceCallback): void; + list(location: string, edgeZone: string, publisherName: string, offer: string, skus: string, options?: Models.VirtualMachineImagesEdgeZoneListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + edgeZone, + publisherName, + offer, + skus, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of virtual machine image offers for the specified location, edge zone and publisher. + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param [options] The optional parameters + * @returns Promise + */ + listOffers(location: string, edgeZone: string, publisherName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param callback The callback + */ + listOffers(location: string, edgeZone: string, publisherName: string, callback: msRest.ServiceCallback): void; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param options The optional parameters + * @param callback The callback + */ + listOffers(location: string, edgeZone: string, publisherName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listOffers(location: string, edgeZone: string, publisherName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + edgeZone, + publisherName, + options + }, + listOffersOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of virtual machine image publishers for the specified Azure location and edge zone. + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param [options] The optional parameters + * @returns Promise + */ + listPublishers(location: string, edgeZone: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param callback The callback + */ + listPublishers(location: string, edgeZone: string, callback: msRest.ServiceCallback): void; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param options The optional parameters + * @param callback The callback + */ + listPublishers(location: string, edgeZone: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPublishers(location: string, edgeZone: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + edgeZone, + options + }, + listPublishersOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and + * offer. + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param offer A valid image publisher offer. + * @param [options] The optional parameters + * @returns Promise + */ + listSkus(location: string, edgeZone: string, publisherName: string, offer: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param offer A valid image publisher offer. + * @param callback The callback + */ + listSkus(location: string, edgeZone: string, publisherName: string, offer: string, callback: msRest.ServiceCallback): void; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param offer A valid image publisher offer. + * @param options The optional parameters + * @param callback The callback + */ + listSkus(location: string, edgeZone: string, publisherName: string, offer: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSkus(location: string, edgeZone: string, publisherName: string, offer: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + edgeZone, + publisherName, + offer, + options + }, + listSkusOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}", + urlParameters: [ + Parameters.location0, + Parameters.edgeZone, + Parameters.publisherName, + Parameters.offer, + Parameters.skus, + Parameters.version, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineImage + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions", + urlParameters: [ + Parameters.location0, + Parameters.edgeZone, + Parameters.publisherName, + Parameters.offer, + Parameters.skus, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.expand0, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineImageResource" + } + } + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOffersOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers", + urlParameters: [ + Parameters.location0, + Parameters.edgeZone, + Parameters.publisherName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineImageResource" + } + } + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listPublishersOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers", + urlParameters: [ + Parameters.location0, + Parameters.edgeZone, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineImageResource" + } + } + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listSkusOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus", + urlParameters: [ + Parameters.location0, + Parameters.edgeZone, + Parameters.publisherName, + Parameters.offer, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineImageResource" + } + } + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts b/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts index 134182cee58b..db89b8bf21b2 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts @@ -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 @@ -9,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/virtualMachineRunCommandsMappers"; import * as Parameters from "../models/parameters"; @@ -86,6 +86,181 @@ export class VirtualMachineRunCommands { callback) as Promise; } + /** + * The operation to create or update the run command. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine where the run command should be created or + * updated. + * @param runCommandName The name of the virtual machine run command. + * @param runCommand Parameters supplied to the Create Virtual Machine RunCommand operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, vmName: string, runCommandName: string, runCommand: Models.VirtualMachineRunCommand, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,vmName,runCommandName,runCommand,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * The operation to update the run command. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine where the run command should be updated. + * @param runCommandName The name of the virtual machine run command. + * @param runCommand Parameters supplied to the Update Virtual Machine RunCommand operation. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, vmName: string, runCommandName: string, runCommand: Models.VirtualMachineRunCommandUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,vmName,runCommandName,runCommand,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * The operation to delete the run command. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine where the run command should be deleted. + * @param runCommandName The name of the virtual machine run command. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, vmName: string, runCommandName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,vmName,runCommandName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * The operation to get the run command. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine containing the run command. + * @param runCommandName The name of the virtual machine run command. + * @param [options] The optional parameters + * @returns Promise + */ + getByVirtualMachine(resourceGroupName: string, vmName: string, runCommandName: string, options?: Models.VirtualMachineRunCommandsGetByVirtualMachineOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine containing the run command. + * @param runCommandName The name of the virtual machine run command. + * @param callback The callback + */ + getByVirtualMachine(resourceGroupName: string, vmName: string, runCommandName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine containing the run command. + * @param runCommandName The name of the virtual machine run command. + * @param options The optional parameters + * @param callback The callback + */ + getByVirtualMachine(resourceGroupName: string, vmName: string, runCommandName: string, options: Models.VirtualMachineRunCommandsGetByVirtualMachineOptionalParams, callback: msRest.ServiceCallback): void; + getByVirtualMachine(resourceGroupName: string, vmName: string, runCommandName: string, options?: Models.VirtualMachineRunCommandsGetByVirtualMachineOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + vmName, + runCommandName, + options + }, + getByVirtualMachineOperationSpec, + callback) as Promise; + } + + /** + * The operation to get all run commands of a Virtual Machine. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine containing the run command. + * @param [options] The optional parameters + * @returns Promise + */ + listByVirtualMachine(resourceGroupName: string, vmName: string, options?: Models.VirtualMachineRunCommandsListByVirtualMachineOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine containing the run command. + * @param callback The callback + */ + listByVirtualMachine(resourceGroupName: string, vmName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine containing the run command. + * @param options The optional parameters + * @param callback The callback + */ + listByVirtualMachine(resourceGroupName: string, vmName: string, options: Models.VirtualMachineRunCommandsListByVirtualMachineOptionalParams, callback: msRest.ServiceCallback): void; + listByVirtualMachine(resourceGroupName: string, vmName: string, options?: Models.VirtualMachineRunCommandsListByVirtualMachineOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + vmName, + options + }, + listByVirtualMachineOperationSpec, + callback) as Promise; + } + + /** + * The operation to create or update the run command. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine where the run command should be created or + * updated. + * @param runCommandName The name of the virtual machine run command. + * @param runCommand Parameters supplied to the Create Virtual Machine RunCommand operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, vmName: string, runCommandName: string, runCommand: Models.VirtualMachineRunCommand, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + vmName, + runCommandName, + runCommand, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * The operation to update the run command. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine where the run command should be updated. + * @param runCommandName The name of the virtual machine run command. + * @param runCommand Parameters supplied to the Update Virtual Machine RunCommand operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, vmName: string, runCommandName: string, runCommand: Models.VirtualMachineRunCommandUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + vmName, + runCommandName, + runCommand, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * The operation to delete the run command. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine where the run command should be deleted. + * @param runCommandName The name of the virtual machine run command. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, vmName: string, runCommandName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + vmName, + runCommandName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + /** * Lists all available run commands for a subscription in a location. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -113,6 +288,34 @@ export class VirtualMachineRunCommands { listNextOperationSpec, callback) as Promise; } + + /** + * The operation to get all run commands of a Virtual Machine. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByVirtualMachineNext(nextPageLink: string, options?: Models.VirtualMachineRunCommandsListByVirtualMachineNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByVirtualMachineNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByVirtualMachineNext(nextPageLink: string, options: Models.VirtualMachineRunCommandsListByVirtualMachineNextOptionalParams, callback: msRest.ServiceCallback): void; + listByVirtualMachineNext(nextPageLink: string, options?: Models.VirtualMachineRunCommandsListByVirtualMachineNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByVirtualMachineNextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -166,6 +369,154 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; +const getByVirtualMachineOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.runCommandName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.expand0, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommand + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByVirtualMachineOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.expand0, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommandsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.runCommandName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "runCommand", + mapper: { + ...Mappers.VirtualMachineRunCommand, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommand + }, + 201: { + bodyMapper: Mappers.VirtualMachineRunCommand + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.runCommandName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "runCommand", + mapper: { + ...Mappers.VirtualMachineRunCommandUpdate, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommand + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.runCommandName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", @@ -173,6 +524,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -186,3 +540,28 @@ const listNextOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listByVirtualMachineNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.expand0, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommandsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts index 8b61f0ccfc09..77d868e009f9 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts @@ -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 @@ -390,6 +389,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts index 77d3e791f36c..e4113e992fac 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts @@ -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 diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts index 50181fa1a83a..7c7e580be969 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts @@ -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 @@ -38,7 +37,7 @@ export class VirtualMachineScaleSetVMExtensions { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, extensionParameters: Models.VirtualMachineExtension, options?: msRest.RequestOptionsBase): Promise { + createOrUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, extensionParameters: Models.VirtualMachineScaleSetVMExtension, options?: msRest.RequestOptionsBase): Promise { return this.beginCreateOrUpdate(resourceGroupName,vmScaleSetName,instanceId,vmExtensionName,extensionParameters,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } @@ -54,7 +53,7 @@ export class VirtualMachineScaleSetVMExtensions { * @param [options] The optional parameters * @returns Promise */ - update(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, extensionParameters: Models.VirtualMachineExtensionUpdate, options?: msRest.RequestOptionsBase): Promise { + update(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, extensionParameters: Models.VirtualMachineScaleSetVMExtensionUpdate, options?: msRest.RequestOptionsBase): Promise { return this.beginUpdate(resourceGroupName,vmScaleSetName,instanceId,vmExtensionName,extensionParameters,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } @@ -90,7 +89,7 @@ export class VirtualMachineScaleSetVMExtensions { * @param vmExtensionName The name of the virtual machine extension. * @param callback The callback */ - get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. @@ -99,8 +98,8 @@ export class VirtualMachineScaleSetVMExtensions { * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, options: Models.VirtualMachineScaleSetVMExtensionsGetOptionalParams, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, options?: Models.VirtualMachineScaleSetVMExtensionsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, options: Models.VirtualMachineScaleSetVMExtensionsGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, options?: Models.VirtualMachineScaleSetVMExtensionsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -128,7 +127,7 @@ export class VirtualMachineScaleSetVMExtensions { * @param instanceId The instance ID of the virtual machine. * @param callback The callback */ - list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. @@ -136,8 +135,8 @@ export class VirtualMachineScaleSetVMExtensions { * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options: Models.VirtualMachineScaleSetVMExtensionsListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: Models.VirtualMachineScaleSetVMExtensionsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options: Models.VirtualMachineScaleSetVMExtensionsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: Models.VirtualMachineScaleSetVMExtensionsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -160,7 +159,7 @@ export class VirtualMachineScaleSetVMExtensions { * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, extensionParameters: Models.VirtualMachineExtension, options?: msRest.RequestOptionsBase): Promise { + beginCreateOrUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, extensionParameters: Models.VirtualMachineScaleSetVMExtension, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -185,7 +184,7 @@ export class VirtualMachineScaleSetVMExtensions { * @param [options] The optional parameters * @returns Promise */ - beginUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, extensionParameters: Models.VirtualMachineExtensionUpdate, options?: msRest.RequestOptionsBase): Promise { + beginUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, extensionParameters: Models.VirtualMachineScaleSetVMExtensionUpdate, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -243,7 +242,7 @@ const getOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension }, default: { bodyMapper: Mappers.CloudError @@ -270,7 +269,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.VirtualMachineExtensionsListResult + bodyMapper: Mappers.VirtualMachineScaleSetVMExtensionsListResult }, default: { bodyMapper: Mappers.CloudError @@ -298,16 +297,16 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "extensionParameters", mapper: { - ...Mappers.VirtualMachineExtension, + ...Mappers.VirtualMachineScaleSetVMExtension, required: true } }, responses: { 200: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension }, 201: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension }, default: { bodyMapper: Mappers.CloudError @@ -335,13 +334,13 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "extensionParameters", mapper: { - ...Mappers.VirtualMachineExtensionUpdate, + ...Mappers.VirtualMachineScaleSetVMExtensionUpdate, required: true } }, responses: { 200: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension }, default: { bodyMapper: Mappers.CloudError diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts new file mode 100644 index 000000000000..36e6c052757f --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts @@ -0,0 +1,426 @@ +/* + * 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. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/virtualMachineScaleSetVMRunCommandsMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a VirtualMachineScaleSetVMRunCommands. */ +export class VirtualMachineScaleSetVMRunCommands { + private readonly client: ComputeManagementClientContext; + + /** + * Create a VirtualMachineScaleSetVMRunCommands. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * The operation to create or update the VMSS VM run command. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param runCommandName The name of the virtual machine run command. + * @param runCommand Parameters supplied to the Create Virtual Machine RunCommand operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, runCommand: Models.VirtualMachineRunCommand, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,vmScaleSetName,instanceId,runCommandName,runCommand,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * The operation to update the VMSS VM run command. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param runCommandName The name of the virtual machine run command. + * @param runCommand Parameters supplied to the Update Virtual Machine RunCommand operation. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, runCommand: Models.VirtualMachineRunCommandUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,vmScaleSetName,instanceId,runCommandName,runCommand,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * The operation to delete the VMSS VM run command. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param runCommandName The name of the virtual machine run command. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,vmScaleSetName,instanceId,runCommandName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * The operation to get the VMSS VM run command. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param runCommandName The name of the virtual machine run command. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, options?: Models.VirtualMachineScaleSetVMRunCommandsGetOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param runCommandName The name of the virtual machine run command. + * @param callback The callback + */ + get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param runCommandName The name of the virtual machine run command. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, options: Models.VirtualMachineScaleSetVMRunCommandsGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, options?: Models.VirtualMachineScaleSetVMRunCommandsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + vmScaleSetName, + instanceId, + runCommandName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * The operation to get all run commands of an instance in Virtual Machine Scaleset. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: Models.VirtualMachineScaleSetVMRunCommandsListOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param callback The callback + */ + list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options: Models.VirtualMachineScaleSetVMRunCommandsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: Models.VirtualMachineScaleSetVMRunCommandsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + vmScaleSetName, + instanceId, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * The operation to create or update the VMSS VM run command. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param runCommandName The name of the virtual machine run command. + * @param runCommand Parameters supplied to the Create Virtual Machine RunCommand operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, runCommand: Models.VirtualMachineRunCommand, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + vmScaleSetName, + instanceId, + runCommandName, + runCommand, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * The operation to update the VMSS VM run command. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param runCommandName The name of the virtual machine run command. + * @param runCommand Parameters supplied to the Update Virtual Machine RunCommand operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, runCommand: Models.VirtualMachineRunCommandUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + vmScaleSetName, + instanceId, + runCommandName, + runCommand, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * The operation to delete the VMSS VM run command. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param runCommandName The name of the virtual machine run command. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + vmScaleSetName, + instanceId, + runCommandName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * The operation to get all run commands of an instance in Virtual Machine Scaleset. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.VirtualMachineScaleSetVMRunCommandsListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.VirtualMachineScaleSetVMRunCommandsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.VirtualMachineScaleSetVMRunCommandsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmScaleSetName, + Parameters.instanceId, + Parameters.runCommandName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.expand0, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommand + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmScaleSetName, + Parameters.instanceId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.expand0, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommandsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmScaleSetName, + Parameters.instanceId, + Parameters.runCommandName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "runCommand", + mapper: { + ...Mappers.VirtualMachineRunCommand, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommand + }, + 201: { + bodyMapper: Mappers.VirtualMachineRunCommand + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmScaleSetName, + Parameters.instanceId, + Parameters.runCommandName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "runCommand", + mapper: { + ...Mappers.VirtualMachineRunCommandUpdate, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommand + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmScaleSetName, + Parameters.instanceId, + Parameters.runCommandName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.expand0, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommandsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts index 4bebe6e62fcb..9a6664c30959 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts @@ -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 @@ -92,7 +91,7 @@ export class VirtualMachineScaleSetVMs { * @param [options] The optional parameters * @returns Promise */ - deleteMethod(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise { + deleteMethod(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: Models.VirtualMachineScaleSetVMsDeleteMethodOptionalParams): Promise { return this.beginDeleteMethod(resourceGroupName,vmScaleSetName,instanceId,options) .then(lroPoller => lroPoller.pollUntilFinished()); } @@ -450,7 +449,7 @@ export class VirtualMachineScaleSetVMs { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise { + beginDeleteMethod(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: Models.VirtualMachineScaleSetVMsBeginDeleteMethodOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -593,7 +592,7 @@ export class VirtualMachineScaleSetVMs { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.VirtualMachineScaleSetVMsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -604,8 +603,8 @@ export class VirtualMachineScaleSetVMs { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.VirtualMachineScaleSetVMsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.VirtualMachineScaleSetVMsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -878,6 +877,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ + Parameters.forceDeletion, Parameters.apiVersion0 ], headerParameters: [ @@ -1061,6 +1061,12 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.filter, + Parameters.select, + Parameters.expand0, + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts index ddb59ba58530..c1232d0d43fc 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts @@ -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 @@ -27,6 +26,34 @@ export class VirtualMachineScaleSets { this.client = client; } + /** + * Gets all the VM scale sets under the specified subscription for the specified location. + * @param location The location for which VM scale sets under the subscription are queried. + * @param [options] The optional parameters + * @returns Promise + */ + listByLocation(location: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location The location for which VM scale sets under the subscription are queried. + * @param callback The callback + */ + listByLocation(location: string, callback: msRest.ServiceCallback): void; + /** + * @param location The location for which VM scale sets under the subscription are queried. + * @param options The optional parameters + * @param callback The callback + */ + listByLocation(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByLocation(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + options + }, + listByLocationOperationSpec, + callback) as Promise; + } + /** * Create or update a VM scale set. * @param resourceGroupName The name of the resource group. @@ -60,7 +87,7 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - deleteMethod(resourceGroupName: string, vmScaleSetName: string, options?: msRest.RequestOptionsBase): Promise { + deleteMethod(resourceGroupName: string, vmScaleSetName: string, options?: Models.VirtualMachineScaleSetsDeleteMethodOptionalParams): Promise { return this.beginDeleteMethod(resourceGroupName,vmScaleSetName,options) .then(lroPoller => lroPoller.pollUntilFinished()); } @@ -119,7 +146,7 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - deleteInstances(resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: Models.VirtualMachineScaleSetVMInstanceRequiredIDs, options?: msRest.RequestOptionsBase): Promise { + deleteInstances(resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: Models.VirtualMachineScaleSetVMInstanceRequiredIDs, options?: Models.VirtualMachineScaleSetsDeleteInstancesOptionalParams): Promise { return this.beginDeleteInstances(resourceGroupName,vmScaleSetName,vmInstanceIDs,options) .then(lroPoller => lroPoller.pollUntilFinished()); } @@ -518,7 +545,7 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod(resourceGroupName: string, vmScaleSetName: string, options?: msRest.RequestOptionsBase): Promise { + beginDeleteMethod(resourceGroupName: string, vmScaleSetName: string, options?: Models.VirtualMachineScaleSetsBeginDeleteMethodOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -557,7 +584,7 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - beginDeleteInstances(resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: Models.VirtualMachineScaleSetVMInstanceRequiredIDs, options?: msRest.RequestOptionsBase): Promise { + beginDeleteInstances(resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: Models.VirtualMachineScaleSetVMInstanceRequiredIDs, options?: Models.VirtualMachineScaleSetsBeginDeleteInstancesOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -744,6 +771,34 @@ export class VirtualMachineScaleSets { options); } + /** + * Gets all the VM scale sets under the specified subscription for the specified location. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByLocationNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByLocationNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByLocationNextOperationSpec, + callback) as Promise; + } + /** * Gets a list of all VM scale sets under a resource group. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -862,6 +917,30 @@ export class VirtualMachineScaleSets { // Operation Specifications const serializer = new msRest.Serializer(Mappers); +const listByLocationOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachineScaleSets", + urlParameters: [ + Parameters.location1, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineScaleSetListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", @@ -1141,6 +1220,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ + Parameters.forceDeletion, Parameters.apiVersion0 ], headerParameters: [ @@ -1197,6 +1277,7 @@ const beginDeleteInstancesOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ + Parameters.forceDeletion, Parameters.apiVersion0 ], headerParameters: [ @@ -1499,6 +1580,30 @@ const beginSetOrchestrationServiceStateOperationSpec: msRest.OperationSpec = { serializer }; +const listByLocationNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineScaleSetListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", @@ -1506,6 +1611,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1527,6 +1635,9 @@ const listAllNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1548,6 +1659,9 @@ const listSkusNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1569,6 +1683,9 @@ const getOSUpgradeHistoryNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineSizes.ts b/sdk/compute/arm-compute/src/operations/virtualMachineSizes.ts index a5554fd0825b..5f3bd17109b3 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineSizes.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineSizes.ts @@ -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 diff --git a/sdk/compute/arm-compute/src/operations/virtualMachines.ts b/sdk/compute/arm-compute/src/operations/virtualMachines.ts index ce51df188f82..0edafcf312f1 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachines.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachines.ts @@ -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 @@ -103,7 +102,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - deleteMethod(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise { + deleteMethod(resourceGroupName: string, vmName: string, options?: Models.VirtualMachinesDeleteMethodOptionalParams): Promise { return this.beginDeleteMethod(resourceGroupName,vmName,options) .then(lroPoller => lroPoller.pollUntilFinished()); } @@ -482,6 +481,19 @@ export class VirtualMachines { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * Installs patches on the VM. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine. + * @param installPatchesInput Input for InstallPatches as directly received by the API + * @param [options] The optional parameters + * @returns Promise + */ + installPatches(resourceGroupName: string, vmName: string, installPatchesInput: Models.VirtualMachineInstallPatchesParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginInstallPatches(resourceGroupName,vmName,installPatchesInput,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * Run command on the VM. * @param resourceGroupName The name of the resource group. @@ -564,7 +576,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise { + beginDeleteMethod(resourceGroupName: string, vmName: string, options?: Models.VirtualMachinesBeginDeleteMethodOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -758,6 +770,26 @@ export class VirtualMachines { options); } + /** + * Installs patches on the VM. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine. + * @param installPatchesInput Input for InstallPatches as directly received by the API + * @param [options] The optional parameters + * @returns Promise + */ + beginInstallPatches(resourceGroupName: string, vmName: string, installPatchesInput: Models.VirtualMachineInstallPatchesParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + vmName, + installPatchesInput, + options + }, + beginInstallPatchesOperationSpec, + options); + } + /** * Run command on the VM. * @param resourceGroupName The name of the resource group. @@ -842,7 +874,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - listAllNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listAllNext(nextPageLink: string, options?: Models.VirtualMachinesListAllNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -853,8 +885,8 @@ export class VirtualMachines { * @param options The optional parameters * @param callback The callback */ - listAllNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listAllNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listAllNext(nextPageLink: string, options: Models.VirtualMachinesListAllNextOptionalParams, callback: msRest.ServiceCallback): void; + listAllNext(nextPageLink: string, options?: Models.VirtualMachinesListAllNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -1180,9 +1212,6 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.VirtualMachine }, - 201: { - bodyMapper: Mappers.VirtualMachine - }, default: { bodyMapper: Mappers.CloudError } @@ -1199,6 +1228,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ + Parameters.forceDeletion, Parameters.apiVersion0 ], headerParameters: [ @@ -1465,6 +1495,39 @@ const beginAssessPatchesOperationSpec: msRest.OperationSpec = { serializer }; +const beginInstallPatchesOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/installPatches", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "installPatchesInput", + mapper: { + ...Mappers.VirtualMachineInstallPatchesParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineInstallPatchesResult + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginRunCommandOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommand", @@ -1505,6 +1568,9 @@ const listByLocationNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1526,6 +1592,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1547,6 +1616,10 @@ const listAllNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.statusOnly + ], headerParameters: [ Parameters.acceptLanguage ],