From b7974344e58572533d4fbf13acbd43ace7928ffc Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Wed, 28 Oct 2020 03:50:01 +0000 Subject: [PATCH] Generated from 9dc9f369a46f8eac34b8a771b3697e2887d507e3 --- 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 | 16 +- .../src/models/containerServicesMappers.ts | 15 +- .../src/models/dedicatedHostGroupsMappers.ts | 16 +- .../src/models/dedicatedHostsMappers.ts | 16 +- .../src/models/diskAccessesMappers.ts | 15 +- .../src/models/diskEncryptionSetsMappers.ts | 15 +- .../arm-compute/src/models/disksMappers.ts | 15 +- .../src/models/galleriesMappers.ts | 15 +- .../galleryApplicationVersionsMappers.ts | 15 +- .../src/models/galleryApplicationsMappers.ts | 15 +- .../src/models/galleryImageVersionsMappers.ts | 15 +- .../src/models/galleryImagesMappers.ts | 15 +- .../models/gallerySharingProfileMappers.ts | 203 +++ .../arm-compute/src/models/imagesMappers.ts | 16 +- sdk/compute/arm-compute/src/models/index.ts | 1474 +++++++++++++++-- .../src/models/logAnalyticsMappers.ts | 4 +- sdk/compute/arm-compute/src/models/mappers.ts | 1070 +++++++++++- .../src/models/operationsMappers.ts | 4 +- .../arm-compute/src/models/parameters.ts | 51 +- .../models/proximityPlacementGroupsMappers.ts | 16 +- .../src/models/resourceSkusMappers.ts | 4 +- .../src/models/sharedGalleriesMappers.ts | 26 + .../sharedGalleryImageVersionsMappers.ts | 26 + .../src/models/sharedGalleryImagesMappers.ts | 26 + .../src/models/snapshotsMappers.ts | 15 +- .../src/models/sshPublicKeysMappers.ts | 16 +- .../src/models/usageOperationsMappers.ts | 4 +- .../virtualMachineExtensionImagesMappers.ts | 15 +- .../models/virtualMachineExtensionsMappers.ts | 16 +- .../src/models/virtualMachineImagesMappers.ts | 15 +- .../virtualMachineRunCommandsMappers.ts | 215 ++- ...virtualMachineScaleSetExtensionsMappers.ts | 15 +- ...alMachineScaleSetRollingUpgradesMappers.ts | 15 +- ...rtualMachineScaleSetVMExtensionsMappers.ts | 32 +- ...tualMachineScaleSetVMRunCommandsMappers.ts | 220 +++ .../virtualMachineScaleSetVMsMappers.ts | 14 +- .../models/virtualMachineScaleSetsMappers.ts | 16 +- .../src/models/virtualMachineSizesMappers.ts | 4 +- .../src/models/virtualMachinesMappers.ts | 15 +- .../src/operations/availabilitySets.ts | 18 +- .../src/operations/containerServices.ts | 11 +- .../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 | 20 +- .../operations/galleryApplicationVersions.ts | 8 +- .../src/operations/galleryApplications.ts | 8 +- .../src/operations/galleryImageVersions.ts | 70 +- .../src/operations/galleryImages.ts | 40 +- .../src/operations/gallerySharingProfile.ts | 98 ++ .../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 +- .../src/operations/sharedGalleries.ts | 192 +++ .../operations/sharedGalleryImageVersions.ts | 224 +++ .../src/operations/sharedGalleryImages.ts | 205 +++ .../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 +- .../operations/virtualMachineRunCommands.ts | 385 ++++- .../virtualMachineScaleSetExtensions.ts | 8 +- .../virtualMachineScaleSetRollingUpgrades.ts | 5 +- .../virtualMachineScaleSetVMExtensions.ts | 39 +- .../virtualMachineScaleSetVMRunCommands.ts | 426 +++++ .../operations/virtualMachineScaleSetVMs.ts | 17 +- .../src/operations/virtualMachineScaleSets.ts | 17 +- .../src/operations/virtualMachineSizes.ts | 5 +- .../src/operations/virtualMachines.ts | 26 +- 80 files changed, 5292 insertions(+), 450 deletions(-) create mode 100644 sdk/compute/arm-compute/src/models/gallerySharingProfileMappers.ts create mode 100644 sdk/compute/arm-compute/src/models/sharedGalleriesMappers.ts create mode 100644 sdk/compute/arm-compute/src/models/sharedGalleryImageVersionsMappers.ts create mode 100644 sdk/compute/arm-compute/src/models/sharedGalleryImagesMappers.ts create mode 100644 sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMRunCommandsMappers.ts create mode 100644 sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts create mode 100644 sdk/compute/arm-compute/src/operations/sharedGalleries.ts create mode 100644 sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts create mode 100644 sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts create mode 100644 sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts 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..0e91e0f8590a 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 @@ -37,6 +36,7 @@ class ComputeManagementClient extends ComputeManagementClientContext { virtualMachineScaleSetVMs: operations.VirtualMachineScaleSetVMs; logAnalytics: operations.LogAnalytics; virtualMachineRunCommands: operations.VirtualMachineRunCommands; + virtualMachineScaleSetVMRunCommands: operations.VirtualMachineScaleSetVMRunCommands; resourceSkus: operations.ResourceSkus; disks: operations.Disks; snapshots: operations.Snapshots; @@ -47,6 +47,10 @@ class ComputeManagementClient extends ComputeManagementClientContext { galleryImageVersions: operations.GalleryImageVersions; galleryApplications: operations.GalleryApplications; galleryApplicationVersions: operations.GalleryApplicationVersions; + gallerySharingProfile: operations.GallerySharingProfile; + sharedGalleries: operations.SharedGalleries; + sharedGalleryImages: operations.SharedGalleryImages; + sharedGalleryImageVersions: operations.SharedGalleryImageVersions; containerServices: operations.ContainerServices; /** @@ -78,6 +82,7 @@ class ComputeManagementClient extends ComputeManagementClientContext { this.virtualMachineScaleSetVMs = new operations.VirtualMachineScaleSetVMs(this); this.logAnalytics = new operations.LogAnalytics(this); this.virtualMachineRunCommands = new operations.VirtualMachineRunCommands(this); + this.virtualMachineScaleSetVMRunCommands = new operations.VirtualMachineScaleSetVMRunCommands(this); this.resourceSkus = new operations.ResourceSkus(this); this.disks = new operations.Disks(this); this.snapshots = new operations.Snapshots(this); @@ -88,6 +93,10 @@ class ComputeManagementClient extends ComputeManagementClientContext { this.galleryImageVersions = new operations.GalleryImageVersions(this); this.galleryApplications = new operations.GalleryApplications(this); this.galleryApplicationVersions = new operations.GalleryApplicationVersions(this); + this.gallerySharingProfile = new operations.GallerySharingProfile(this); + this.sharedGalleries = new operations.SharedGalleries(this); + this.sharedGalleryImages = new operations.SharedGalleryImages(this); + this.sharedGalleryImageVersions = new operations.SharedGalleryImageVersions(this); this.containerServices = new operations.ContainerServices(this); } } 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..2560ba26277f 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. @@ -78,6 +78,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -129,10 +130,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -150,6 +155,7 @@ export { UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -169,6 +175,10 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -197,6 +207,8 @@ export { VirtualMachineScaleSetUpdateStorageProfile, VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/containerServicesMappers.ts b/sdk/compute/arm-compute/src/models/containerServicesMappers.ts index f51c43681cb0..1c7bec08b7bb 100644 --- a/sdk/compute/arm-compute/src/models/containerServicesMappers.ts +++ b/sdk/compute/arm-compute/src/models/containerServicesMappers.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. @@ -75,6 +75,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -124,10 +125,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -143,6 +148,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -161,6 +167,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -183,6 +192,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, 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..8cfe32c26b94 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. @@ -78,6 +78,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -129,10 +130,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -150,6 +155,7 @@ export { UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -169,6 +175,10 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -197,6 +207,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..0966557f645c 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. @@ -78,6 +78,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -129,10 +130,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -150,6 +155,7 @@ export { UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -169,6 +175,10 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -197,6 +207,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..2906823a3303 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. @@ -76,6 +76,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -127,10 +128,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -146,6 +151,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -164,6 +170,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -186,6 +195,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..7fce422f0f61 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. @@ -76,6 +76,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -126,10 +127,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -145,6 +150,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -163,6 +169,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -185,6 +194,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..d6274061d648 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. @@ -77,6 +77,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -127,10 +128,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -146,6 +151,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -164,6 +170,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -186,6 +195,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..d2522a1d547c 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. @@ -74,6 +74,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -124,10 +125,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -143,6 +148,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -161,6 +167,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -183,6 +192,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..24cd5e29f5b8 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. @@ -75,6 +75,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -124,10 +125,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -143,6 +148,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -161,6 +167,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -183,6 +192,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..4089d7f9ca60 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. @@ -75,6 +75,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -124,10 +125,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -143,6 +148,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -161,6 +167,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -183,6 +192,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..1b4c8c3b2a75 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. @@ -74,6 +74,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -124,10 +125,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -143,6 +148,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -161,6 +167,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -183,6 +192,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..f4699245f91f 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. @@ -74,6 +74,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageList, GalleryImageUpdate, @@ -124,10 +125,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -143,6 +148,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -161,6 +167,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -183,6 +192,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/gallerySharingProfileMappers.ts b/sdk/compute/arm-compute/src/models/gallerySharingProfileMappers.ts new file mode 100644 index 000000000000..555113fc1cf3 --- /dev/null +++ b/sdk/compute/arm-compute/src/models/gallerySharingProfileMappers.ts @@ -0,0 +1,203 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + AdditionalCapabilities, + AdditionalUnattendContent, + ApiEntityReference, + ApiError, + ApiErrorBase, + AutomaticOSUpgradePolicy, + AutomaticOSUpgradeProperties, + AutomaticRepairsPolicy, + AvailabilitySet, + AvailablePatchSummary, + BaseResource, + BillingProfile, + BootDiagnostics, + BootDiagnosticsInstanceView, + CloudError, + ContainerService, + ContainerServiceAgentPoolProfile, + ContainerServiceCustomProfile, + ContainerServiceDiagnosticsProfile, + ContainerServiceLinuxProfile, + ContainerServiceMasterProfile, + ContainerServiceOrchestratorProfile, + ContainerServiceServicePrincipalProfile, + ContainerServiceSshConfiguration, + ContainerServiceSshPublicKey, + ContainerServiceVMDiagnostics, + ContainerServiceWindowsProfile, + CreationData, + DataDisk, + DataDiskImage, + DataDiskImageEncryption, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupInstanceView, + DedicatedHostInstanceView, + DedicatedHostInstanceViewWithName, + DiagnosticsProfile, + DiffDiskSettings, + Disallowed, + DisallowedConfiguration, + Disk, + DiskAccess, + DiskEncryptionSet, + DiskEncryptionSetParameters, + DiskEncryptionSettings, + DiskImageEncryption, + DiskInstanceView, + DiskSku, + Encryption, + EncryptionImages, + EncryptionSetIdentity, + EncryptionSettingsCollection, + EncryptionSettingsElement, + Gallery, + GalleryApplication, + GalleryApplicationUpdate, + GalleryApplicationVersion, + GalleryApplicationVersionPublishingProfile, + GalleryApplicationVersionUpdate, + GalleryArtifactPublishingProfileBase, + GalleryArtifactVersionSource, + GalleryDataDiskImage, + GalleryDiskImage, + GalleryIdentifier, + GalleryImage, + GalleryImageFeature, + GalleryImageIdentifier, + GalleryImageUpdate, + GalleryImageVersion, + GalleryImageVersionPublishingProfile, + GalleryImageVersionStorageProfile, + GalleryImageVersionUpdate, + GalleryOSDiskImage, + GalleryUpdate, + HardwareProfile, + Image, + ImageDataDisk, + ImageDisk, + ImageDiskReference, + ImageOSDisk, + ImagePurchasePlan, + ImageReference, + ImageStorageProfile, + InnerError, + InstanceViewStatus, + KeyVaultAndKeyReference, + KeyVaultAndSecretReference, + KeyVaultKeyReference, + KeyVaultSecretReference, + LastPatchInstallationSummary, + LinuxConfiguration, + MaintenanceRedeployStatus, + ManagedDiskParameters, + NetworkInterfaceReference, + NetworkProfile, + OSDisk, + OSDiskImage, + OSDiskImageEncryption, + OSProfile, + PatchSettings, + Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, + ProximityPlacementGroup, + PurchasePlan, + RecommendedMachineConfiguration, + RegionalReplicationStatus, + ReplicationStatus, + Resource, + ResourceRange, + RollingUpgradePolicy, + RollingUpgradeProgressInfo, + RollingUpgradeRunningStatus, + RollingUpgradeStatusInfo, + RunCommandInputParameter, + ScaleInPolicy, + ScheduledEventsProfile, + SecurityProfile, + ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, + Sku, + Snapshot, + SnapshotSku, + SourceVault, + SshConfiguration, + SshPublicKey, + SshPublicKeyResource, + StorageProfile, + SubResource, + SubResourceReadOnly, + SubResourceWithColocationStatus, + TargetRegion, + TerminateNotificationProfile, + UpdateResourceDefinition, + UpgradePolicy, + UserArtifactManage, + UserArtifactSource, + VaultCertificate, + VaultSecretGroup, + VirtualHardDisk, + VirtualMachine, + VirtualMachineAgentInstanceView, + VirtualMachineCaptureResult, + VirtualMachineExtension, + VirtualMachineExtensionHandlerInstanceView, + VirtualMachineExtensionImage, + VirtualMachineExtensionInstanceView, + VirtualMachineHealthStatus, + VirtualMachineIdentity, + VirtualMachineIdentityUserAssignedIdentitiesValue, + VirtualMachineImage, + VirtualMachineImageResource, + VirtualMachineInstanceView, + VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineScaleSet, + VirtualMachineScaleSetDataDisk, + VirtualMachineScaleSetExtension, + VirtualMachineScaleSetExtensionProfile, + VirtualMachineScaleSetExtensionUpdate, + VirtualMachineScaleSetIdentity, + VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue, + VirtualMachineScaleSetIPConfiguration, + VirtualMachineScaleSetIpTag, + VirtualMachineScaleSetManagedDiskParameters, + VirtualMachineScaleSetNetworkConfiguration, + VirtualMachineScaleSetNetworkConfigurationDnsSettings, + VirtualMachineScaleSetNetworkProfile, + VirtualMachineScaleSetOSDisk, + VirtualMachineScaleSetOSProfile, + VirtualMachineScaleSetPublicIPAddressConfiguration, + VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, + VirtualMachineScaleSetStorageProfile, + VirtualMachineScaleSetUpdateIPConfiguration, + VirtualMachineScaleSetUpdateNetworkConfiguration, + VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, + VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, + VirtualMachineScaleSetVMInstanceView, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProfile, + VirtualMachineScaleSetVMProtectionPolicy, + WindowsConfiguration, + WinRMConfiguration, + WinRMListener +} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/imagesMappers.ts b/sdk/compute/arm-compute/src/models/imagesMappers.ts index 69e44f43cd84..ab83bf8500f7 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. @@ -77,6 +77,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -129,10 +130,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -150,6 +155,7 @@ export { UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -169,6 +175,10 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -197,6 +207,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..ef121138c175 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. @@ -746,6 +746,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 +851,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 +914,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. */ @@ -4683,6 +4808,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. */ @@ -5663,6 +5951,39 @@ export interface GalleryIdentifier { readonly uniqueName?: string; } +/** + * Group of the gallery sharing profile + */ +export interface SharingProfileGroup { + /** + * This property allows you to specify the type of sharing group.

Possible values are: + *

**Subscriptions**

**AADTenants**. Possible values include: 'Subscriptions', + * 'AADTenants' + */ + type?: SharingProfileGroupTypes; + /** + * A list of subscription/tenant ids the gallery is aimed to be shared to. + */ + ids?: string[]; +} + +/** + * Profile for gallery sharing to subscription or tenant + */ +export interface SharingProfile { + /** + * This property allows you to specify the permission of sharing gallery.

Possible + * values are:

**Private**

**Groups**. Possible values include: 'Private', + * 'Groups' + */ + permissions?: GallerySharingPermissionTypes; + /** + * A list of sharing profile groups. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly groups?: SharingProfileGroup[]; +} + /** * Specifies information about the Shared Image Gallery that you want to create or update. */ @@ -5679,6 +6000,7 @@ export interface Gallery extends Resource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningState; + sharingProfile?: SharingProfile; } /** @@ -5722,6 +6044,7 @@ export interface GalleryUpdate extends UpdateResourceDefinition { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningState; + sharingProfile?: SharingProfile; } /** @@ -5796,13 +6119,35 @@ export interface GalleryApplicationUpdate extends UpdateResourceDefinition { */ export interface UserArtifactSource { /** - * Required. The fileName of the artifact. + * Required. The mediaLink of the artifact, must be a readable storage page blob. */ - fileName: string; + mediaLink: string; /** - * Required. The mediaLink of the artifact, must be a readable storage blob. + * Optional. The defaultConfigurationLink of the artifact, must be a readable storage page blob. */ - mediaLink: string; + defaultConfigurationLink?: string; +} + +/** + * An interface representing UserArtifactManage. + */ +export interface UserArtifactManage { + /** + * Required. The path and arguments to install the gallery application. This is limited to 4096 + * characters. + */ + install: string; + /** + * Required. The path and arguments to remove the gallery application. This is limited to 4096 + * characters. + */ + remove: string; + /** + * Optional. The path and arguments to update the gallery application. If not present, then + * update operation will invoke remove command on the previous version and install command on the + * current version of the gallery application. This is limited to 4096 characters. + */ + update?: string; } /** @@ -5825,12 +6170,12 @@ export interface GalleryArtifactPublishingProfileBase { */ excludeFromLatest?: boolean; /** - * The timestamp for when the gallery Image Version is published. + * The timestamp for when the gallery image version is published. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly publishedDate?: Date; /** - * The end of life date of the gallery Image Version. This property can be used for + * The end of life date of the gallery image version. This property can be used for * decommissioning purposes. This property is updatable. */ endOfLifeDate?: Date; @@ -5842,15 +6187,11 @@ export interface GalleryArtifactPublishingProfileBase { } /** - * The publishing profile of a gallery Image Version. + * The publishing profile of a gallery image version. */ export interface GalleryApplicationVersionPublishingProfile extends GalleryArtifactPublishingProfileBase { source: UserArtifactSource; - /** - * Optional. May be used to help process this file. The type of file contained in the source, - * e.g. zip, json, etc. - */ - contentType?: string; + manageActions?: UserArtifactManage; /** * Optional. Whether or not this application reports health. */ @@ -5862,7 +6203,7 @@ export interface GalleryApplicationVersionPublishingProfile extends GalleryArtif */ export interface RegionalReplicationStatus { /** - * The region to which the gallery Image Version is being replicated to. + * The region to which the gallery image version is being replicated to. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly region?: string; @@ -5885,7 +6226,7 @@ export interface RegionalReplicationStatus { } /** - * This is the replication status of the gallery Image Version. + * This is the replication status of the gallery image version. */ export interface ReplicationStatus { /** @@ -5938,19 +6279,33 @@ export interface GalleryApplicationVersionUpdate extends UpdateResourceDefinitio } /** - * This is the gallery Image Definition identifier. + * A feature for gallery image. + */ +export interface GalleryImageFeature { + /** + * The name of the gallery image feature. + */ + name?: string; + /** + * The value of the gallery image feature. + */ + value?: string; +} + +/** + * This is the gallery image definition identifier. */ export interface GalleryImageIdentifier { /** - * The name of the gallery Image Definition publisher. + * The name of the gallery image definition publisher. */ publisher: string; /** - * The name of the gallery Image Definition offer. + * The name of the gallery image definition offer. */ offer: string; /** - * The name of the gallery Image Definition SKU. + * The name of the gallery image definition SKU. */ sku: string; } @@ -5989,7 +6344,7 @@ export interface Disallowed { } /** - * Describes the gallery Image Definition purchase plan. This is used by marketplace images. + * Describes the gallery image definition purchase plan. This is used by marketplace images. */ export interface ImagePurchasePlan { /** @@ -6007,15 +6362,15 @@ export interface ImagePurchasePlan { } /** - * Specifies information about the gallery Image Definition that you want to create or update. + * Specifies information about the gallery image definition that you want to create or update. */ export interface GalleryImage extends Resource { /** - * The description of this gallery Image Definition resource. This property is updatable. + * The description of this gallery image definition resource. This property is updatable. */ description?: string; /** - * The Eula agreement for the gallery Image Definition. + * The Eula agreement for the gallery image definition. */ eula?: string; /** @@ -6043,7 +6398,11 @@ export interface GalleryImage extends Resource { */ hyperVGeneration?: HyperVGeneration; /** - * The end of life date of the gallery Image Definition. This property can be used for + * A list of gallery image features. + */ + features?: GalleryImageFeature[]; + /** + * The end of life date of the gallery image definition. This property can be used for * decommissioning purposes. This property is updatable. */ endOfLifeDate?: Date; @@ -6052,7 +6411,7 @@ export interface GalleryImage extends Resource { disallowed?: Disallowed; purchasePlan?: ImagePurchasePlan; /** - * The current state of the gallery Image Definition. The provisioning state, which only appears + * The current state of the gallery image definition. The provisioning state, which only appears * in the response. Possible values include: 'Creating', 'Updating', 'Failed', 'Succeeded', * 'Deleting', 'Migrating' * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -6061,15 +6420,15 @@ export interface GalleryImage extends Resource { } /** - * Specifies information about the gallery Image Definition that you want to update. + * Specifies information about the gallery image definition that you want to update. */ export interface GalleryImageUpdate extends UpdateResourceDefinition { /** - * The description of this gallery Image Definition resource. This property is updatable. + * The description of this gallery image definition resource. This property is updatable. */ description?: string; /** - * The Eula agreement for the gallery Image Definition. + * The Eula agreement for the gallery image definition. */ eula?: string; /** @@ -6097,7 +6456,11 @@ export interface GalleryImageUpdate extends UpdateResourceDefinition { */ hyperVGeneration?: HyperVGeneration; /** - * The end of life date of the gallery Image Definition. This property can be used for + * A list of gallery image features. + */ + features?: GalleryImageFeature[]; + /** + * The end of life date of the gallery image definition. This property can be used for * decommissioning purposes. This property is updatable. */ endOfLifeDate?: Date; @@ -6106,7 +6469,7 @@ export interface GalleryImageUpdate extends UpdateResourceDefinition { disallowed?: Disallowed; purchasePlan?: ImagePurchasePlan; /** - * The current state of the gallery Image Definition. The provisioning state, which only appears + * The current state of the gallery image definition. The provisioning state, which only appears * in the response. Possible values include: 'Creating', 'Updating', 'Failed', 'Succeeded', * 'Deleting', 'Migrating' * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -6115,7 +6478,7 @@ export interface GalleryImageUpdate extends UpdateResourceDefinition { } /** - * The publishing profile of a gallery Image Version. + * The publishing profile of a gallery image Version. */ export interface GalleryImageVersionPublishingProfile extends GalleryArtifactPublishingProfileBase { } @@ -6125,10 +6488,14 @@ export interface GalleryImageVersionPublishingProfile extends GalleryArtifactPub */ export interface GalleryArtifactVersionSource { /** - * The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, or user - * image. + * The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user + * image or storage account resource. */ id?: string; + /** + * The uri of the gallery artifact version source. Currently used to specify vhd/blob source. + */ + uri?: string; } /** @@ -6179,12 +6546,12 @@ export interface GalleryImageVersionStorageProfile { } /** - * Specifies information about the gallery Image Version that you want to create or update. + * Specifies information about the gallery image version that you want to create or update. */ export interface GalleryImageVersion extends Resource { publishingProfile?: GalleryImageVersionPublishingProfile; /** - * The current state of the gallery Image Version. The provisioning state, which only appears in + * The current state of the gallery image version. The provisioning state, which only appears in * the response. Possible values include: 'Creating', 'Updating', 'Failed', 'Succeeded', * 'Deleting', 'Migrating' * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -6198,12 +6565,12 @@ export interface GalleryImageVersion extends Resource { } /** - * Specifies information about the gallery Image Version that you want to update. + * Specifies information about the gallery image version that you want to update. */ export interface GalleryImageVersionUpdate extends UpdateResourceDefinition { publishingProfile?: GalleryImageVersionPublishingProfile; /** - * The current state of the gallery Image Version. The provisioning state, which only appears in + * The current state of the gallery image version. The provisioning state, which only appears in * the response. Possible values include: 'Creating', 'Updating', 'Failed', 'Succeeded', * 'Deleting', 'Migrating' * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -6294,6 +6661,105 @@ export interface GalleryArtifactSource { managedImage: ManagedArtifact; } +/** + * Specifies information about the gallery sharing profile update. + */ +export interface SharingUpdate extends BaseResource { + /** + * This property allows you to specify the operation type of gallery sharing update.

+ * Possible values are:

**Add**

**Remove**

**Reset**. Possible values + * include: 'Add', 'Remove', 'Reset' + */ + operationType: SharingUpdateOperationTypes; + /** + * A list of sharing profile groups. + */ + groups?: SharingProfileGroup[]; +} + +/** + * The Resource model definition. + */ +export interface PirResource { + /** + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Resource location + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; +} + +/** + * Base information about the shared gallery resource in pir. + */ +export interface PirSharedGalleryResource extends PirResource { + /** + * The unique id of this shared gallery. + */ + uniqueId?: string; +} + +/** + * Specifies information about the Shared Gallery that you want to create or update. + */ +export interface SharedGallery extends PirSharedGalleryResource { +} + +/** + * Specifies information about the gallery image definition that you want to create or update. + */ +export interface SharedGalleryImage extends PirSharedGalleryResource { + /** + * This property allows you to specify the type of the OS that is included in the disk when + * creating a VM from a managed image.

Possible values are:

**Windows** + *

**Linux**. Possible values include: 'Windows', 'Linux' + */ + osType: OperatingSystemTypes; + /** + * This property allows the user to specify whether the virtual machines created under this image + * are 'Generalized' or 'Specialized'. Possible values include: 'Generalized', 'Specialized' + */ + osState: OperatingSystemStateTypes; + /** + * The end of life date of the gallery image definition. This property can be used for + * decommissioning purposes. This property is updatable. + */ + endOfLifeDate?: Date; + identifier: GalleryImageIdentifier; + recommended?: RecommendedMachineConfiguration; + disallowed?: Disallowed; + /** + * The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Possible values + * include: 'V1', 'V2' + */ + hyperVGeneration?: HyperVGeneration; + /** + * A list of gallery image features. + */ + features?: GalleryImageFeature[]; + purchasePlan?: ImagePurchasePlan; +} + +/** + * Specifies information about the gallery image version that you want to create or update. + */ +export interface SharedGalleryImageVersion extends PirSharedGalleryResource { + /** + * The published date of the gallery image version Definition. This property can be used for + * decommissioning purposes. This property is updatable. + */ + publishedDate?: Date; + /** + * The end of life date of the gallery image version Definition. This property can be used for + * decommissioning purposes. This property is updatable. + */ + endOfLifeDate?: Date; +} + /** * Properties to configure a custom container service cluster. */ @@ -6514,6 +6980,16 @@ export interface AvailabilitySetsListBySubscriptionOptionalParams extends msRest expand?: string; } +/** + * Optional Parameters. + */ +export interface AvailabilitySetsListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply to the operation. Allowed values are 'instanceView'. + */ + expand?: string; +} + /** * Optional Parameters. */ @@ -6590,6 +7066,16 @@ export interface VirtualMachineImagesListOptionalParams extends msRest.RequestOp orderby?: string; } +/** + * Optional Parameters. + */ +export interface VirtualMachinesDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to force delete virtual machines. + */ + forceDeletion?: boolean; +} + /** * Optional Parameters. */ @@ -6644,6 +7130,16 @@ export interface VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams extend sasUriExpirationTimeInMinutes?: number; } +/** + * Optional Parameters. + */ +export interface VirtualMachinesBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to force delete virtual machines. + */ + forceDeletion?: boolean; +} + /** * Optional Parameters. */ @@ -6666,6 +7162,16 @@ export interface VirtualMachinesBeginReimageOptionalParams extends msRest.Reques parameters?: VirtualMachineReimageParameters; } +/** + * Optional Parameters. + */ +export interface VirtualMachinesListAllNextOptionalParams extends msRest.RequestOptionsBase { + /** + * statusOnly=true enables fetching run time status of all Virtual Machines in the subscription. + */ + statusOnly?: string; +} + /** * Optional Parameters. */ @@ -6964,6 +7470,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 +7560,26 @@ 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. + */ +export interface GalleriesGetOptionalParams extends msRest.RequestOptionsBase { + /** + * The select expression to apply on the operation. Possible values include: 'Permissions' + */ + select?: SelectPermissions; +} + /** * Optional Parameters. */ @@ -6994,6 +7600,72 @@ export interface GalleryApplicationVersionsGetOptionalParams extends msRest.Requ expand?: ReplicationStatusTypes; } +/** + * Optional Parameters. + */ +export interface SharedGalleriesListOptionalParams extends msRest.RequestOptionsBase { + /** + * The query parameter to decide what shared galleries to fetch when doing listing operations. + * Possible values include: 'tenant' + */ + sharedTo?: SharedToValues; +} + +/** + * Optional Parameters. + */ +export interface SharedGalleriesListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query parameter to decide what shared galleries to fetch when doing listing operations. + * Possible values include: 'tenant' + */ + sharedTo?: SharedToValues; +} + +/** + * Optional Parameters. + */ +export interface SharedGalleryImagesListOptionalParams extends msRest.RequestOptionsBase { + /** + * The query parameter to decide what shared galleries to fetch when doing listing operations. + * Possible values include: 'tenant' + */ + sharedTo?: SharedToValues; +} + +/** + * Optional Parameters. + */ +export interface SharedGalleryImagesListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query parameter to decide what shared galleries to fetch when doing listing operations. + * Possible values include: 'tenant' + */ + sharedTo?: SharedToValues; +} + +/** + * Optional Parameters. + */ +export interface SharedGalleryImageVersionsListOptionalParams extends msRest.RequestOptionsBase { + /** + * The query parameter to decide what shared galleries to fetch when doing listing operations. + * Possible values include: 'tenant' + */ + sharedTo?: SharedToValues; +} + +/** + * Optional Parameters. + */ +export interface SharedGalleryImageVersionsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query parameter to decide what shared galleries to fetch when doing listing operations. + * Possible values include: 'tenant' + */ + sharedTo?: SharedToValues; +} + /** * An interface representing ComputeManagementClientOptions. */ @@ -7211,6 +7883,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. @@ -7310,7 +7994,7 @@ export interface GalleryList extends Array { export interface GalleryImageList extends Array { /** * The uri to fetch the next page of Image Definitions in the Shared Image Gallery. Call - * ListNext() with this to fetch the next page of gallery Image Definitions. + * ListNext() with this to fetch the next page of gallery image definitions. */ nextLink?: string; } @@ -7322,8 +8006,8 @@ export interface GalleryImageList extends Array { */ export interface GalleryImageVersionList extends Array { /** - * The uri to fetch the next page of gallery Image Versions. Call ListNext() with this to fetch - * the next page of gallery Image Versions. + * The uri to fetch the next page of gallery image versions. Call ListNext() with this to fetch + * the next page of gallery image versions. */ nextLink?: string; } @@ -7356,12 +8040,51 @@ export interface GalleryApplicationVersionList extends Array + * The List Shared Galleries operation response. + * @extends Array */ -export interface ContainerServiceListResult extends Array { +export interface SharedGalleryList extends Array { /** - * The URL to get the next set of container service results. + * The uri to fetch the next page of shared galleries. Call ListNext() with this to fetch the + * next page of shared galleries. + */ + nextLink?: string; +} + +/** + * @interface + * The List Shared Gallery Images operation response. + * @extends Array + */ +export interface SharedGalleryImageList extends Array { + /** + * The uri to fetch the next page of shared gallery images. Call ListNext() with this to fetch + * the next page of shared gallery images. + */ + nextLink?: string; +} + +/** + * @interface + * The List Shared Gallery Image versions operation response. + * @extends Array + */ +export interface SharedGalleryImageVersionList extends Array { + /** + * The uri to fetch the next page of shared gallery image versions. Call ListNext() with this to + * fetch the next page of shared gallery image versions. + */ + nextLink?: string; +} + +/** + * @interface + * The response from the List Container Services operation. + * @extends Array + */ +export interface ContainerServiceListResult extends Array { + /** + * The URL to get the next set of container service results. */ nextLink?: string; } @@ -7721,6 +8444,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' @@ -7844,6 +8576,22 @@ export type PrivateEndpointServiceConnectionStatus = 'Pending' | 'Approved' | 'R */ export type PrivateEndpointConnectionProvisioningState = 'Succeeded' | 'Creating' | 'Deleting' | 'Failed'; +/** + * Defines values for GallerySharingPermissionTypes. + * Possible values include: 'Private', 'Groups' + * @readonly + * @enum {string} + */ +export type GallerySharingPermissionTypes = 'Private' | 'Groups'; + +/** + * Defines values for SharingProfileGroupTypes. + * Possible values include: 'Subscriptions', 'AADTenants' + * @readonly + * @enum {string} + */ +export type SharingProfileGroupTypes = 'Subscriptions' | 'AADTenants'; + /** * Defines values for AggregatedReplicationState. * Possible values include: 'Unknown', 'InProgress', 'Completed', 'Failed' @@ -7876,6 +8624,14 @@ export type StorageAccountType = 'Standard_LRS' | 'Standard_ZRS' | 'Premium_LRS' */ export type HostCaching = 'None' | 'ReadOnly' | 'ReadWrite'; +/** + * Defines values for SharingUpdateOperationTypes. + * Possible values include: 'Add', 'Remove', 'Reset' + * @readonly + * @enum {string} + */ +export type SharingUpdateOperationTypes = 'Add' | 'Remove' | 'Reset'; + /** * Defines values for ContainerServiceOrchestratorTypes. * Possible values include: 'Swarm', 'DCOS', 'Custom', 'Kubernetes' @@ -7908,6 +8664,14 @@ export type ContainerServiceVMSizeTypes = 'Standard_A0' | 'Standard_A1' | 'Stand */ export type InstanceViewTypes = 'instanceView'; +/** + * Defines values for SelectPermissions. + * Possible values include: 'Permissions' + * @readonly + * @enum {string} + */ +export type SelectPermissions = 'Permissions'; + /** * Defines values for ReplicationStatusTypes. * Possible values include: 'ReplicationStatus' @@ -7916,6 +8680,14 @@ export type InstanceViewTypes = 'instanceView'; */ export type ReplicationStatusTypes = 'ReplicationStatus'; +/** + * Defines values for SharedToValues. + * Possible values include: 'tenant' + * @readonly + * @enum {string} + */ +export type SharedToValues = 'tenant'; + /** * Defines values for ProvisioningState. * Possible values include: 'Creating', 'Updating', 'Failed', 'Succeeded', 'Deleting', 'Migrating' @@ -10091,7 +10863,7 @@ export type VirtualMachineScaleSetRollingUpgradesGetLatestResponse = RollingUpgr /** * Contains response data for the createOrUpdate operation. */ -export type VirtualMachineScaleSetVMExtensionsCreateOrUpdateResponse = VirtualMachineExtension & { +export type VirtualMachineScaleSetVMExtensionsCreateOrUpdateResponse = VirtualMachineScaleSetVMExtension & { /** * The underlying HTTP response. */ @@ -10104,14 +10876,14 @@ export type VirtualMachineScaleSetVMExtensionsCreateOrUpdateResponse = VirtualMa /** * The response body as parsed JSON or XML */ - parsedBody: VirtualMachineExtension; + parsedBody: VirtualMachineScaleSetVMExtension; }; }; /** * Contains response data for the update operation. */ -export type VirtualMachineScaleSetVMExtensionsUpdateResponse = VirtualMachineExtension & { +export type VirtualMachineScaleSetVMExtensionsUpdateResponse = VirtualMachineScaleSetVMExtension & { /** * The underlying HTTP response. */ @@ -10124,14 +10896,14 @@ export type VirtualMachineScaleSetVMExtensionsUpdateResponse = VirtualMachineExt /** * The response body as parsed JSON or XML */ - parsedBody: VirtualMachineExtension; + parsedBody: VirtualMachineScaleSetVMExtension; }; }; /** * Contains response data for the get operation. */ -export type VirtualMachineScaleSetVMExtensionsGetResponse = VirtualMachineExtension & { +export type VirtualMachineScaleSetVMExtensionsGetResponse = VirtualMachineScaleSetVMExtension & { /** * The underlying HTTP response. */ @@ -10144,14 +10916,14 @@ export type VirtualMachineScaleSetVMExtensionsGetResponse = VirtualMachineExtens /** * The response body as parsed JSON or XML */ - parsedBody: VirtualMachineExtension; + parsedBody: VirtualMachineScaleSetVMExtension; }; }; /** * Contains response data for the list operation. */ -export type VirtualMachineScaleSetVMExtensionsListResponse = VirtualMachineExtensionsListResult & { +export type VirtualMachineScaleSetVMExtensionsListResponse = VirtualMachineScaleSetVMExtensionsListResult & { /** * The underlying HTTP response. */ @@ -10164,14 +10936,14 @@ export type VirtualMachineScaleSetVMExtensionsListResponse = VirtualMachineExten /** * The response body as parsed JSON or XML */ - parsedBody: VirtualMachineExtensionsListResult; + parsedBody: VirtualMachineScaleSetVMExtensionsListResult; }; }; /** * Contains response data for the beginCreateOrUpdate operation. */ -export type VirtualMachineScaleSetVMExtensionsBeginCreateOrUpdateResponse = VirtualMachineExtension & { +export type VirtualMachineScaleSetVMExtensionsBeginCreateOrUpdateResponse = VirtualMachineScaleSetVMExtension & { /** * The underlying HTTP response. */ @@ -10184,14 +10956,14 @@ export type VirtualMachineScaleSetVMExtensionsBeginCreateOrUpdateResponse = Virt /** * The response body as parsed JSON or XML */ - parsedBody: VirtualMachineExtension; + parsedBody: VirtualMachineScaleSetVMExtension; }; }; /** * Contains response data for the beginUpdate operation. */ -export type VirtualMachineScaleSetVMExtensionsBeginUpdateResponse = VirtualMachineExtension & { +export type VirtualMachineScaleSetVMExtensionsBeginUpdateResponse = VirtualMachineScaleSetVMExtension & { /** * The underlying HTTP response. */ @@ -10204,7 +10976,7 @@ export type VirtualMachineScaleSetVMExtensionsBeginUpdateResponse = VirtualMachi /** * The response body as parsed JSON or XML */ - parsedBody: VirtualMachineExtension; + parsedBody: VirtualMachineScaleSetVMExtension; }; }; @@ -10224,14 +10996,294 @@ export type VirtualMachineScaleSetVMsUpdateResponse = VirtualMachineScaleSetVM & /** * The response body as parsed JSON or XML */ - parsedBody: VirtualMachineScaleSetVM; + parsedBody: VirtualMachineScaleSetVM; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type VirtualMachineScaleSetVMsGetResponse = VirtualMachineScaleSetVM & { + /** + * 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: VirtualMachineScaleSetVM; + }; +}; + +/** + * Contains response data for the getInstanceView operation. + */ +export type VirtualMachineScaleSetVMsGetInstanceViewResponse = VirtualMachineScaleSetVMInstanceView & { + /** + * 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: VirtualMachineScaleSetVMInstanceView; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type VirtualMachineScaleSetVMsListResponse = VirtualMachineScaleSetVMListResult & { + /** + * 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: VirtualMachineScaleSetVMListResult; + }; +}; + +/** + * Contains response data for the retrieveBootDiagnosticsData operation. + */ +export type VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataResponse = RetrieveBootDiagnosticsDataResult & { + /** + * 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: RetrieveBootDiagnosticsDataResult; + }; +}; + +/** + * Contains response data for the runCommand operation. + */ +export type VirtualMachineScaleSetVMsRunCommandResponse = RunCommandResult & { + /** + * 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: RunCommandResult; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type VirtualMachineScaleSetVMsBeginUpdateResponse = VirtualMachineScaleSetVM & { + /** + * 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: VirtualMachineScaleSetVM; + }; +}; + +/** + * Contains response data for the beginRunCommand operation. + */ +export type VirtualMachineScaleSetVMsBeginRunCommandResponse = RunCommandResult & { + /** + * 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: RunCommandResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type VirtualMachineScaleSetVMsListNextResponse = VirtualMachineScaleSetVMListResult & { + /** + * 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: VirtualMachineScaleSetVMListResult; + }; +}; + +/** + * Contains response data for the exportRequestRateByInterval operation. + */ +export type LogAnalyticsExportRequestRateByIntervalResponse = LogAnalyticsOperationResult & { + /** + * 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: LogAnalyticsOperationResult; + }; +}; + +/** + * Contains response data for the exportThrottledRequests operation. + */ +export type LogAnalyticsExportThrottledRequestsResponse = LogAnalyticsOperationResult & { + /** + * 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: LogAnalyticsOperationResult; + }; +}; + +/** + * Contains response data for the beginExportRequestRateByInterval operation. + */ +export type LogAnalyticsBeginExportRequestRateByIntervalResponse = LogAnalyticsOperationResult & { + /** + * 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: LogAnalyticsOperationResult; + }; +}; + +/** + * Contains response data for the beginExportThrottledRequests operation. + */ +export type LogAnalyticsBeginExportThrottledRequestsResponse = LogAnalyticsOperationResult & { + /** + * 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: LogAnalyticsOperationResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type VirtualMachineRunCommandsListResponse = RunCommandListResult & { + /** + * 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: RunCommandListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type VirtualMachineRunCommandsGetResponse = RunCommandDocument & { + /** + * 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: RunCommandDocument; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type VirtualMachineScaleSetVMsGetResponse = VirtualMachineScaleSetVM & { +export type VirtualMachineRunCommandsCreateOrUpdateResponse = VirtualMachineRunCommand & { /** * The underlying HTTP response. */ @@ -10244,14 +11296,14 @@ export type VirtualMachineScaleSetVMsGetResponse = VirtualMachineScaleSetVM & { /** * The response body as parsed JSON or XML */ - parsedBody: VirtualMachineScaleSetVM; + parsedBody: VirtualMachineRunCommand; }; }; /** - * Contains response data for the getInstanceView operation. + * Contains response data for the update operation. */ -export type VirtualMachineScaleSetVMsGetInstanceViewResponse = VirtualMachineScaleSetVMInstanceView & { +export type VirtualMachineRunCommandsUpdateResponse = VirtualMachineRunCommand & { /** * The underlying HTTP response. */ @@ -10264,14 +11316,14 @@ export type VirtualMachineScaleSetVMsGetInstanceViewResponse = VirtualMachineSca /** * The response body as parsed JSON or XML */ - parsedBody: VirtualMachineScaleSetVMInstanceView; + parsedBody: VirtualMachineRunCommand; }; }; /** - * Contains response data for the list operation. + * Contains response data for the getByVirtualMachine operation. */ -export type VirtualMachineScaleSetVMsListResponse = VirtualMachineScaleSetVMListResult & { +export type VirtualMachineRunCommandsGetByVirtualMachineResponse = VirtualMachineRunCommand & { /** * The underlying HTTP response. */ @@ -10284,14 +11336,14 @@ export type VirtualMachineScaleSetVMsListResponse = VirtualMachineScaleSetVMList /** * The response body as parsed JSON or XML */ - parsedBody: VirtualMachineScaleSetVMListResult; + parsedBody: VirtualMachineRunCommand; }; }; /** - * Contains response data for the retrieveBootDiagnosticsData operation. + * Contains response data for the listByVirtualMachine operation. */ -export type VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataResponse = RetrieveBootDiagnosticsDataResult & { +export type VirtualMachineRunCommandsListByVirtualMachineResponse = VirtualMachineRunCommandsListResult & { /** * The underlying HTTP response. */ @@ -10304,14 +11356,14 @@ export type VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataResponse = Retri /** * The response body as parsed JSON or XML */ - parsedBody: RetrieveBootDiagnosticsDataResult; + parsedBody: VirtualMachineRunCommandsListResult; }; }; /** - * Contains response data for the runCommand operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type VirtualMachineScaleSetVMsRunCommandResponse = RunCommandResult & { +export type VirtualMachineRunCommandsBeginCreateOrUpdateResponse = VirtualMachineRunCommand & { /** * The underlying HTTP response. */ @@ -10324,14 +11376,14 @@ export type VirtualMachineScaleSetVMsRunCommandResponse = RunCommandResult & { /** * The response body as parsed JSON or XML */ - parsedBody: RunCommandResult; + parsedBody: VirtualMachineRunCommand; }; }; /** * Contains response data for the beginUpdate operation. */ -export type VirtualMachineScaleSetVMsBeginUpdateResponse = VirtualMachineScaleSetVM & { +export type VirtualMachineRunCommandsBeginUpdateResponse = VirtualMachineRunCommand & { /** * The underlying HTTP response. */ @@ -10344,14 +11396,14 @@ export type VirtualMachineScaleSetVMsBeginUpdateResponse = VirtualMachineScaleSe /** * The response body as parsed JSON or XML */ - parsedBody: VirtualMachineScaleSetVM; + parsedBody: VirtualMachineRunCommand; }; }; /** - * Contains response data for the beginRunCommand operation. + * Contains response data for the listNext operation. */ -export type VirtualMachineScaleSetVMsBeginRunCommandResponse = RunCommandResult & { +export type VirtualMachineRunCommandsListNextResponse = RunCommandListResult & { /** * The underlying HTTP response. */ @@ -10364,14 +11416,14 @@ export type VirtualMachineScaleSetVMsBeginRunCommandResponse = RunCommandResult /** * The response body as parsed JSON or XML */ - parsedBody: RunCommandResult; + parsedBody: RunCommandListResult; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByVirtualMachineNext operation. */ -export type VirtualMachineScaleSetVMsListNextResponse = VirtualMachineScaleSetVMListResult & { +export type VirtualMachineRunCommandsListByVirtualMachineNextResponse = VirtualMachineRunCommandsListResult & { /** * The underlying HTTP response. */ @@ -10384,14 +11436,14 @@ export type VirtualMachineScaleSetVMsListNextResponse = VirtualMachineScaleSetVM /** * The response body as parsed JSON or XML */ - parsedBody: VirtualMachineScaleSetVMListResult; + parsedBody: VirtualMachineRunCommandsListResult; }; }; /** - * Contains response data for the exportRequestRateByInterval operation. + * Contains response data for the createOrUpdate operation. */ -export type LogAnalyticsExportRequestRateByIntervalResponse = LogAnalyticsOperationResult & { +export type VirtualMachineScaleSetVMRunCommandsCreateOrUpdateResponse = VirtualMachineRunCommand & { /** * The underlying HTTP response. */ @@ -10404,14 +11456,14 @@ export type LogAnalyticsExportRequestRateByIntervalResponse = LogAnalyticsOperat /** * The response body as parsed JSON or XML */ - parsedBody: LogAnalyticsOperationResult; + parsedBody: VirtualMachineRunCommand; }; }; /** - * Contains response data for the exportThrottledRequests operation. + * Contains response data for the update operation. */ -export type LogAnalyticsExportThrottledRequestsResponse = LogAnalyticsOperationResult & { +export type VirtualMachineScaleSetVMRunCommandsUpdateResponse = VirtualMachineRunCommand & { /** * The underlying HTTP response. */ @@ -10424,14 +11476,14 @@ export type LogAnalyticsExportThrottledRequestsResponse = LogAnalyticsOperationR /** * The response body as parsed JSON or XML */ - parsedBody: LogAnalyticsOperationResult; + parsedBody: VirtualMachineRunCommand; }; }; /** - * Contains response data for the beginExportRequestRateByInterval operation. + * Contains response data for the get operation. */ -export type LogAnalyticsBeginExportRequestRateByIntervalResponse = LogAnalyticsOperationResult & { +export type VirtualMachineScaleSetVMRunCommandsGetResponse = VirtualMachineRunCommand & { /** * The underlying HTTP response. */ @@ -10444,14 +11496,14 @@ export type LogAnalyticsBeginExportRequestRateByIntervalResponse = LogAnalyticsO /** * The response body as parsed JSON or XML */ - parsedBody: LogAnalyticsOperationResult; + parsedBody: VirtualMachineRunCommand; }; }; /** - * Contains response data for the beginExportThrottledRequests operation. + * Contains response data for the list operation. */ -export type LogAnalyticsBeginExportThrottledRequestsResponse = LogAnalyticsOperationResult & { +export type VirtualMachineScaleSetVMRunCommandsListResponse = VirtualMachineRunCommandsListResult & { /** * The underlying HTTP response. */ @@ -10464,14 +11516,14 @@ export type LogAnalyticsBeginExportThrottledRequestsResponse = LogAnalyticsOpera /** * The response body as parsed JSON or XML */ - parsedBody: LogAnalyticsOperationResult; + parsedBody: VirtualMachineRunCommandsListResult; }; }; /** - * Contains response data for the list operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type VirtualMachineRunCommandsListResponse = RunCommandListResult & { +export type VirtualMachineScaleSetVMRunCommandsBeginCreateOrUpdateResponse = VirtualMachineRunCommand & { /** * The underlying HTTP response. */ @@ -10484,14 +11536,14 @@ export type VirtualMachineRunCommandsListResponse = RunCommandListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: RunCommandListResult; + parsedBody: VirtualMachineRunCommand; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginUpdate operation. */ -export type VirtualMachineRunCommandsGetResponse = RunCommandDocument & { +export type VirtualMachineScaleSetVMRunCommandsBeginUpdateResponse = VirtualMachineRunCommand & { /** * The underlying HTTP response. */ @@ -10504,14 +11556,14 @@ export type VirtualMachineRunCommandsGetResponse = RunCommandDocument & { /** * The response body as parsed JSON or XML */ - parsedBody: RunCommandDocument; + parsedBody: VirtualMachineRunCommand; }; }; /** * Contains response data for the listNext operation. */ -export type VirtualMachineRunCommandsListNextResponse = RunCommandListResult & { +export type VirtualMachineScaleSetVMRunCommandsListNextResponse = VirtualMachineRunCommandsListResult & { /** * The underlying HTTP response. */ @@ -10524,7 +11576,7 @@ export type VirtualMachineRunCommandsListNextResponse = RunCommandListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: RunCommandListResult; + parsedBody: VirtualMachineRunCommandsListResult; }; }; @@ -12168,6 +13220,226 @@ export type GalleryApplicationVersionsListByGalleryApplicationNextResponse = Gal }; }; +/** + * Contains response data for the update operation. + */ +export type GallerySharingProfileUpdateResponse = SharingUpdate & { + /** + * 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: SharingUpdate; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type GallerySharingProfileBeginUpdateResponse = SharingUpdate & { + /** + * 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: SharingUpdate; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type SharedGalleriesListResponse = SharedGalleryList & { + /** + * 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: SharedGalleryList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type SharedGalleriesGetResponse = SharedGallery & { + /** + * 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: SharedGallery; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type SharedGalleriesListNextResponse = SharedGalleryList & { + /** + * 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: SharedGalleryList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type SharedGalleryImagesListResponse = SharedGalleryImageList & { + /** + * 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: SharedGalleryImageList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type SharedGalleryImagesGetResponse = SharedGalleryImage & { + /** + * 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: SharedGalleryImage; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type SharedGalleryImagesListNextResponse = SharedGalleryImageList & { + /** + * 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: SharedGalleryImageList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type SharedGalleryImageVersionsListResponse = SharedGalleryImageVersionList & { + /** + * 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: SharedGalleryImageVersionList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type SharedGalleryImageVersionsGetResponse = SharedGalleryImageVersion & { + /** + * 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: SharedGalleryImageVersion; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type SharedGalleryImageVersionsListNextResponse = SharedGalleryImageVersionList & { + /** + * 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: SharedGalleryImageVersionList; + }; +}; + /** * Contains response data for the list operation. */ diff --git a/sdk/compute/arm-compute/src/models/logAnalyticsMappers.ts b/sdk/compute/arm-compute/src/models/logAnalyticsMappers.ts index ae101dcf4cb7..6566a5c184ee 100644 --- a/sdk/compute/arm-compute/src/models/logAnalyticsMappers.ts +++ b/sdk/compute/arm-compute/src/models/logAnalyticsMappers.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. diff --git a/sdk/compute/arm-compute/src/models/mappers.ts b/sdk/compute/arm-compute/src/models/mappers.ts index 0f992c30506b..ef36e14343c7 100644 --- a/sdk/compute/arm-compute/src/models/mappers.ts +++ b/sdk/compute/arm-compute/src/models/mappers.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. @@ -1216,6 +1216,93 @@ export const VirtualMachineExtension: msRest.CompositeMapper = { } }; +export const VirtualMachineScaleSetVMExtension: msRest.CompositeMapper = { + serializedName: "VirtualMachineScaleSetVMExtension", + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMExtension", + modelProperties: { + ...SubResourceReadOnly.type.modelProperties, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", + type: { + name: "String" + } + }, + publisher: { + serializedName: "properties.publisher", + type: { + name: "String" + } + }, + type1: { + serializedName: "properties.type", + type: { + name: "String" + } + }, + typeHandlerVersion: { + serializedName: "properties.typeHandlerVersion", + type: { + name: "String" + } + }, + autoUpgradeMinorVersion: { + serializedName: "properties.autoUpgradeMinorVersion", + type: { + name: "Boolean" + } + }, + enableAutomaticUpgrade: { + serializedName: "properties.enableAutomaticUpgrade", + type: { + name: "Boolean" + } + }, + settings: { + serializedName: "properties.settings", + type: { + name: "Object" + } + }, + protectedSettings: { + serializedName: "properties.protectedSettings", + type: { + name: "Object" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + instanceView: { + serializedName: "properties.instanceView", + type: { + name: "Composite", + className: "VirtualMachineExtensionInstanceView" + } + } + } + } +}; + export const VirtualMachineExtensionUpdate: msRest.CompositeMapper = { serializedName: "VirtualMachineExtensionUpdate", type: { @@ -1275,6 +1362,79 @@ export const VirtualMachineExtensionUpdate: msRest.CompositeMapper = { } }; +export const VirtualMachineScaleSetVMExtensionUpdate: msRest.CompositeMapper = { + serializedName: "VirtualMachineScaleSetVMExtensionUpdate", + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMExtensionUpdate", + modelProperties: { + ...SubResourceReadOnly.type.modelProperties, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", + type: { + name: "String" + } + }, + publisher: { + serializedName: "properties.publisher", + type: { + name: "String" + } + }, + type1: { + serializedName: "properties.type", + type: { + name: "String" + } + }, + typeHandlerVersion: { + serializedName: "properties.typeHandlerVersion", + type: { + name: "String" + } + }, + autoUpgradeMinorVersion: { + serializedName: "properties.autoUpgradeMinorVersion", + type: { + name: "Boolean" + } + }, + enableAutomaticUpgrade: { + serializedName: "properties.enableAutomaticUpgrade", + type: { + name: "Boolean" + } + }, + settings: { + serializedName: "properties.settings", + type: { + name: "Object" + } + }, + protectedSettings: { + serializedName: "properties.protectedSettings", + type: { + name: "Object" + } + } + } + } +}; + export const VirtualMachineExtensionsListResult: msRest.CompositeMapper = { serializedName: "VirtualMachineExtensionsListResult", type: { @@ -1297,6 +1457,28 @@ export const VirtualMachineExtensionsListResult: msRest.CompositeMapper = { } }; +export const VirtualMachineScaleSetVMExtensionsListResult: msRest.CompositeMapper = { + serializedName: "VirtualMachineScaleSetVMExtensionsListResult", + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMExtensionsListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMExtension" + } + } + } + } + } + } +}; + export const VirtualMachineSoftwarePatchProperties: msRest.CompositeMapper = { serializedName: "VirtualMachineSoftwarePatchProperties", type: { @@ -7093,72 +7275,90 @@ export const RunCommandResult: msRest.CompositeMapper = { } }; -export const ResourceSkuCapacity: msRest.CompositeMapper = { - serializedName: "ResourceSkuCapacity", +export const VirtualMachineRunCommandInstanceView: msRest.CompositeMapper = { + serializedName: "VirtualMachineRunCommandInstanceView", type: { name: "Composite", - className: "ResourceSkuCapacity", + className: "VirtualMachineRunCommandInstanceView", modelProperties: { - minimum: { - readOnly: true, - serializedName: "minimum", + executionState: { + serializedName: "executionState", type: { - name: "Number" + name: "String" } }, - maximum: { - readOnly: true, - serializedName: "maximum", + executionMessage: { + serializedName: "executionMessage", type: { - name: "Number" + name: "String" } }, - default: { - readOnly: true, - serializedName: "default", + exitCode: { + serializedName: "exitCode", type: { name: "Number" } }, - scaleType: { - readOnly: true, - serializedName: "scaleType", + output: { + serializedName: "output", type: { - name: "Enum", - allowedValues: [ - "Automatic", - "Manual", - "None" - ] + name: "String" + } + }, + error: { + serializedName: "error", + type: { + name: "String" + } + }, + startTime: { + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + endTime: { + serializedName: "endTime", + type: { + name: "DateTime" + } + }, + statuses: { + serializedName: "statuses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus" + } + } } } } } }; -export const ResourceSkuCosts: msRest.CompositeMapper = { - serializedName: "ResourceSkuCosts", +export const VirtualMachineRunCommandScriptSource: msRest.CompositeMapper = { + serializedName: "VirtualMachineRunCommandScriptSource", type: { name: "Composite", - className: "ResourceSkuCosts", + className: "VirtualMachineRunCommandScriptSource", modelProperties: { - meterID: { - readOnly: true, - serializedName: "meterID", + script: { + serializedName: "script", type: { name: "String" } }, - quantity: { - readOnly: true, - serializedName: "quantity", + scriptUri: { + serializedName: "scriptUri", type: { - name: "Number" + name: "String" } }, - extendedUnit: { - readOnly: true, - serializedName: "extendedUnit", + commandId: { + serializedName: "commandId", type: { name: "String" } @@ -7167,15 +7367,277 @@ export const ResourceSkuCosts: msRest.CompositeMapper = { } }; -export const ResourceSkuCapabilities: msRest.CompositeMapper = { - serializedName: "ResourceSkuCapabilities", +export const VirtualMachineRunCommand: msRest.CompositeMapper = { + serializedName: "VirtualMachineRunCommand", type: { name: "Composite", - className: "ResourceSkuCapabilities", + className: "VirtualMachineRunCommand", modelProperties: { - name: { - readOnly: true, - serializedName: "name", + ...Resource.type.modelProperties, + source: { + serializedName: "properties.source", + type: { + name: "Composite", + className: "VirtualMachineRunCommandScriptSource" + } + }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RunCommandInputParameter" + } + } + } + }, + protectedParameters: { + serializedName: "properties.protectedParameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RunCommandInputParameter" + } + } + } + }, + asyncExecution: { + serializedName: "properties.asyncExecution", + defaultValue: false, + type: { + name: "Boolean" + } + }, + runAsUser: { + serializedName: "properties.runAsUser", + type: { + name: "String" + } + }, + runAsPassword: { + serializedName: "properties.runAsPassword", + type: { + name: "String" + } + }, + timeoutInSeconds: { + serializedName: "properties.timeoutInSeconds", + type: { + name: "Number" + } + }, + outputBlobUri: { + serializedName: "properties.outputBlobUri", + type: { + name: "String" + } + }, + errorBlobUri: { + serializedName: "properties.errorBlobUri", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + instanceView: { + readOnly: true, + serializedName: "properties.instanceView", + type: { + name: "Composite", + className: "VirtualMachineRunCommandInstanceView" + } + } + } + } +}; + +export const VirtualMachineRunCommandUpdate: msRest.CompositeMapper = { + serializedName: "VirtualMachineRunCommandUpdate", + type: { + name: "Composite", + className: "VirtualMachineRunCommandUpdate", + modelProperties: { + ...UpdateResource.type.modelProperties, + source: { + serializedName: "properties.source", + type: { + name: "Composite", + className: "VirtualMachineRunCommandScriptSource" + } + }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RunCommandInputParameter" + } + } + } + }, + protectedParameters: { + serializedName: "properties.protectedParameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RunCommandInputParameter" + } + } + } + }, + asyncExecution: { + serializedName: "properties.asyncExecution", + defaultValue: false, + type: { + name: "Boolean" + } + }, + runAsUser: { + serializedName: "properties.runAsUser", + type: { + name: "String" + } + }, + runAsPassword: { + serializedName: "properties.runAsPassword", + type: { + name: "String" + } + }, + timeoutInSeconds: { + serializedName: "properties.timeoutInSeconds", + type: { + name: "Number" + } + }, + outputBlobUri: { + serializedName: "properties.outputBlobUri", + type: { + name: "String" + } + }, + errorBlobUri: { + serializedName: "properties.errorBlobUri", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + instanceView: { + readOnly: true, + serializedName: "properties.instanceView", + type: { + name: "Composite", + className: "VirtualMachineRunCommandInstanceView" + } + } + } + } +}; + +export const ResourceSkuCapacity: msRest.CompositeMapper = { + serializedName: "ResourceSkuCapacity", + type: { + name: "Composite", + className: "ResourceSkuCapacity", + modelProperties: { + minimum: { + readOnly: true, + serializedName: "minimum", + type: { + name: "Number" + } + }, + maximum: { + readOnly: true, + serializedName: "maximum", + type: { + name: "Number" + } + }, + default: { + readOnly: true, + serializedName: "default", + type: { + name: "Number" + } + }, + scaleType: { + readOnly: true, + serializedName: "scaleType", + type: { + name: "Enum", + allowedValues: [ + "Automatic", + "Manual", + "None" + ] + } + } + } + } +}; + +export const ResourceSkuCosts: msRest.CompositeMapper = { + serializedName: "ResourceSkuCosts", + type: { + name: "Composite", + className: "ResourceSkuCosts", + modelProperties: { + meterID: { + readOnly: true, + serializedName: "meterID", + type: { + name: "String" + } + }, + quantity: { + readOnly: true, + serializedName: "quantity", + type: { + name: "Number" + } + }, + extendedUnit: { + readOnly: true, + serializedName: "extendedUnit", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceSkuCapabilities: msRest.CompositeMapper = { + serializedName: "ResourceSkuCapabilities", + type: { + name: "Composite", + className: "ResourceSkuCapabilities", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } @@ -8687,51 +9149,114 @@ export const GalleryIdentifier: msRest.CompositeMapper = { } }; -export const Gallery: msRest.CompositeMapper = { - serializedName: "Gallery", +export const SharingProfileGroup: msRest.CompositeMapper = { + serializedName: "SharingProfileGroup", type: { name: "Composite", - className: "Gallery", + className: "SharingProfileGroup", modelProperties: { - ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", + type: { + serializedName: "type", type: { name: "String" } }, - identifier: { - serializedName: "properties.identifier", - type: { - name: "Composite", - className: "GalleryIdentifier" - } - }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + ids: { + serializedName: "ids", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const UpdateResourceDefinition: msRest.CompositeMapper = { - serializedName: "UpdateResourceDefinition", +export const SharingProfile: msRest.CompositeMapper = { + serializedName: "SharingProfile", type: { name: "Composite", - className: "UpdateResourceDefinition", + className: "SharingProfile", modelProperties: { - id: { - readOnly: true, - serializedName: "id", + permissions: { + serializedName: "permissions", type: { name: "String" } }, - name: { + groups: { + readOnly: true, + serializedName: "groups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharingProfileGroup" + } + } + } + } + } + } +}; + +export const Gallery: msRest.CompositeMapper = { + serializedName: "Gallery", + type: { + name: "Composite", + className: "Gallery", + modelProperties: { + ...Resource.type.modelProperties, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + identifier: { + serializedName: "properties.identifier", + type: { + name: "Composite", + className: "GalleryIdentifier" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + sharingProfile: { + serializedName: "properties.sharingProfile", + type: { + name: "Composite", + className: "SharingProfile" + } + } + } + } +}; + +export const UpdateResourceDefinition: msRest.CompositeMapper = { + serializedName: "UpdateResourceDefinition", + type: { + name: "Composite", + className: "UpdateResourceDefinition", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { readOnly: true, serializedName: "name", type: { @@ -8786,6 +9311,13 @@ export const GalleryUpdate: msRest.CompositeMapper = { type: { name: "String" } + }, + sharingProfile: { + serializedName: "properties.sharingProfile", + type: { + name: "Composite", + className: "SharingProfile" + } } } } @@ -8901,16 +9433,45 @@ export const UserArtifactSource: msRest.CompositeMapper = { name: "Composite", className: "UserArtifactSource", modelProperties: { - fileName: { + mediaLink: { required: true, - serializedName: "fileName", + serializedName: "mediaLink", type: { name: "String" } }, - mediaLink: { + defaultConfigurationLink: { + serializedName: "defaultConfigurationLink", + type: { + name: "String" + } + } + } + } +}; + +export const UserArtifactManage: msRest.CompositeMapper = { + serializedName: "UserArtifactManage", + type: { + name: "Composite", + className: "UserArtifactManage", + modelProperties: { + install: { required: true, - serializedName: "mediaLink", + serializedName: "install", + type: { + name: "String" + } + }, + remove: { + required: true, + serializedName: "remove", + type: { + name: "String" + } + }, + update: { + serializedName: "update", type: { name: "String" } @@ -8987,10 +9548,11 @@ export const GalleryApplicationVersionPublishingProfile: msRest.CompositeMapper className: "UserArtifactSource" } }, - contentType: { - serializedName: "contentType", + manageActions: { + serializedName: "manageActions", type: { - name: "String" + name: "Composite", + className: "UserArtifactManage" } }, enableHealthCheck: { @@ -9139,6 +9701,28 @@ export const GalleryApplicationVersionUpdate: msRest.CompositeMapper = { } }; +export const GalleryImageFeature: msRest.CompositeMapper = { + serializedName: "GalleryImageFeature", + type: { + name: "Composite", + className: "GalleryImageFeature", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + export const GalleryImageIdentifier: msRest.CompositeMapper = { serializedName: "GalleryImageIdentifier", type: { @@ -9324,6 +9908,18 @@ export const GalleryImage: msRest.CompositeMapper = { name: "String" } }, + features: { + serializedName: "properties.features", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryImageFeature" + } + } + } + }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { @@ -9429,6 +10025,18 @@ export const GalleryImageUpdate: msRest.CompositeMapper = { name: "String" } }, + features: { + serializedName: "properties.features", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryImageFeature" + } + } + } + }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { @@ -9497,6 +10105,12 @@ export const GalleryArtifactVersionSource: msRest.CompositeMapper = { type: { name: "String" } + }, + uri: { + serializedName: "uri", + type: { + name: "String" + } } } } @@ -9829,6 +10443,196 @@ export const GalleryArtifactSource: msRest.CompositeMapper = { } }; +export const SharingUpdate: msRest.CompositeMapper = { + serializedName: "SharingUpdate", + type: { + name: "Composite", + className: "SharingUpdate", + modelProperties: { + operationType: { + required: true, + serializedName: "operationType", + type: { + name: "String" + } + }, + groups: { + serializedName: "groups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharingProfileGroup" + } + } + } + } + } + } +}; + +export const PirResource: msRest.CompositeMapper = { + serializedName: "PirResource", + type: { + name: "Composite", + className: "PirResource", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const PirSharedGalleryResource: msRest.CompositeMapper = { + serializedName: "PirSharedGalleryResource", + type: { + name: "Composite", + className: "PirSharedGalleryResource", + modelProperties: { + ...PirResource.type.modelProperties, + uniqueId: { + serializedName: "identifier.uniqueId", + type: { + name: "String" + } + } + } + } +}; + +export const SharedGallery: msRest.CompositeMapper = { + serializedName: "SharedGallery", + type: { + name: "Composite", + className: "SharedGallery", + modelProperties: { + ...PirSharedGalleryResource.type.modelProperties + } + } +}; + +export const SharedGalleryImage: msRest.CompositeMapper = { + serializedName: "SharedGalleryImage", + type: { + name: "Composite", + className: "SharedGalleryImage", + modelProperties: { + ...PirSharedGalleryResource.type.modelProperties, + osType: { + required: true, + serializedName: "properties.osType", + type: { + name: "Enum", + allowedValues: [ + "Windows", + "Linux" + ] + } + }, + osState: { + required: true, + serializedName: "properties.osState", + type: { + name: "Enum", + allowedValues: [ + "Generalized", + "Specialized" + ] + } + }, + endOfLifeDate: { + serializedName: "properties.endOfLifeDate", + type: { + name: "DateTime" + } + }, + identifier: { + required: true, + serializedName: "properties.identifier", + type: { + name: "Composite", + className: "GalleryImageIdentifier" + } + }, + recommended: { + serializedName: "properties.recommended", + type: { + name: "Composite", + className: "RecommendedMachineConfiguration" + } + }, + disallowed: { + serializedName: "properties.disallowed", + type: { + name: "Composite", + className: "Disallowed" + } + }, + hyperVGeneration: { + serializedName: "properties.hyperVGeneration", + type: { + name: "String" + } + }, + features: { + serializedName: "properties.features", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryImageFeature" + } + } + } + }, + purchasePlan: { + serializedName: "properties.purchasePlan", + type: { + name: "Composite", + className: "ImagePurchasePlan" + } + } + } + } +}; + +export const SharedGalleryImageVersion: msRest.CompositeMapper = { + serializedName: "SharedGalleryImageVersion", + type: { + name: "Composite", + className: "SharedGalleryImageVersion", + modelProperties: { + ...PirSharedGalleryResource.type.modelProperties, + publishedDate: { + serializedName: "properties.publishedDate", + type: { + name: "DateTime" + } + }, + endOfLifeDate: { + serializedName: "properties.endOfLifeDate", + type: { + name: "DateTime" + } + } + } + } +}; + export const ContainerServiceCustomProfile: msRest.CompositeMapper = { serializedName: "ContainerServiceCustomProfile", type: { @@ -10676,6 +11480,35 @@ export const RunCommandListResult: msRest.CompositeMapper = { } }; +export const VirtualMachineRunCommandsListResult: msRest.CompositeMapper = { + serializedName: "VirtualMachineRunCommandsListResult", + type: { + name: "Composite", + className: "VirtualMachineRunCommandsListResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineRunCommand" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const ResourceSkusResult: msRest.CompositeMapper = { serializedName: "ResourceSkusResult", type: { @@ -10994,6 +11827,93 @@ export const GalleryApplicationVersionList: msRest.CompositeMapper = { } }; +export const SharedGalleryList: msRest.CompositeMapper = { + serializedName: "SharedGalleryList", + type: { + name: "Composite", + className: "SharedGalleryList", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedGallery" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SharedGalleryImageList: msRest.CompositeMapper = { + serializedName: "SharedGalleryImageList", + type: { + name: "Composite", + className: "SharedGalleryImageList", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedGalleryImage" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SharedGalleryImageVersionList: msRest.CompositeMapper = { + serializedName: "SharedGalleryImageVersionList", + type: { + name: "Composite", + className: "SharedGalleryImageVersionList", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedGalleryImageVersion" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const ContainerServiceListResult: msRest.CompositeMapper = { serializedName: "ContainerServiceListResult", type: { diff --git a/sdk/compute/arm-compute/src/models/operationsMappers.ts b/sdk/compute/arm-compute/src/models/operationsMappers.ts index 6ba728fec8be..6b80c42b2d21 100644 --- a/sdk/compute/arm-compute/src/models/operationsMappers.ts +++ b/sdk/compute/arm-compute/src/models/operationsMappers.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. diff --git a/sdk/compute/arm-compute/src/models/parameters.ts b/sdk/compute/arm-compute/src/models/parameters.ts index 30115323b65c..5700de710499 100644 --- a/sdk/compute/arm-compute/src/models/parameters.ts +++ b/sdk/compute/arm-compute/src/models/parameters.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 @@ -62,7 +61,7 @@ export const apiVersion3: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2019-12-01', + defaultValue: '2020-09-30', type: { name: "String" } @@ -179,6 +178,18 @@ export const filter: msRest.OperationQueryParameter = { } } }; +export const forceDeletion: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "forceDeletion" + ], + mapper: { + serializedName: "forceDeletion", + type: { + name: "Boolean" + } + } +}; export const galleryApplicationName: msRest.OperationURLParameter = { parameterPath: "galleryApplicationName", mapper: { @@ -229,6 +240,16 @@ export const galleryName: msRest.OperationURLParameter = { } } }; +export const galleryUniqueName: msRest.OperationURLParameter = { + parameterPath: "galleryUniqueName", + mapper: { + required: true, + serializedName: "galleryUniqueName", + type: { + name: "String" + } + } +}; export const hostGroupName: msRest.OperationURLParameter = { parameterPath: "hostGroupName", mapper: { @@ -377,6 +398,16 @@ export const resourceGroupName: msRest.OperationURLParameter = { } } }; +export const runCommandName: msRest.OperationURLParameter = { + parameterPath: "runCommandName", + mapper: { + required: true, + serializedName: "runCommandName", + type: { + name: "String" + } + } +}; export const sasUriExpirationTimeInMinutes: msRest.OperationQueryParameter = { parameterPath: [ "options", @@ -401,6 +432,18 @@ export const select: msRest.OperationQueryParameter = { } } }; +export const sharedTo: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "sharedTo" + ], + mapper: { + serializedName: "sharedTo", + type: { + name: "String" + } + } +}; export const skipShutdown: msRest.OperationQueryParameter = { parameterPath: [ "options", diff --git a/sdk/compute/arm-compute/src/models/proximityPlacementGroupsMappers.ts b/sdk/compute/arm-compute/src/models/proximityPlacementGroupsMappers.ts index c95b98da90af..2414d65ba2c5 100644 --- a/sdk/compute/arm-compute/src/models/proximityPlacementGroupsMappers.ts +++ b/sdk/compute/arm-compute/src/models/proximityPlacementGroupsMappers.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. @@ -77,6 +77,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -129,10 +130,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -150,6 +155,7 @@ export { UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -169,6 +175,10 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -197,6 +207,8 @@ export { VirtualMachineScaleSetUpdateStorageProfile, VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/resourceSkusMappers.ts b/sdk/compute/arm-compute/src/models/resourceSkusMappers.ts index ff328d2b9d4d..2f02dae60cc5 100644 --- a/sdk/compute/arm-compute/src/models/resourceSkusMappers.ts +++ b/sdk/compute/arm-compute/src/models/resourceSkusMappers.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. diff --git a/sdk/compute/arm-compute/src/models/sharedGalleriesMappers.ts b/sdk/compute/arm-compute/src/models/sharedGalleriesMappers.ts new file mode 100644 index 000000000000..ce674aba8515 --- /dev/null +++ b/sdk/compute/arm-compute/src/models/sharedGalleriesMappers.ts @@ -0,0 +1,26 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + ApiError, + ApiErrorBase, + CloudError, + Disallowed, + GalleryImageFeature, + GalleryImageIdentifier, + ImagePurchasePlan, + InnerError, + PirResource, + PirSharedGalleryResource, + RecommendedMachineConfiguration, + ResourceRange, + SharedGallery, + SharedGalleryImage, + SharedGalleryImageVersion, + SharedGalleryList +} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/sharedGalleryImageVersionsMappers.ts b/sdk/compute/arm-compute/src/models/sharedGalleryImageVersionsMappers.ts new file mode 100644 index 000000000000..45b623b19c9d --- /dev/null +++ b/sdk/compute/arm-compute/src/models/sharedGalleryImageVersionsMappers.ts @@ -0,0 +1,26 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + ApiError, + ApiErrorBase, + CloudError, + Disallowed, + GalleryImageFeature, + GalleryImageIdentifier, + ImagePurchasePlan, + InnerError, + PirResource, + PirSharedGalleryResource, + RecommendedMachineConfiguration, + ResourceRange, + SharedGallery, + SharedGalleryImage, + SharedGalleryImageVersion, + SharedGalleryImageVersionList +} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/sharedGalleryImagesMappers.ts b/sdk/compute/arm-compute/src/models/sharedGalleryImagesMappers.ts new file mode 100644 index 000000000000..b5cecede4fdd --- /dev/null +++ b/sdk/compute/arm-compute/src/models/sharedGalleryImagesMappers.ts @@ -0,0 +1,26 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + ApiError, + ApiErrorBase, + CloudError, + Disallowed, + GalleryImageFeature, + GalleryImageIdentifier, + ImagePurchasePlan, + InnerError, + PirResource, + PirSharedGalleryResource, + RecommendedMachineConfiguration, + ResourceRange, + SharedGallery, + SharedGalleryImage, + SharedGalleryImageList, + SharedGalleryImageVersion +} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/snapshotsMappers.ts b/sdk/compute/arm-compute/src/models/snapshotsMappers.ts index b3701a644ec9..87ce1835edde 100644 --- a/sdk/compute/arm-compute/src/models/snapshotsMappers.ts +++ b/sdk/compute/arm-compute/src/models/snapshotsMappers.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. @@ -75,6 +75,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -125,10 +126,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotList, @@ -146,6 +151,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -164,6 +170,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -186,6 +195,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/sshPublicKeysMappers.ts b/sdk/compute/arm-compute/src/models/sshPublicKeysMappers.ts index 634c39bf3870..ff16d326b597 100644 --- a/sdk/compute/arm-compute/src/models/sshPublicKeysMappers.ts +++ b/sdk/compute/arm-compute/src/models/sshPublicKeysMappers.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. @@ -77,6 +77,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -128,10 +129,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -151,6 +156,7 @@ export { UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -170,6 +176,10 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -198,6 +208,8 @@ export { VirtualMachineScaleSetUpdateStorageProfile, VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/usageOperationsMappers.ts b/sdk/compute/arm-compute/src/models/usageOperationsMappers.ts index 22de4a8bc142..2bb344ff0880 100644 --- a/sdk/compute/arm-compute/src/models/usageOperationsMappers.ts +++ b/sdk/compute/arm-compute/src/models/usageOperationsMappers.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. diff --git a/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts index 94265b583cca..555113fc1cf3 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.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. @@ -74,6 +74,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -123,10 +124,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -142,6 +147,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -160,6 +166,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -182,6 +191,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts index 6299932f5dcc..fab0b86290f6 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.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. @@ -77,6 +77,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -128,10 +129,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -149,6 +154,7 @@ export { UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -169,6 +175,10 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -197,6 +207,8 @@ export { VirtualMachineScaleSetUpdateStorageProfile, VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts index 94265b583cca..555113fc1cf3 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.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. @@ -74,6 +74,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -123,10 +124,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -142,6 +147,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -160,6 +166,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -182,6 +191,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineRunCommandsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineRunCommandsMappers.ts index 2bcbd6209547..23d98b782754 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineRunCommandsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineRunCommandsMappers.ts @@ -1,15 +1,224 @@ /* - * 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. */ export { + AdditionalCapabilities, + AdditionalUnattendContent, + ApiEntityReference, + ApiError, + ApiErrorBase, + AutomaticOSUpgradePolicy, + AutomaticOSUpgradeProperties, + AutomaticRepairsPolicy, + AvailabilitySet, + AvailabilitySetUpdate, + AvailablePatchSummary, + BaseResource, + BillingProfile, + BootDiagnostics, + BootDiagnosticsInstanceView, CloudError, + ContainerService, + ContainerServiceAgentPoolProfile, + ContainerServiceCustomProfile, + ContainerServiceDiagnosticsProfile, + ContainerServiceLinuxProfile, + ContainerServiceMasterProfile, + ContainerServiceOrchestratorProfile, + ContainerServiceServicePrincipalProfile, + ContainerServiceSshConfiguration, + ContainerServiceSshPublicKey, + ContainerServiceVMDiagnostics, + ContainerServiceWindowsProfile, + CreationData, + DataDisk, + DataDiskImage, + DataDiskImageEncryption, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupInstanceView, + DedicatedHostGroupUpdate, + DedicatedHostInstanceView, + DedicatedHostInstanceViewWithName, + DedicatedHostUpdate, + DiagnosticsProfile, + DiffDiskSettings, + Disallowed, + DisallowedConfiguration, + Disk, + DiskAccess, + DiskEncryptionSet, + DiskEncryptionSetParameters, + DiskEncryptionSettings, + DiskImageEncryption, + DiskInstanceView, + DiskSku, + Encryption, + EncryptionImages, + EncryptionSetIdentity, + EncryptionSettingsCollection, + EncryptionSettingsElement, + Gallery, + GalleryApplication, + GalleryApplicationUpdate, + GalleryApplicationVersion, + GalleryApplicationVersionPublishingProfile, + GalleryApplicationVersionUpdate, + GalleryArtifactPublishingProfileBase, + GalleryArtifactVersionSource, + GalleryDataDiskImage, + GalleryDiskImage, + GalleryIdentifier, + GalleryImage, + GalleryImageFeature, + GalleryImageIdentifier, + GalleryImageUpdate, + GalleryImageVersion, + GalleryImageVersionPublishingProfile, + GalleryImageVersionStorageProfile, + GalleryImageVersionUpdate, + GalleryOSDiskImage, + GalleryUpdate, + HardwareProfile, + Image, + ImageDataDisk, + ImageDisk, + ImageDiskReference, + ImageOSDisk, + ImagePurchasePlan, + ImageReference, + ImageStorageProfile, + ImageUpdate, + InnerError, + InstanceViewStatus, + KeyVaultAndKeyReference, + KeyVaultAndSecretReference, + KeyVaultKeyReference, + KeyVaultSecretReference, + LastPatchInstallationSummary, + LinuxConfiguration, + MaintenanceRedeployStatus, + ManagedDiskParameters, + NetworkInterfaceReference, + NetworkProfile, + OSDisk, + OSDiskImage, + OSDiskImageEncryption, + OSProfile, + PatchSettings, + Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, + ProximityPlacementGroup, + ProximityPlacementGroupUpdate, + PurchasePlan, + RecommendedMachineConfiguration, + RegionalReplicationStatus, + ReplicationStatus, + Resource, + ResourceRange, + RollingUpgradePolicy, + RollingUpgradeProgressInfo, + RollingUpgradeRunningStatus, + RollingUpgradeStatusInfo, RunCommandDocument, RunCommandDocumentBase, + RunCommandInputParameter, RunCommandListResult, - RunCommandParameterDefinition + RunCommandParameterDefinition, + ScaleInPolicy, + ScheduledEventsProfile, + SecurityProfile, + ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, + Sku, + Snapshot, + SnapshotSku, + SourceVault, + SshConfiguration, + SshPublicKey, + SshPublicKeyResource, + SshPublicKeyUpdateResource, + StorageProfile, + SubResource, + SubResourceReadOnly, + SubResourceWithColocationStatus, + TargetRegion, + TerminateNotificationProfile, + UpdateResource, + UpdateResourceDefinition, + UpgradePolicy, + UserArtifactManage, + UserArtifactSource, + VaultCertificate, + VaultSecretGroup, + VirtualHardDisk, + VirtualMachine, + VirtualMachineAgentInstanceView, + VirtualMachineCaptureResult, + VirtualMachineExtension, + VirtualMachineExtensionHandlerInstanceView, + VirtualMachineExtensionImage, + VirtualMachineExtensionInstanceView, + VirtualMachineExtensionUpdate, + VirtualMachineHealthStatus, + VirtualMachineIdentity, + VirtualMachineIdentityUserAssignedIdentitiesValue, + VirtualMachineImage, + VirtualMachineImageResource, + VirtualMachineInstanceView, + VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandsListResult, + VirtualMachineRunCommandUpdate, + VirtualMachineScaleSet, + VirtualMachineScaleSetDataDisk, + VirtualMachineScaleSetExtension, + VirtualMachineScaleSetExtensionProfile, + VirtualMachineScaleSetExtensionUpdate, + VirtualMachineScaleSetIdentity, + VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue, + VirtualMachineScaleSetIPConfiguration, + VirtualMachineScaleSetIpTag, + VirtualMachineScaleSetManagedDiskParameters, + VirtualMachineScaleSetNetworkConfiguration, + VirtualMachineScaleSetNetworkConfigurationDnsSettings, + VirtualMachineScaleSetNetworkProfile, + VirtualMachineScaleSetOSDisk, + VirtualMachineScaleSetOSProfile, + VirtualMachineScaleSetPublicIPAddressConfiguration, + VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, + VirtualMachineScaleSetStorageProfile, + VirtualMachineScaleSetUpdate, + VirtualMachineScaleSetUpdateIPConfiguration, + VirtualMachineScaleSetUpdateNetworkConfiguration, + VirtualMachineScaleSetUpdateNetworkProfile, + VirtualMachineScaleSetUpdateOSDisk, + VirtualMachineScaleSetUpdateOSProfile, + VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, + VirtualMachineScaleSetUpdateStorageProfile, + VirtualMachineScaleSetUpdateVMProfile, + VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, + VirtualMachineScaleSetVMInstanceView, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProfile, + VirtualMachineScaleSetVMProtectionPolicy, + VirtualMachineUpdate, + WindowsConfiguration, + WinRMConfiguration, + WinRMListener } from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts index b97e1690a27a..004f74a3243d 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.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. @@ -74,6 +74,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -123,10 +124,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -142,6 +147,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -160,6 +166,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -183,6 +192,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts index 94265b583cca..555113fc1cf3 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.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. @@ -74,6 +74,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -123,10 +124,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -142,6 +147,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -160,6 +166,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -182,6 +191,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.ts index 6299932f5dcc..238b6e83f864 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.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. @@ -16,7 +16,6 @@ export { AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, AvailabilitySet, - AvailabilitySetUpdate, AvailablePatchSummary, BaseResource, BillingProfile, @@ -44,10 +43,8 @@ export { DedicatedHostAvailableCapacity, DedicatedHostGroup, DedicatedHostGroupInstanceView, - DedicatedHostGroupUpdate, DedicatedHostInstanceView, DedicatedHostInstanceViewWithName, - DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, @@ -77,6 +74,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -94,7 +92,6 @@ export { ImagePurchasePlan, ImageReference, ImageStorageProfile, - ImageUpdate, InnerError, InstanceViewStatus, KeyVaultAndKeyReference, @@ -117,7 +114,6 @@ export { PrivateEndpointConnection, PrivateLinkServiceConnectionState, ProximityPlacementGroup, - ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -128,10 +124,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -139,16 +139,15 @@ export { SshConfiguration, SshPublicKey, SshPublicKeyResource, - SshPublicKeyUpdateResource, StorageProfile, SubResource, SubResourceReadOnly, SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, - UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -160,8 +159,6 @@ export { VirtualMachineExtensionHandlerInstanceView, VirtualMachineExtensionImage, VirtualMachineExtensionInstanceView, - VirtualMachineExtensionsListResult, - VirtualMachineExtensionUpdate, VirtualMachineHealthStatus, VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, @@ -169,6 +166,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -187,21 +187,17 @@ export { VirtualMachineScaleSetPublicIPAddressConfiguration, VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, VirtualMachineScaleSetStorageProfile, - VirtualMachineScaleSetUpdate, VirtualMachineScaleSetUpdateIPConfiguration, VirtualMachineScaleSetUpdateNetworkConfiguration, - VirtualMachineScaleSetUpdateNetworkProfile, - VirtualMachineScaleSetUpdateOSDisk, - VirtualMachineScaleSetUpdateOSProfile, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, - VirtualMachineScaleSetUpdateStorageProfile, - VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionsListResult, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, - VirtualMachineUpdate, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMRunCommandsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMRunCommandsMappers.ts new file mode 100644 index 000000000000..f600fd80e214 --- /dev/null +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMRunCommandsMappers.ts @@ -0,0 +1,220 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + AdditionalCapabilities, + AdditionalUnattendContent, + ApiEntityReference, + ApiError, + ApiErrorBase, + AutomaticOSUpgradePolicy, + AutomaticOSUpgradeProperties, + AutomaticRepairsPolicy, + AvailabilitySet, + AvailabilitySetUpdate, + AvailablePatchSummary, + BaseResource, + BillingProfile, + BootDiagnostics, + BootDiagnosticsInstanceView, + CloudError, + ContainerService, + ContainerServiceAgentPoolProfile, + ContainerServiceCustomProfile, + ContainerServiceDiagnosticsProfile, + ContainerServiceLinuxProfile, + ContainerServiceMasterProfile, + ContainerServiceOrchestratorProfile, + ContainerServiceServicePrincipalProfile, + ContainerServiceSshConfiguration, + ContainerServiceSshPublicKey, + ContainerServiceVMDiagnostics, + ContainerServiceWindowsProfile, + CreationData, + DataDisk, + DataDiskImage, + DataDiskImageEncryption, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupInstanceView, + DedicatedHostGroupUpdate, + DedicatedHostInstanceView, + DedicatedHostInstanceViewWithName, + DedicatedHostUpdate, + DiagnosticsProfile, + DiffDiskSettings, + Disallowed, + DisallowedConfiguration, + Disk, + DiskAccess, + DiskEncryptionSet, + DiskEncryptionSetParameters, + DiskEncryptionSettings, + DiskImageEncryption, + DiskInstanceView, + DiskSku, + Encryption, + EncryptionImages, + EncryptionSetIdentity, + EncryptionSettingsCollection, + EncryptionSettingsElement, + Gallery, + GalleryApplication, + GalleryApplicationUpdate, + GalleryApplicationVersion, + GalleryApplicationVersionPublishingProfile, + GalleryApplicationVersionUpdate, + GalleryArtifactPublishingProfileBase, + GalleryArtifactVersionSource, + GalleryDataDiskImage, + GalleryDiskImage, + GalleryIdentifier, + GalleryImage, + GalleryImageFeature, + GalleryImageIdentifier, + GalleryImageUpdate, + GalleryImageVersion, + GalleryImageVersionPublishingProfile, + GalleryImageVersionStorageProfile, + GalleryImageVersionUpdate, + GalleryOSDiskImage, + GalleryUpdate, + HardwareProfile, + Image, + ImageDataDisk, + ImageDisk, + ImageDiskReference, + ImageOSDisk, + ImagePurchasePlan, + ImageReference, + ImageStorageProfile, + ImageUpdate, + InnerError, + InstanceViewStatus, + KeyVaultAndKeyReference, + KeyVaultAndSecretReference, + KeyVaultKeyReference, + KeyVaultSecretReference, + LastPatchInstallationSummary, + LinuxConfiguration, + MaintenanceRedeployStatus, + ManagedDiskParameters, + NetworkInterfaceReference, + NetworkProfile, + OSDisk, + OSDiskImage, + OSDiskImageEncryption, + OSProfile, + PatchSettings, + Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, + ProximityPlacementGroup, + ProximityPlacementGroupUpdate, + PurchasePlan, + RecommendedMachineConfiguration, + RegionalReplicationStatus, + ReplicationStatus, + Resource, + ResourceRange, + RollingUpgradePolicy, + RollingUpgradeProgressInfo, + RollingUpgradeRunningStatus, + RollingUpgradeStatusInfo, + RunCommandInputParameter, + ScaleInPolicy, + ScheduledEventsProfile, + SecurityProfile, + ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, + Sku, + Snapshot, + SnapshotSku, + SourceVault, + SshConfiguration, + SshPublicKey, + SshPublicKeyResource, + SshPublicKeyUpdateResource, + StorageProfile, + SubResource, + SubResourceReadOnly, + SubResourceWithColocationStatus, + TargetRegion, + TerminateNotificationProfile, + UpdateResource, + UpdateResourceDefinition, + UpgradePolicy, + UserArtifactManage, + UserArtifactSource, + VaultCertificate, + VaultSecretGroup, + VirtualHardDisk, + VirtualMachine, + VirtualMachineAgentInstanceView, + VirtualMachineCaptureResult, + VirtualMachineExtension, + VirtualMachineExtensionHandlerInstanceView, + VirtualMachineExtensionImage, + VirtualMachineExtensionInstanceView, + VirtualMachineExtensionUpdate, + VirtualMachineHealthStatus, + VirtualMachineIdentity, + VirtualMachineIdentityUserAssignedIdentitiesValue, + VirtualMachineImage, + VirtualMachineImageResource, + VirtualMachineInstanceView, + VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandsListResult, + VirtualMachineRunCommandUpdate, + VirtualMachineScaleSet, + VirtualMachineScaleSetDataDisk, + VirtualMachineScaleSetExtension, + VirtualMachineScaleSetExtensionProfile, + VirtualMachineScaleSetExtensionUpdate, + VirtualMachineScaleSetIdentity, + VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue, + VirtualMachineScaleSetIPConfiguration, + VirtualMachineScaleSetIpTag, + VirtualMachineScaleSetManagedDiskParameters, + VirtualMachineScaleSetNetworkConfiguration, + VirtualMachineScaleSetNetworkConfigurationDnsSettings, + VirtualMachineScaleSetNetworkProfile, + VirtualMachineScaleSetOSDisk, + VirtualMachineScaleSetOSProfile, + VirtualMachineScaleSetPublicIPAddressConfiguration, + VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, + VirtualMachineScaleSetStorageProfile, + VirtualMachineScaleSetUpdate, + VirtualMachineScaleSetUpdateIPConfiguration, + VirtualMachineScaleSetUpdateNetworkConfiguration, + VirtualMachineScaleSetUpdateNetworkProfile, + VirtualMachineScaleSetUpdateOSDisk, + VirtualMachineScaleSetUpdateOSProfile, + VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, + VirtualMachineScaleSetUpdateStorageProfile, + VirtualMachineScaleSetUpdateVMProfile, + VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, + VirtualMachineScaleSetVMInstanceView, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProfile, + VirtualMachineScaleSetVMProtectionPolicy, + VirtualMachineUpdate, + WindowsConfiguration, + WinRMConfiguration, + WinRMListener +} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts index 5a4992a8918f..de02b63a19db 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.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. @@ -74,6 +74,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -131,6 +132,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -146,6 +150,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -165,6 +170,9 @@ export { VirtualMachineInstanceView, VirtualMachinePatchStatus, VirtualMachineReimageParameters, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -188,6 +196,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMListResult, VirtualMachineScaleSetVMNetworkProfileConfiguration, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts index 7ada9068e03d..78e94ab18d68 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.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. @@ -77,6 +77,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -132,10 +133,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -156,6 +161,7 @@ export { UpgradeOperationHistoricalStatusInfoProperties, UpgradeOperationHistoryStatus, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -176,6 +182,10 @@ export { VirtualMachineInstanceView, VirtualMachinePatchStatus, VirtualMachineReimageParameters, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -213,7 +223,9 @@ export { VirtualMachineScaleSetUpdateStorageProfile, VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, VirtualMachineScaleSetVMExtensionsSummary, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetVMInstanceRequiredIDs, VirtualMachineScaleSetVMInstanceView, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineSizesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineSizesMappers.ts index 8ec98784bc24..28fe9cbb2f07 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineSizesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineSizesMappers.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. diff --git a/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts index d2ce653f6004..c149762f9c50 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachinesMappers.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. @@ -77,6 +77,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -136,6 +137,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -153,6 +157,7 @@ export { UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -176,6 +181,10 @@ export { VirtualMachineListResult, VirtualMachinePatchStatus, VirtualMachineReimageParameters, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -205,6 +214,8 @@ export { VirtualMachineScaleSetUpdateStorageProfile, VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/operations/availabilitySets.ts b/sdk/compute/arm-compute/src/operations/availabilitySets.ts index 8eeeef9361ab..9f7df2e368c4 100644 --- a/sdk/compute/arm-compute/src/operations/availabilitySets.ts +++ b/sdk/compute/arm-compute/src/operations/availabilitySets.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 @@ -253,7 +252,7 @@ export class AvailabilitySets { * @param [options] The optional parameters * @returns Promise */ - 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 index a0b681fc5406..db3125479a2a 100644 --- a/sdk/compute/arm-compute/src/operations/containerServices.ts +++ b/sdk/compute/arm-compute/src/operations/containerServices.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 @@ -408,6 +407,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion4 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -429,6 +431,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion4 + ], headerParameters: [ Parameters.acceptLanguage ], 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..c0cf922219a8 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 @@ -62,7 +61,7 @@ export class Galleries { * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, galleryName: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, galleryName: string, options?: Models.GalleriesGetOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery. @@ -75,8 +74,8 @@ export class Galleries { * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, galleryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, galleryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, galleryName: string, options: Models.GalleriesGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, galleryName: string, options?: Models.GalleriesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -279,7 +278,8 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.galleryName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion3, + Parameters.select ], headerParameters: [ Parameters.acceptLanguage @@ -444,6 +444,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -465,6 +468,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..d06c2e45e1b1 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 @@ -28,15 +27,15 @@ export class GalleryImageVersions { } /** - * Create or update a gallery Image Version. + * Create or update a gallery image version. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. - * @param galleryImageName The name of the gallery Image Definition in which the Image Version is + * @param galleryImageName The name of the gallery image definition in which the Image Version is * to be created. - * @param galleryImageVersionName The name of the gallery Image Version to be created. Needs to + * @param galleryImageVersionName The name of the gallery image version to be created. Needs to * follow semantic version name pattern: The allowed characters are digit and period. Digits must * be within the range of a 32-bit integer. Format: .. - * @param galleryImageVersion Parameters supplied to the create or update gallery Image Version + * @param galleryImageVersion Parameters supplied to the create or update gallery image version * operation. * @param [options] The optional parameters * @returns Promise @@ -47,15 +46,15 @@ export class GalleryImageVersions { } /** - * Update a gallery Image Version. + * Update a gallery image version. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. - * @param galleryImageName The name of the gallery Image Definition in which the Image Version is + * @param galleryImageName The name of the gallery image definition in which the Image Version is * to be updated. - * @param galleryImageVersionName The name of the gallery Image Version to be updated. Needs to + * @param galleryImageVersionName The name of the gallery image version to be updated. Needs to * follow semantic version name pattern: The allowed characters are digit and period. Digits must * be within the range of a 32-bit integer. Format: .. - * @param galleryImageVersion Parameters supplied to the update gallery Image Version operation. + * @param galleryImageVersion Parameters supplied to the update gallery image version operation. * @param [options] The optional parameters * @returns Promise */ @@ -65,12 +64,12 @@ export class GalleryImageVersions { } /** - * Retrieves information about a gallery Image Version. + * Retrieves information about a gallery image version. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. - * @param galleryImageName The name of the gallery Image Definition in which the Image Version + * @param galleryImageName The name of the gallery image definition in which the Image Version * resides. - * @param galleryImageVersionName The name of the gallery Image Version to be retrieved. + * @param galleryImageVersionName The name of the gallery image version to be retrieved. * @param [options] The optional parameters * @returns Promise */ @@ -78,18 +77,18 @@ export class GalleryImageVersions { /** * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. - * @param galleryImageName The name of the gallery Image Definition in which the Image Version + * @param galleryImageName The name of the gallery image definition in which the Image Version * resides. - * @param galleryImageVersionName The name of the gallery Image Version to be retrieved. + * @param galleryImageVersionName The name of the gallery image version to be retrieved. * @param callback The callback */ get(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. - * @param galleryImageName The name of the gallery Image Definition in which the Image Version + * @param galleryImageName The name of the gallery image definition in which the Image Version * resides. - * @param galleryImageVersionName The name of the gallery Image Version to be retrieved. + * @param galleryImageVersionName The name of the gallery image version to be retrieved. * @param options The optional parameters * @param callback The callback */ @@ -108,12 +107,12 @@ export class GalleryImageVersions { } /** - * Delete a gallery Image Version. + * Delete a gallery image version. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. - * @param galleryImageName The name of the gallery Image Definition in which the Image Version + * @param galleryImageName The name of the gallery image definition in which the Image Version * resides. - * @param galleryImageVersionName The name of the gallery Image Version to be deleted. + * @param galleryImageVersionName The name of the gallery image version to be deleted. * @param [options] The optional parameters * @returns Promise */ @@ -123,7 +122,7 @@ export class GalleryImageVersions { } /** - * List gallery Image Versions in a gallery Image Definition. + * List gallery image versions in a gallery image definition. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. * @param galleryImageName The name of the Shared Image Gallery Image Definition from which the @@ -162,15 +161,15 @@ export class GalleryImageVersions { } /** - * Create or update a gallery Image Version. + * Create or update a gallery image version. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. - * @param galleryImageName The name of the gallery Image Definition in which the Image Version is + * @param galleryImageName The name of the gallery image definition in which the Image Version is * to be created. - * @param galleryImageVersionName The name of the gallery Image Version to be created. Needs to + * @param galleryImageVersionName The name of the gallery image version to be created. Needs to * follow semantic version name pattern: The allowed characters are digit and period. Digits must * be within the range of a 32-bit integer. Format: .. - * @param galleryImageVersion Parameters supplied to the create or update gallery Image Version + * @param galleryImageVersion Parameters supplied to the create or update gallery image version * operation. * @param [options] The optional parameters * @returns Promise @@ -190,15 +189,15 @@ export class GalleryImageVersions { } /** - * Update a gallery Image Version. + * Update a gallery image version. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. - * @param galleryImageName The name of the gallery Image Definition in which the Image Version is + * @param galleryImageName The name of the gallery image definition in which the Image Version is * to be updated. - * @param galleryImageVersionName The name of the gallery Image Version to be updated. Needs to + * @param galleryImageVersionName The name of the gallery image version to be updated. Needs to * follow semantic version name pattern: The allowed characters are digit and period. Digits must * be within the range of a 32-bit integer. Format: .. - * @param galleryImageVersion Parameters supplied to the update gallery Image Version operation. + * @param galleryImageVersion Parameters supplied to the update gallery image version operation. * @param [options] The optional parameters * @returns Promise */ @@ -217,12 +216,12 @@ export class GalleryImageVersions { } /** - * Delete a gallery Image Version. + * Delete a gallery image version. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. - * @param galleryImageName The name of the gallery Image Definition in which the Image Version + * @param galleryImageName The name of the gallery image definition in which the Image Version * resides. - * @param galleryImageVersionName The name of the gallery Image Version to be deleted. + * @param galleryImageVersionName The name of the gallery image version to be deleted. * @param [options] The optional parameters * @returns Promise */ @@ -240,7 +239,7 @@ export class GalleryImageVersions { } /** - * List gallery Image Versions in a gallery Image Definition. + * List gallery image versions in a gallery image definition. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise @@ -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..ff28c14c9530 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 @@ -28,11 +27,11 @@ export class GalleryImages { } /** - * Create or update a gallery Image Definition. + * Create or update a gallery image definition. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be * created. - * @param galleryImageName The name of the gallery Image Definition to be created or updated. The + * @param galleryImageName The name of the gallery image definition to be created or updated. The * allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the * middle. The maximum length is 80 characters. * @param galleryImage Parameters supplied to the create or update gallery image operation. @@ -45,11 +44,11 @@ export class GalleryImages { } /** - * Update a gallery Image Definition. + * Update a gallery image definition. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be * updated. - * @param galleryImageName The name of the gallery Image Definition to be updated. The allowed + * @param galleryImageName The name of the gallery image definition to be updated. The allowed * characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The * maximum length is 80 characters. * @param galleryImage Parameters supplied to the update gallery image operation. @@ -62,11 +61,11 @@ export class GalleryImages { } /** - * Retrieves information about a gallery Image Definition. + * Retrieves information about a gallery image definition. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery from which the Image Definitions are to * be retrieved. - * @param galleryImageName The name of the gallery Image Definition to be retrieved. + * @param galleryImageName The name of the gallery image definition to be retrieved. * @param [options] The optional parameters * @returns Promise */ @@ -75,7 +74,7 @@ export class GalleryImages { * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery from which the Image Definitions are to * be retrieved. - * @param galleryImageName The name of the gallery Image Definition to be retrieved. + * @param galleryImageName The name of the gallery image definition to be retrieved. * @param callback The callback */ get(resourceGroupName: string, galleryName: string, galleryImageName: string, callback: msRest.ServiceCallback): void; @@ -83,7 +82,7 @@ export class GalleryImages { * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery from which the Image Definitions are to * be retrieved. - * @param galleryImageName The name of the gallery Image Definition to be retrieved. + * @param galleryImageName The name of the gallery image definition to be retrieved. * @param options The optional parameters * @param callback The callback */ @@ -105,7 +104,7 @@ export class GalleryImages { * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be * deleted. - * @param galleryImageName The name of the gallery Image Definition to be deleted. + * @param galleryImageName The name of the gallery image definition to be deleted. * @param [options] The optional parameters * @returns Promise */ @@ -115,7 +114,7 @@ export class GalleryImages { } /** - * List gallery Image Definitions in a gallery. + * List gallery image definitions in a gallery. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery from which Image Definitions are to be * listed. @@ -150,11 +149,11 @@ export class GalleryImages { } /** - * Create or update a gallery Image Definition. + * Create or update a gallery image definition. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be * created. - * @param galleryImageName The name of the gallery Image Definition to be created or updated. The + * @param galleryImageName The name of the gallery image definition to be created or updated. The * allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the * middle. The maximum length is 80 characters. * @param galleryImage Parameters supplied to the create or update gallery image operation. @@ -175,11 +174,11 @@ export class GalleryImages { } /** - * Update a gallery Image Definition. + * Update a gallery image definition. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be * updated. - * @param galleryImageName The name of the gallery Image Definition to be updated. The allowed + * @param galleryImageName The name of the gallery image definition to be updated. The allowed * characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The * maximum length is 80 characters. * @param galleryImage Parameters supplied to the update gallery image operation. @@ -204,7 +203,7 @@ export class GalleryImages { * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be * deleted. - * @param galleryImageName The name of the gallery Image Definition to be deleted. + * @param galleryImageName The name of the gallery image definition to be deleted. * @param [options] The optional parameters * @returns Promise */ @@ -221,7 +220,7 @@ export class GalleryImages { } /** - * List gallery Image Definitions in a gallery. + * List gallery image definitions in a gallery. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise @@ -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/gallerySharingProfile.ts b/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts new file mode 100644 index 000000000000..8707b78f4968 --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts @@ -0,0 +1,98 @@ +/* + * 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/gallerySharingProfileMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a GallerySharingProfile. */ +export class GallerySharingProfile { + private readonly client: ComputeManagementClientContext; + + /** + * Create a GallerySharingProfile. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * Update sharing profile of a gallery. + * @param resourceGroupName The name of the resource group. + * @param galleryName The name of the Shared Image Gallery. + * @param sharingUpdate Parameters supplied to the update gallery sharing profile. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, galleryName: string, sharingUpdate: Models.SharingUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,galleryName,sharingUpdate,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Update sharing profile of a gallery. + * @param resourceGroupName The name of the resource group. + * @param galleryName The name of the Shared Image Gallery. + * @param sharingUpdate Parameters supplied to the update gallery sharing profile. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, galleryName: string, sharingUpdate: Models.SharingUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + galleryName, + sharingUpdate, + options + }, + beginUpdateOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/share", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.galleryName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "sharingUpdate", + mapper: { + ...Mappers.SharingUpdate, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SharingUpdate + }, + 202: { + bodyMapper: Mappers.SharingUpdate + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; 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..6a1fa8c7db82 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 @@ -28,6 +27,7 @@ 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 +38,8 @@ export * from "./galleryImages"; export * from "./galleryImageVersions"; export * from "./galleryApplications"; export * from "./galleryApplicationVersions"; +export * from "./gallerySharingProfile"; +export * from "./sharedGalleries"; +export * from "./sharedGalleryImages"; +export * from "./sharedGalleryImageVersions"; 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/sharedGalleries.ts b/sdk/compute/arm-compute/src/operations/sharedGalleries.ts new file mode 100644 index 000000000000..130870bcc711 --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/sharedGalleries.ts @@ -0,0 +1,192 @@ +/* + * 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/sharedGalleriesMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a SharedGalleries. */ +export class SharedGalleries { + private readonly client: ComputeManagementClientContext; + + /** + * Create a SharedGalleries. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * List shared galleries by subscription id or tenant id. + * @param location Resource location. + * @param [options] The optional parameters + * @returns Promise + */ + list(location: string, options?: Models.SharedGalleriesListOptionalParams): Promise; + /** + * @param location Resource location. + * @param callback The callback + */ + list(location: string, callback: msRest.ServiceCallback): void; + /** + * @param location Resource location. + * @param options The optional parameters + * @param callback The callback + */ + list(location: string, options: Models.SharedGalleriesListOptionalParams, callback: msRest.ServiceCallback): void; + list(location: string, options?: Models.SharedGalleriesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get a shared gallery by subscription id or tenant id. + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param [options] The optional parameters + * @returns Promise + */ + get(location: string, galleryUniqueName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param callback The callback + */ + get(location: string, galleryUniqueName: string, callback: msRest.ServiceCallback): void; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param options The optional parameters + * @param callback The callback + */ + get(location: string, galleryUniqueName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(location: string, galleryUniqueName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + galleryUniqueName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * List shared galleries by subscription id or tenant id. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.SharedGalleriesListNextOptionalParams): 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.SharedGalleriesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.SharedGalleriesListNextOptionalParams | 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 listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location0 + ], + queryParameters: [ + Parameters.apiVersion3, + Parameters.sharedTo + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedGalleryList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location0, + Parameters.galleryUniqueName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedGallery + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion3, + Parameters.sharedTo + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedGalleryList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts new file mode 100644 index 000000000000..b525cc524e01 --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts @@ -0,0 +1,224 @@ +/* + * 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/sharedGalleryImageVersionsMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a SharedGalleryImageVersions. */ +export class SharedGalleryImageVersions { + private readonly client: ComputeManagementClientContext; + + /** + * Create a SharedGalleryImageVersions. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * List shared gallery image versions by subscription id or tenant id. + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param galleryImageName The name of the Shared Gallery Image Definition from which the Image + * Versions are to be listed. + * @param [options] The optional parameters + * @returns Promise + */ + list(location: string, galleryUniqueName: string, galleryImageName: string, options?: Models.SharedGalleryImageVersionsListOptionalParams): Promise; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param galleryImageName The name of the Shared Gallery Image Definition from which the Image + * Versions are to be listed. + * @param callback The callback + */ + list(location: string, galleryUniqueName: string, galleryImageName: string, callback: msRest.ServiceCallback): void; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param galleryImageName The name of the Shared Gallery Image Definition from which the Image + * Versions are to be listed. + * @param options The optional parameters + * @param callback The callback + */ + list(location: string, galleryUniqueName: string, galleryImageName: string, options: Models.SharedGalleryImageVersionsListOptionalParams, callback: msRest.ServiceCallback): void; + list(location: string, galleryUniqueName: string, galleryImageName: string, options?: Models.SharedGalleryImageVersionsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + galleryUniqueName, + galleryImageName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get a shared gallery image version by subscription id or tenant id. + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param galleryImageName The name of the Shared Gallery Image Definition from which the Image + * Versions are to be listed. + * @param galleryImageVersionName The name of the gallery image version to be created. Needs to + * follow semantic version name pattern: The allowed characters are digit and period. Digits must + * be within the range of a 32-bit integer. Format: .. + * @param [options] The optional parameters + * @returns Promise + */ + get(location: string, galleryUniqueName: string, galleryImageName: string, galleryImageVersionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param galleryImageName The name of the Shared Gallery Image Definition from which the Image + * Versions are to be listed. + * @param galleryImageVersionName The name of the gallery image version to be created. Needs to + * follow semantic version name pattern: The allowed characters are digit and period. Digits must + * be within the range of a 32-bit integer. Format: .. + * @param callback The callback + */ + get(location: string, galleryUniqueName: string, galleryImageName: string, galleryImageVersionName: string, callback: msRest.ServiceCallback): void; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param galleryImageName The name of the Shared Gallery Image Definition from which the Image + * Versions are to be listed. + * @param galleryImageVersionName The name of the gallery image version to be created. Needs to + * follow semantic version name pattern: The allowed characters are digit and period. Digits must + * be within the range of a 32-bit integer. Format: .. + * @param options The optional parameters + * @param callback The callback + */ + get(location: string, galleryUniqueName: string, galleryImageName: string, galleryImageVersionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(location: string, galleryUniqueName: string, galleryImageName: string, galleryImageVersionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + galleryUniqueName, + galleryImageName, + galleryImageVersionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * List shared gallery image versions by subscription id or tenant id. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.SharedGalleryImageVersionsListNextOptionalParams): 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.SharedGalleryImageVersionsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.SharedGalleryImageVersionsListNextOptionalParams | 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 listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location0, + Parameters.galleryUniqueName, + Parameters.galleryImageName + ], + queryParameters: [ + Parameters.apiVersion3, + Parameters.sharedTo + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedGalleryImageVersionList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions/{galleryImageVersionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location0, + Parameters.galleryUniqueName, + Parameters.galleryImageName, + Parameters.galleryImageVersionName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedGalleryImageVersion + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion3, + Parameters.sharedTo + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedGalleryImageVersionList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts b/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts new file mode 100644 index 000000000000..de7328480938 --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts @@ -0,0 +1,205 @@ +/* + * 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/sharedGalleryImagesMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a SharedGalleryImages. */ +export class SharedGalleryImages { + private readonly client: ComputeManagementClientContext; + + /** + * Create a SharedGalleryImages. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * List shared gallery images by subscription id or tenant id. + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param [options] The optional parameters + * @returns Promise + */ + list(location: string, galleryUniqueName: string, options?: Models.SharedGalleryImagesListOptionalParams): Promise; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param callback The callback + */ + list(location: string, galleryUniqueName: string, callback: msRest.ServiceCallback): void; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param options The optional parameters + * @param callback The callback + */ + list(location: string, galleryUniqueName: string, options: Models.SharedGalleryImagesListOptionalParams, callback: msRest.ServiceCallback): void; + list(location: string, galleryUniqueName: string, options?: Models.SharedGalleryImagesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + galleryUniqueName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get a shared gallery image by subscription id or tenant id. + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param galleryImageName The name of the Shared Gallery Image Definition from which the Image + * Versions are to be listed. + * @param [options] The optional parameters + * @returns Promise + */ + get(location: string, galleryUniqueName: string, galleryImageName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param galleryImageName The name of the Shared Gallery Image Definition from which the Image + * Versions are to be listed. + * @param callback The callback + */ + get(location: string, galleryUniqueName: string, galleryImageName: string, callback: msRest.ServiceCallback): void; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param galleryImageName The name of the Shared Gallery Image Definition from which the Image + * Versions are to be listed. + * @param options The optional parameters + * @param callback The callback + */ + get(location: string, galleryUniqueName: string, galleryImageName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(location: string, galleryUniqueName: string, galleryImageName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + galleryUniqueName, + galleryImageName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * List shared gallery images by subscription id or tenant id. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.SharedGalleryImagesListNextOptionalParams): 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.SharedGalleryImagesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.SharedGalleryImagesListNextOptionalParams | 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 listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location0, + Parameters.galleryUniqueName + ], + queryParameters: [ + Parameters.apiVersion3, + Parameters.sharedTo + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedGalleryImageList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location0, + Parameters.galleryUniqueName, + Parameters.galleryImageName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedGalleryImage + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion3, + Parameters.sharedTo + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedGalleryImageList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; 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/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..41a28e294d42 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 @@ -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, @@ -1061,6 +1060,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..90dd03e60375 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 @@ -1506,6 +1505,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1527,6 +1529,9 @@ const listAllNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1548,6 +1553,9 @@ const listSkusNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1569,6 +1577,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..6dd62837008a 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()); } @@ -564,7 +563,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, @@ -842,7 +841,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 +852,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, @@ -1199,6 +1198,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ + Parameters.forceDeletion, Parameters.apiVersion0 ], headerParameters: [ @@ -1505,6 +1505,9 @@ const listByLocationNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1526,6 +1529,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1547,6 +1553,10 @@ const listAllNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.statusOnly + ], headerParameters: [ Parameters.acceptLanguage ],