From 51fac325963d561ef87a5374f892b4ca7cf47cec Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 8 Dec 2020 14:50:41 +0000 Subject: [PATCH] CodeGen from PR 12009 in Azure/azure-rest-api-specs Merge 02deedf7b816c3a59ac8696025dbe38e5e3c9a9a into 4a502277bac8b2b6c4e3e8ea23bc99324beb4bab --- 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 | 17 +- .../src/models/containerServicesMappers.ts | 17 +- .../src/models/dedicatedHostGroupsMappers.ts | 17 +- .../src/models/dedicatedHostsMappers.ts | 17 +- .../src/models/diskAccessesMappers.ts | 17 +- .../src/models/diskEncryptionSetsMappers.ts | 17 +- .../arm-compute/src/models/disksMappers.ts | 17 +- .../src/models/galleriesMappers.ts | 17 +- .../galleryApplicationVersionsMappers.ts | 17 +- .../src/models/galleryApplicationsMappers.ts | 17 +- .../src/models/galleryImageVersionsMappers.ts | 17 +- .../src/models/galleryImagesMappers.ts | 17 +- .../models/gallerySharingProfileMappers.ts | 203 ++ .../arm-compute/src/models/imagesMappers.ts | 17 +- sdk/compute/arm-compute/src/models/index.ts | 1714 +++++++++++++++-- .../src/models/logAnalyticsMappers.ts | 4 +- sdk/compute/arm-compute/src/models/mappers.ts | 1178 ++++++++++- .../src/models/operationsMappers.ts | 4 +- .../arm-compute/src/models/parameters.ts | 53 +- .../models/proximityPlacementGroupsMappers.ts | 17 +- .../src/models/resourceSkusMappers.ts | 4 +- .../src/models/sharedGalleriesMappers.ts | 26 + .../sharedGalleryImageVersionsMappers.ts | 26 + .../src/models/sharedGalleryImagesMappers.ts | 26 + .../src/models/snapshotsMappers.ts | 17 +- .../src/models/sshPublicKeysMappers.ts | 17 +- .../src/models/usageOperationsMappers.ts | 4 +- .../virtualMachineExtensionImagesMappers.ts | 17 +- .../models/virtualMachineExtensionsMappers.ts | 17 +- .../virtualMachineImagesEdgeZoneMappers.ts | 203 ++ .../src/models/virtualMachineImagesMappers.ts | 17 +- .../virtualMachineRunCommandsMappers.ts | 4 +- ...virtualMachineScaleSetExtensionsMappers.ts | 17 +- ...alMachineScaleSetRollingUpgradesMappers.ts | 17 +- ...rtualMachineScaleSetVMExtensionsMappers.ts | 34 +- .../virtualMachineScaleSetVMsMappers.ts | 17 +- .../models/virtualMachineScaleSetsMappers.ts | 17 +- .../src/models/virtualMachineSizesMappers.ts | 4 +- .../src/models/virtualMachinesMappers.ts | 22 +- .../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 +- .../virtualMachineImagesEdgeZone.ts | 413 ++++ .../operations/virtualMachineRunCommands.ts | 8 +- .../virtualMachineScaleSetExtensions.ts | 8 +- .../virtualMachineScaleSetRollingUpgrades.ts | 5 +- .../virtualMachineScaleSetVMExtensions.ts | 39 +- .../operations/virtualMachineScaleSetVMs.ts | 22 +- .../src/operations/virtualMachineScaleSets.ts | 27 +- .../src/operations/virtualMachineSizes.ts | 5 +- .../src/operations/virtualMachines.ts | 92 +- 80 files changed, 5108 insertions(+), 495 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/virtualMachineImagesEdgeZoneMappers.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/virtualMachineImagesEdgeZone.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..f87201010b12 100644 --- a/sdk/compute/arm-compute/src/computeManagementClient.ts +++ b/sdk/compute/arm-compute/src/computeManagementClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -26,6 +25,7 @@ class ComputeManagementClient extends ComputeManagementClientContext { virtualMachineExtensionImages: operations.VirtualMachineExtensionImages; virtualMachineExtensions: operations.VirtualMachineExtensions; virtualMachineImages: operations.VirtualMachineImages; + virtualMachineImagesEdgeZone: operations.VirtualMachineImagesEdgeZone; usage: operations.UsageOperations; virtualMachines: operations.VirtualMachines; virtualMachineSizes: operations.VirtualMachineSizes; @@ -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; /** @@ -67,6 +71,7 @@ class ComputeManagementClient extends ComputeManagementClientContext { this.virtualMachineExtensionImages = new operations.VirtualMachineExtensionImages(this); this.virtualMachineExtensions = new operations.VirtualMachineExtensions(this); this.virtualMachineImages = new operations.VirtualMachineImages(this); + this.virtualMachineImagesEdgeZone = new operations.VirtualMachineImagesEdgeZone(this); this.usage = new operations.UsageOperations(this); this.virtualMachines = new operations.VirtualMachines(this); this.virtualMachineSizes = new operations.VirtualMachineSizes(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..b455a64f9605 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. @@ -12,6 +12,7 @@ export { ApiEntityReference, ApiError, ApiErrorBase, + ApplicationProfile, AutomaticOSUpgradePolicy, AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, @@ -66,6 +67,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -78,6 +80,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -104,6 +107,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -112,7 +116,6 @@ export { OSDiskImage, OSDiskImageEncryption, OSProfile, - PatchSettings, Plan, PrivateEndpoint, PrivateEndpointConnection, @@ -133,6 +136,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -147,6 +153,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResource, UpdateResourceDefinition, UpgradePolicy, @@ -197,6 +204,8 @@ export { VirtualMachineScaleSetUpdateStorageProfile, VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, @@ -204,7 +213,9 @@ export { VirtualMachineSize, VirtualMachineSizeListResult, VirtualMachineUpdate, + VMGalleryApplication, WindowsConfiguration, + WindowsPatchSettings, WinRMConfiguration, WinRMListener } from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/containerServicesMappers.ts b/sdk/compute/arm-compute/src/models/containerServicesMappers.ts index f51c43681cb0..42bcd6e27629 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. @@ -12,6 +12,7 @@ export { ApiEntityReference, ApiError, ApiErrorBase, + ApplicationProfile, AutomaticOSUpgradePolicy, AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, @@ -63,6 +64,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -75,6 +77,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -100,6 +103,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -108,7 +112,6 @@ export { OSDiskImage, OSDiskImageEncryption, OSProfile, - PatchSettings, Plan, PrivateEndpoint, PrivateEndpointConnection, @@ -128,6 +131,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -141,6 +147,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -183,11 +190,15 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, + VMGalleryApplication, WindowsConfiguration, + WindowsPatchSettings, WinRMConfiguration, WinRMListener } from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts b/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts index d6492a5ccb31..d6998e1e6a68 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. @@ -12,6 +12,7 @@ export { ApiEntityReference, ApiError, ApiErrorBase, + ApplicationProfile, AutomaticOSUpgradePolicy, AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, @@ -66,6 +67,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -78,6 +80,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -104,6 +107,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -112,7 +116,6 @@ export { OSDiskImage, OSDiskImageEncryption, OSProfile, - PatchSettings, Plan, PrivateEndpoint, PrivateEndpointConnection, @@ -133,6 +136,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -147,6 +153,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResource, UpdateResourceDefinition, UpgradePolicy, @@ -197,12 +204,16 @@ export { VirtualMachineScaleSetUpdateStorageProfile, VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, VirtualMachineUpdate, + VMGalleryApplication, WindowsConfiguration, + WindowsPatchSettings, WinRMConfiguration, WinRMListener } from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts b/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts index e13ef3198917..2e39db3eab43 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. @@ -12,6 +12,7 @@ export { ApiEntityReference, ApiError, ApiErrorBase, + ApplicationProfile, AutomaticOSUpgradePolicy, AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, @@ -66,6 +67,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -78,6 +80,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -104,6 +107,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -112,7 +116,6 @@ export { OSDiskImage, OSDiskImageEncryption, OSProfile, - PatchSettings, Plan, PrivateEndpoint, PrivateEndpointConnection, @@ -133,6 +136,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -147,6 +153,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResource, UpdateResourceDefinition, UpgradePolicy, @@ -197,12 +204,16 @@ export { VirtualMachineScaleSetUpdateStorageProfile, VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, VirtualMachineUpdate, + VMGalleryApplication, WindowsConfiguration, + WindowsPatchSettings, WinRMConfiguration, WinRMListener } from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts b/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts index 04693ac9ce02..1e18d00d3581 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. @@ -12,6 +12,7 @@ export { ApiEntityReference, ApiError, ApiErrorBase, + ApplicationProfile, AutomaticOSUpgradePolicy, AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, @@ -64,6 +65,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -76,6 +78,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -101,6 +104,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -109,7 +113,6 @@ export { OSDiskImage, OSDiskImageEncryption, OSProfile, - PatchSettings, Plan, PrivateEndpoint, PrivateEndpointConnection, @@ -131,6 +134,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -144,6 +150,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -186,11 +193,15 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, + VMGalleryApplication, WindowsConfiguration, + WindowsPatchSettings, WinRMConfiguration, WinRMListener } from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts b/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts index 1fb77b62ea0b..0929820a73a2 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. @@ -12,6 +12,7 @@ export { ApiEntityReference, ApiError, ApiErrorBase, + ApplicationProfile, AutomaticOSUpgradePolicy, AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, @@ -64,6 +65,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -76,6 +78,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -101,6 +104,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -109,7 +113,6 @@ export { OSDiskImage, OSDiskImageEncryption, OSProfile, - PatchSettings, Plan, PrivateEndpoint, PrivateEndpointConnection, @@ -130,6 +133,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -143,6 +149,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -185,11 +192,15 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, + VMGalleryApplication, WindowsConfiguration, + WindowsPatchSettings, WinRMConfiguration, WinRMListener } from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/disksMappers.ts b/sdk/compute/arm-compute/src/models/disksMappers.ts index f4b1367453d6..74b83de61d68 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. @@ -13,6 +13,7 @@ export { ApiEntityReference, ApiError, ApiErrorBase, + ApplicationProfile, AutomaticOSUpgradePolicy, AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, @@ -65,6 +66,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -77,6 +79,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -103,6 +106,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -111,7 +115,6 @@ export { OSDiskImage, OSDiskImageEncryption, OSProfile, - PatchSettings, Plan, PrivateEndpoint, PrivateEndpointConnection, @@ -131,6 +134,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -144,6 +150,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -186,11 +193,15 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, + VMGalleryApplication, WindowsConfiguration, + WindowsPatchSettings, WinRMConfiguration, WinRMListener } from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/galleriesMappers.ts b/sdk/compute/arm-compute/src/models/galleriesMappers.ts index e8848382bd37..7c4256cbd6ac 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. @@ -12,6 +12,7 @@ export { ApiEntityReference, ApiError, ApiErrorBase, + ApplicationProfile, AutomaticOSUpgradePolicy, AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, @@ -62,6 +63,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -74,6 +76,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -100,6 +103,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -108,7 +112,6 @@ export { OSDiskImage, OSDiskImageEncryption, OSProfile, - PatchSettings, Plan, PrivateEndpoint, PrivateEndpointConnection, @@ -128,6 +131,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -141,6 +147,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -183,11 +190,15 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, + VMGalleryApplication, WindowsConfiguration, + WindowsPatchSettings, WinRMConfiguration, WinRMListener } from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts b/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts index 08917ccbf34c..17df9a623a00 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. @@ -12,6 +12,7 @@ export { ApiEntityReference, ApiError, ApiErrorBase, + ApplicationProfile, AutomaticOSUpgradePolicy, AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, @@ -62,6 +63,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -75,6 +77,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -100,6 +103,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -108,7 +112,6 @@ export { OSDiskImage, OSDiskImageEncryption, OSProfile, - PatchSettings, Plan, PrivateEndpoint, PrivateEndpointConnection, @@ -128,6 +131,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -141,6 +147,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -183,11 +190,15 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, + VMGalleryApplication, WindowsConfiguration, + WindowsPatchSettings, WinRMConfiguration, WinRMListener } from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts b/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts index 23e299c473a6..aa16788d4d36 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. @@ -12,6 +12,7 @@ export { ApiEntityReference, ApiError, ApiErrorBase, + ApplicationProfile, AutomaticOSUpgradePolicy, AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, @@ -62,6 +63,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationList, @@ -75,6 +77,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -100,6 +103,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -108,7 +112,6 @@ export { OSDiskImage, OSDiskImageEncryption, OSProfile, - PatchSettings, Plan, PrivateEndpoint, PrivateEndpointConnection, @@ -128,6 +131,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -141,6 +147,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -183,11 +190,15 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, + VMGalleryApplication, WindowsConfiguration, + WindowsPatchSettings, WinRMConfiguration, WinRMListener } from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts b/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts index f793a9a603e8..aa1177718cdc 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. @@ -12,6 +12,7 @@ export { ApiEntityReference, ApiError, ApiErrorBase, + ApplicationProfile, AutomaticOSUpgradePolicy, AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, @@ -62,6 +63,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -74,6 +76,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -100,6 +103,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -108,7 +112,6 @@ export { OSDiskImage, OSDiskImageEncryption, OSProfile, - PatchSettings, Plan, PrivateEndpoint, PrivateEndpointConnection, @@ -128,6 +131,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -141,6 +147,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -183,11 +190,15 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, + VMGalleryApplication, WindowsConfiguration, + WindowsPatchSettings, WinRMConfiguration, WinRMListener } from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts b/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts index 578486eff4ca..3fe0f79ae577 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. @@ -12,6 +12,7 @@ export { ApiEntityReference, ApiError, ApiErrorBase, + ApplicationProfile, AutomaticOSUpgradePolicy, AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, @@ -62,6 +63,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -74,6 +76,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageList, GalleryImageUpdate, @@ -100,6 +103,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -108,7 +112,6 @@ export { OSDiskImage, OSDiskImageEncryption, OSProfile, - PatchSettings, Plan, PrivateEndpoint, PrivateEndpointConnection, @@ -128,6 +131,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -141,6 +147,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -183,11 +190,15 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, + VMGalleryApplication, WindowsConfiguration, + WindowsPatchSettings, WinRMConfiguration, WinRMListener } from "../models/mappers"; 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..59062572fb65 --- /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, + ApplicationProfile, + 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, + ExtendedLocation, + 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, + LinuxPatchSettings, + MaintenanceRedeployStatus, + ManagedDiskParameters, + NetworkInterfaceReference, + NetworkProfile, + OSDisk, + OSDiskImage, + OSDiskImageEncryption, + OSProfile, + Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, + ProximityPlacementGroup, + PurchasePlan, + RecommendedMachineConfiguration, + RegionalReplicationStatus, + ReplicationStatus, + Resource, + ResourceRange, + RollingUpgradePolicy, + RollingUpgradeProgressInfo, + RollingUpgradeRunningStatus, + RollingUpgradeStatusInfo, + ScaleInPolicy, + ScheduledEventsProfile, + SecurityProfile, + ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, + Sku, + Snapshot, + SnapshotSku, + SourceVault, + SshConfiguration, + SshPublicKey, + SshPublicKeyResource, + StorageProfile, + SubResource, + SubResourceReadOnly, + SubResourceWithColocationStatus, + TargetRegion, + TerminateNotificationProfile, + UefiSettings, + UpdateResourceDefinition, + UpgradePolicy, + UserArtifactSource, + VaultCertificate, + VaultSecretGroup, + VirtualHardDisk, + VirtualMachine, + VirtualMachineAgentInstanceView, + VirtualMachineCaptureResult, + VirtualMachineExtension, + VirtualMachineExtensionHandlerInstanceView, + VirtualMachineExtensionImage, + VirtualMachineExtensionInstanceView, + VirtualMachineHealthStatus, + VirtualMachineIdentity, + VirtualMachineIdentityUserAssignedIdentitiesValue, + VirtualMachineImage, + VirtualMachineImageResource, + VirtualMachineInstanceView, + VirtualMachinePatchStatus, + 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, + VMGalleryApplication, + WindowsConfiguration, + WindowsPatchSettings, + 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..16bb9abc0518 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. @@ -12,6 +12,7 @@ export { ApiEntityReference, ApiError, ApiErrorBase, + ApplicationProfile, AutomaticOSUpgradePolicy, AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, @@ -65,6 +66,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -77,6 +79,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -104,6 +107,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -112,7 +116,6 @@ export { OSDiskImage, OSDiskImageEncryption, OSProfile, - PatchSettings, Plan, PrivateEndpoint, PrivateEndpointConnection, @@ -133,6 +136,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -147,6 +153,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResource, UpdateResourceDefinition, UpgradePolicy, @@ -197,12 +204,16 @@ export { VirtualMachineScaleSetUpdateStorageProfile, VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, VirtualMachineUpdate, + VMGalleryApplication, WindowsConfiguration, + WindowsPatchSettings, WinRMConfiguration, WinRMListener } from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/index.ts b/sdk/compute/arm-compute/src/models/index.ts index cc59586f553f..e11a5487a418 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -369,7 +369,7 @@ export interface DedicatedHostGroup extends Resource { * Specifies whether virtual machines or virtual machine scale sets can be placed automatically * on the dedicated host group. Automatic placement means resources are allocated on dedicated * hosts, that are chosen by Azure, under the dedicated host group. The value is defaulted to - * 'true' when not provided.

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

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

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

Minimum api-version: 2020-06-01. */ supportAutomaticPlacement?: boolean; /** @@ -648,6 +648,16 @@ export interface VirtualMachineExtensionImage extends Resource { supportsMultipleExtensions?: boolean; } +/** + * ExtendedLocation complex type. + */ +export interface ExtendedLocation { + /** + * The name of the extended location. + */ + name: string; +} + /** * Virtual machine image resource information. */ @@ -666,6 +676,10 @@ export interface VirtualMachineImageResource extends SubResource { * resources](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md). */ tags?: { [propertyName: string]: string }; + /** + * The extended location of the Virtual Machine. + */ + extendedLocation?: ExtendedLocation; } /** @@ -746,6 +760,68 @@ export interface VirtualMachineExtension extends Resource { instanceView?: VirtualMachineExtensionInstanceView; } +/** + * Describes a VMSS VM Extension. + */ +export interface VirtualMachineScaleSetVMExtension extends SubResourceReadOnly { + /** + * The name of the extension. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * How the extension handler should be forced to update even if the extension configuration has + * not changed. + */ + forceUpdateTag?: string; + /** + * The name of the extension handler publisher. + */ + publisher?: string; + /** + * Specifies the type of the extension; an example is "CustomScriptExtension". + */ + type1?: string; + /** + * Specifies the version of the script handler. + */ + typeHandlerVersion?: string; + /** + * Indicates whether the extension should use a newer minor version if one is available at + * deployment time. Once deployed, however, the extension will not upgrade minor versions unless + * redeployed, even with this property set to true. + */ + autoUpgradeMinorVersion?: boolean; + /** + * Indicates whether the extension should be automatically upgraded by the platform if there is a + * newer version of the extension available. + */ + enableAutomaticUpgrade?: boolean; + /** + * Json formatted public settings for the extension. + */ + settings?: any; + /** + * The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no + * protected settings at all. + */ + protectedSettings?: any; + /** + * The provisioning state, which only appears in the response. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * The virtual machine extension instance view. + */ + instanceView?: VirtualMachineExtensionInstanceView; +} + /** * Describes a Virtual Machine Extension. */ @@ -789,6 +865,59 @@ export interface VirtualMachineExtensionUpdate extends UpdateResource { protectedSettings?: any; } +/** + * Describes a VMSS VM Extension. + */ +export interface VirtualMachineScaleSetVMExtensionUpdate extends SubResourceReadOnly { + /** + * The name of the extension. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * How the extension handler should be forced to update even if the extension configuration has + * not changed. + */ + forceUpdateTag?: string; + /** + * The name of the extension handler publisher. + */ + publisher?: string; + /** + * Specifies the type of the extension; an example is "CustomScriptExtension". + */ + type1?: string; + /** + * Specifies the version of the script handler. + */ + typeHandlerVersion?: string; + /** + * Indicates whether the extension should use a newer minor version if one is available at + * deployment time. Once deployed, however, the extension will not upgrade minor versions unless + * redeployed, even with this property set to true. + */ + autoUpgradeMinorVersion?: boolean; + /** + * Indicates whether the extension should be automatically upgraded by the platform if there is a + * newer version of the extension available. + */ + enableAutomaticUpgrade?: boolean; + /** + * Json formatted public settings for the extension. + */ + settings?: any; + /** + * The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no + * protected settings at all. + */ + protectedSettings?: any; +} + /** * The List Extension operation response */ @@ -799,6 +928,16 @@ export interface VirtualMachineExtensionsListResult { value?: VirtualMachineExtension[]; } +/** + * The List VMSS VM Extension operation response + */ +export interface VirtualMachineScaleSetVMExtensionsListResult { + /** + * The list of VMSS VM extensions + */ + value?: VirtualMachineScaleSetVMExtension[]; +} + /** * Describes the properties of a Virtual Machine software patch. */ @@ -822,18 +961,18 @@ export interface VirtualMachineSoftwarePatchProperties { * The KBID of the patch. Only applies to Windows patches. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly kbid?: string; + readonly kbId?: string; /** * The classification(s) of the patch as provided by the patch publisher. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly classifications?: string[]; /** - * Describes the reboot requirements of the patch. Possible values include: 'NeverReboots', - * 'AlwaysRequiresReboot', 'CanRequestReboot' + * Describes the reboot requirements of the patch. Possible values include: 'Unknown', + * 'NeverReboots', 'AlwaysRequiresReboot', 'CanRequestReboot' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly rebootBehavior?: SoftwareUpdateRebootBehavior; + readonly rebootBehavior?: VMGuestPatchRebootBehavior; /** * The activity ID of the operation that produced this result. It is used to correlate across CRP * and extension logs. @@ -851,8 +990,7 @@ export interface VirtualMachineSoftwarePatchProperties { */ readonly lastModifiedDateTime?: Date; /** - * Describes the outcome of an install operation for a given patch. Possible values include: - * 'Installed', 'Failed', 'Excluded', 'NotSelected', 'Pending', 'Available' + * Describes the availability of a given patch. Possible values include: 'Unknown', 'Available' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly assessmentState?: PatchAssessmentState; @@ -922,9 +1060,9 @@ export interface ApiError { export interface VirtualMachineAssessPatchesResult { /** * The overall success or failure status of the operation. It remains "InProgress" until the - * operation completes. At that point it will become "Failed", "Succeeded", or - * "CompletedWithWarnings.". Possible values include: 'InProgress', 'Failed', 'Succeeded', - * 'CompletedWithWarnings' + * operation completes. At that point it will become "Unknown", "Failed", "Succeeded", or + * "CompletedWithWarnings.". Possible values include: 'Unknown', 'InProgress', 'Failed', + * 'Succeeded', 'CompletedWithWarnings' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly status?: PatchOperationStatus; @@ -960,7 +1098,193 @@ export interface VirtualMachineAssessPatchesResult { * The list of patches that have been detected as available for installation. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly patches?: VirtualMachineSoftwarePatchProperties[]; + readonly availablePatches?: VirtualMachineSoftwarePatchProperties[]; + /** + * The errors that were encountered during execution of the operation. The details array contains + * the list of them. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly error?: ApiError; +} + +/** + * Input for InstallPatches on a Windows VM, as directly received by the API + */ +export interface WindowsParameters { + /** + * The update classifications to select when installing patches for Windows. + */ + classificationsToInclude?: VMGuestPatchClassificationWindows[]; + /** + * Kbs to include in the patch operation + */ + kbNumbersToInclude?: string[]; + /** + * Kbs to exclude in the patch operation + */ + kbNumbersToExclude?: string[]; + /** + * Filters out Kbs that don't have an InstallationRebootBehavior of 'NeverReboots' when this is + * set to true. + */ + excludeKbsRequiringReboot?: boolean; + /** + * This is used to install patches that were published on or before this given max published + * date. + */ + maxPatchPublishDate?: Date; +} + +/** + * Input for InstallPatches on a Linux VM, as directly received by the API + */ +export interface LinuxParameters { + /** + * The update classifications to select when installing patches for Linux. + */ + classificationsToInclude?: VMGuestPatchClassificationLinux[]; + /** + * packages to include in the patch operation. Format: packageName_packageVersion + */ + packageNameMasksToInclude?: string[]; + /** + * packages to exclude in the patch operation. Format: packageName_packageVersion + */ + packageNameMasksToExclude?: string[]; + /** + * This is used as a maintenance run identifier for Auto VM Guest Patching in Linux. + */ + maintenanceRunId?: string; +} + +/** + * Input for InstallPatches as directly received by the API + */ +export interface VirtualMachineInstallPatchesParameters { + /** + * Specifies the maximum amount of time that the operation will run. It must be an ISO + * 8601-compliant duration string such as PT4H (4 hours) + */ + maximumDuration: string; + /** + * Defines when it is acceptable to reboot a VM during a software update operation. Possible + * values include: 'Unknown', 'IfRequired', 'Never', 'Always' + */ + rebootSetting: VMGuestPatchRebootSetting; + /** + * Input for InstallPatches on a Windows VM, as directly received by the API + */ + windowsParameters?: WindowsParameters; + /** + * Input for InstallPatches on a Linux VM, as directly received by the API + */ + linuxParameters?: LinuxParameters; +} + +/** + * Information about a specific patch that was encountered during an installation action. + */ +export interface PatchInstallationDetail { + /** + * A unique identifier for the patch. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly patchId?: string; + /** + * The friendly name of the patch. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The version string of the package. It may conform to Semantic Versioning. Only applies to + * Linux. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly version?: string; + /** + * The KBID of the patch. Only applies to Windows patches. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly kbId?: string; + /** + * The classification(s) of the patch as provided by the patch publisher. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly classifications?: string[]; + /** + * The state of the patch after the installation operation completed. Possible values include: + * 'Unknown', 'Installed', 'Failed', 'Excluded', 'NotSelected', 'Pending' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly installationState?: PatchInstallationState; +} + +/** + * The result summary of an installation operation. + */ +export interface VirtualMachineInstallPatchesResult { + /** + * The overall success or failure status of the operation. It remains "InProgress" until the + * operation completes. At that point it will become "Failed", "Succeeded", "Unknown" or + * "CompletedWithWarnings.". Possible values include: 'Unknown', 'InProgress', 'Failed', + * 'Succeeded', 'CompletedWithWarnings' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: PatchOperationStatus; + /** + * The activity ID of the operation that produced this result. It is used to correlate across CRP + * and extension logs. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly installationActivityId?: string; + /** + * The reboot state of the VM following completion of the operation. Possible values include: + * 'NotNeeded', 'Required', 'Started', 'Failed', 'Completed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly rebootStatus?: VMGuestPatchRebootStatus; + /** + * Whether the operation ran out of time before it completed all its intended actions. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly maintenanceWindowExceeded?: boolean; + /** + * The number of patches that were not installed due to the user blocking their installation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly excludedPatchCount?: number; + /** + * The number of patches that were detected as available for install, but did not meet the + * operation's criteria. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly notSelectedPatchCount?: number; + /** + * The number of patches that were identified as meeting the installation criteria, but were not + * able to be installed. Typically this happens when maintenanceWindowExceeded == true. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly pendingPatchCount?: number; + /** + * The number of patches successfully installed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly installedPatchCount?: number; + /** + * The number of patches that could not be installed due to some issue. See errors for details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly failedPatchCount?: number; + /** + * The patches that were installed during the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly patches?: PatchInstallationDetail[]; + /** + * The UTC timestamp when the operation began. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly startDateTime?: Date; /** * The errors that were encountered during execution of the operation. The details array contains * the list of them. @@ -1469,6 +1793,18 @@ export interface DataDisk { * VirtualMachine/VirtualMachineScaleset */ toBeDetached?: boolean; + /** + * Specifies the detach behavior to be used while detaching a disk or which is already in the + * process of detachment from the virtual machine. Supported values: **ForceDetach**.

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

This feature is still in preview mode and is not + * supported for VirtualMachineScaleSet. To force-detach a data disk update toBeDetached to + * 'true' along with setting detachOption: 'ForceDetach'. Possible values include: 'ForceDetach' + */ + detachOption?: DiskDetachOptionTypes; /** * Specifies the Read-Write IOPS for the managed disk when StorageAccountType is UltraSSD_LRS. * Returned only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the @@ -1511,16 +1847,84 @@ export interface StorageProfile { } /** - * Specifies the Security profile settings for the virtual machine or virtual machine scale set. + * Specifies the required information to reference a compute gallery application version */ -export interface SecurityProfile { +export interface VMGalleryApplication { /** - * This property can be used by user in the request to enable or disable the Host Encryption for - * the virtual machine or virtual machine scale set. This will enable the encryption for all the + * Optional, Specifies a passthrough value for more generic context. + */ + tags?: string; + /** + * Optional, Specifies the order in which the packages have to be installed, has no effect if + * manuallyManaged is set to true + */ + order?: number; + /** + * Specifies whether the gallery application would be manually managed. If set to true, the + * VMApplicationExtension would not manage the gallery application. Default value: false. + */ + manuallyManaged?: boolean; + /** + * Specifies the GalleryApplicationVersion reference in URL form. e.g. + * /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{application}/versions/{version} + */ + packageReferenceId: string; + /** + * Optional, Specifies the uri to an azure blob that will replace the default configuration for + * the package if provided + */ + configurationReference?: string; +} + +/** + * Contains the list of gallery applications that should be made available to the VM/VMSS + */ +export interface ApplicationProfile { + /** + * Specifies the gallery applications that should be made available to the VM/VMSS + */ + galleryApplications?: VMGalleryApplication[]; +} + +/** + * Specifies the security settings like secure boot and vTPM used while creating the virtual + * machine.

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

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

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

Minimum api-version: 2020-12-01 + */ + uefiSettings?: UefiSettings; + /** + * This property can be used by user in the request to enable or disable the Host Encryption for + * the virtual machine or virtual machine scale set. This will enable the encryption for all the * disks including Resource/Temp disk at host itself.

Default: The Encryption at host * will be disabled unless this property is set to true for the resource. */ encryptionAtHost?: boolean; + /** + * Specifies the SecurityType of the virtual machine. It is set as SecureBoot to enable + * UefiSettings.

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

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

Possible values * are:

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

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

Possible values + * are:

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

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

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

Minimum api-version: 2018-04-01. */ proximityPlacementGroup?: SubResource; + /** + * Specifies the scale set logical fault domain into which the Virtual Machine will be created. + * By default, the Virtual Machine will by automatically assigned to a fault domain that best + * maintains balance across available fault domains.
  • This is applicable only if the + * 'virtualMachineScaleSet' property of this Virtual Machine is set.
  • The Virtual Machine Scale + * Set that is referenced, must have 'platformFaultDomainCount' > 1.
  • This property cannot + * be updated once the Virtual Machine is created.
  • Fault domain assignment can be viewed in + * the Virtual Machine Instance View.

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

    Minimum api-version: 2019-03-01. * Possible values include: 'Regular', 'Low', 'Spot' @@ -2465,6 +2897,10 @@ export interface VirtualMachine extends Resource { * The virtual machine zones. */ zones?: string[]; + /** + * The extended location of the Virtual Machine. + */ + extendedLocation?: ExtendedLocation; } /** @@ -2483,6 +2919,10 @@ export interface VirtualMachineUpdate extends UpdateResource { * Specifies the hardware settings for the virtual machine. */ hardwareProfile?: HardwareProfile; + /** + * Specifies the gallery applications that should be made available to the VM/VMSS + */ + applicationProfile?: ApplicationProfile; /** * Specifies the storage settings for the virtual machine disks. */ @@ -2537,6 +2977,16 @@ export interface VirtualMachineUpdate extends UpdateResource { * assigned to.

    Minimum api-version: 2018-04-01. */ proximityPlacementGroup?: SubResource; + /** + * Specifies the scale set logical fault domain into which the Virtual Machine will be created. + * By default, the Virtual Machine will by automatically assigned to a fault domain that best + * maintains balance across available fault domains.
  • This is applicable only if the + * 'virtualMachineScaleSet' property of this Virtual Machine is set.
  • The Virtual Machine Scale + * Set that is referenced, must have 'platformFaultDomainCount' > 1.
  • This property cannot + * be updated once the Virtual Machine is created.
  • Fault domain assignment can be viewed in + * the Virtual Machine Instance View.

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

    Minimum api-version: 2019-03-01. * Possible values include: 'Regular', 'Low', 'Spot' @@ -2657,6 +3107,15 @@ export interface RollingUpgradePolicy { * 0 seconds (PT0S). */ pauseTimeBetweenBatches?: string; + /** + * Allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration + * the Update Domain and maxBatchInstancePercent to determine the batch size. + */ + enableCrossZoneUpgrade?: boolean; + /** + * Upgrade all unhealthy instances in a scale set before any healthy instances. + */ + prioritizeUnhealthyInstances?: boolean; } /** @@ -2816,6 +3275,10 @@ export interface Image extends Resource { * include: 'V1', 'V2' */ hyperVGeneration?: HyperVGenerationTypes; + /** + * The extended location of the Image. + */ + extendedLocation?: ExtendedLocation; } /** @@ -3650,6 +4113,10 @@ export interface VirtualMachineScaleSetVMProfile { * Specifies the operating system settings for the virtual machines in the scale set. */ osProfile?: VirtualMachineScaleSetOSProfile; + /** + * Specifies the gallery applications that should be made available to the VM/VMSS + */ + applicationProfile?: ApplicationProfile; /** * Specifies the storage settings for the virtual machine disks. */ @@ -3713,6 +4180,10 @@ export interface VirtualMachineScaleSetUpdateVMProfile { * The virtual machine scale set OS profile. */ osProfile?: VirtualMachineScaleSetUpdateOSProfile; + /** + * Specifies the gallery applications that should be made available to the VM/VMSS + */ + applicationProfile?: ApplicationProfile; /** * The virtual machine scale set storage profile. */ @@ -3841,6 +4312,10 @@ export interface VirtualMachineScaleSet extends Resource { * the scale set */ zones?: string[]; + /** + * The extended location of the Virtual Machine Scale Set. + */ + extendedLocation?: ExtendedLocation; } /** @@ -4324,6 +4799,10 @@ export interface VirtualMachineScaleSetVM extends Resource { * Specifies the hardware settings for the virtual machine. */ hardwareProfile?: HardwareProfile; + /** + * Specifies the gallery applications that should be made available to the VM/VMSS + */ + applicationProfile?: ApplicationProfile; /** * Specifies the storage settings for the virtual machine disks. */ @@ -5663,6 +6142,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 +6191,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 +6235,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; } /** @@ -5825,12 +6339,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,7 +6356,7 @@ 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; @@ -5862,7 +6376,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 +6399,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 +6452,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 +6517,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 +6535,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 +6571,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 +6584,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 +6593,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 +6629,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 +6642,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 +6651,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 +6661,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 +6719,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 +6738,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 +6834,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 +7153,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 +7239,34 @@ export interface VirtualMachineImagesListOptionalParams extends msRest.RequestOp orderby?: string; } +/** + * Optional Parameters. + */ +export interface VirtualMachineImagesEdgeZoneListOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. + */ + expand?: string; + /** + * An integer value specifying the number of images to return that matches supplied values. + */ + top?: number; + /** + * Specifies the order of the results returned. Formatted as an OData query. + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachinesDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to force delete virtual machines.(Feature in Preview) + */ + forceDeletion?: boolean; +} + /** * Optional Parameters. */ @@ -6644,6 +7321,26 @@ export interface VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams extend sasUriExpirationTimeInMinutes?: number; } +/** + * Optional Parameters. + */ +export interface VirtualMachinesInstallPatchesOptionalParams extends msRest.RequestOptionsBase { + /** + * Input for InstallPatches as directly received by the API + */ + installPatchesInput?: VirtualMachineInstallPatchesParameters; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachinesBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to force delete virtual machines.(Feature in Preview) + */ + forceDeletion?: boolean; +} + /** * Optional Parameters. */ @@ -6666,6 +7363,26 @@ export interface VirtualMachinesBeginReimageOptionalParams extends msRest.Reques parameters?: VirtualMachineReimageParameters; } +/** + * Optional Parameters. + */ +export interface VirtualMachinesBeginInstallPatchesOptionalParams extends msRest.RequestOptionsBase { + /** + * Input for InstallPatches as directly received by the API + */ + installPatchesInput?: VirtualMachineInstallPatchesParameters; +} + +/** + * 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. */ @@ -6676,6 +7393,16 @@ export interface ImagesGetOptionalParams extends msRest.RequestOptionsBase { expand?: string; } +/** + * Optional Parameters. + */ +export interface VirtualMachineScaleSetsDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to force delete a VM scale set. (Feature in Preview) + */ + forceDeletion?: boolean; +} + /** * Optional Parameters. */ @@ -6686,6 +7413,17 @@ export interface VirtualMachineScaleSetsDeallocateOptionalParams extends msRest. vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } +/** + * Optional Parameters. + */ +export interface VirtualMachineScaleSetsDeleteInstancesOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to force delete virtual machines from the VM scale set. (Feature in + * Preview) + */ + forceDeletion?: boolean; +} + /** * Optional Parameters. */ @@ -6762,6 +7500,16 @@ export interface VirtualMachineScaleSetsReimageAllOptionalParams extends msRest. vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } +/** + * Optional Parameters. + */ +export interface VirtualMachineScaleSetsBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to force delete a VM scale set. (Feature in Preview) + */ + forceDeletion?: boolean; +} + /** * Optional Parameters. */ @@ -6772,6 +7520,17 @@ export interface VirtualMachineScaleSetsBeginDeallocateOptionalParams extends ms vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } +/** + * Optional Parameters. + */ +export interface VirtualMachineScaleSetsBeginDeleteInstancesOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to force delete virtual machines from the VM scale set. (Feature in + * Preview) + */ + forceDeletion?: boolean; +} + /** * Optional Parameters. */ @@ -6875,123 +7634,249 @@ export interface VirtualMachineScaleSetVMExtensionsListOptionalParams extends ms /** * The expand expression to apply on the operation. */ - expand?: string; + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachineScaleSetVMsReimageOptionalParams extends msRest.RequestOptionsBase { + /** + * Parameters for the Reimaging Virtual machine in ScaleSet. + */ + vmScaleSetVMReimageInput?: VirtualMachineScaleSetVMReimageParameters; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachineScaleSetVMsDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to force delete a virtual machine from a VM scale set. (Feature in Preview) + */ + forceDeletion?: boolean; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachineScaleSetVMsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. Possible values include: 'instanceView' + */ + expand?: InstanceViewTypes; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachineScaleSetVMsListOptionalParams 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 VirtualMachineScaleSetVMsPowerOffOptionalParams extends msRest.RequestOptionsBase { + /** + * The parameter to request non-graceful VM shutdown. True value for this flag indicates + * non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false + * if not specified. Default value: false. + */ + skipShutdown?: boolean; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams extends msRest.RequestOptionsBase { + /** + * Expiration duration in minutes for the SAS URIs with a value between 1 to 1440 minutes. + *

    NOTE: If not specified, SAS URIs will be generated with a default expiration duration + * of 120 minutes. + */ + sasUriExpirationTimeInMinutes?: number; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachineScaleSetVMsBeginReimageOptionalParams extends msRest.RequestOptionsBase { + /** + * Parameters for the Reimaging Virtual machine in ScaleSet. + */ + vmScaleSetVMReimageInput?: VirtualMachineScaleSetVMReimageParameters; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachineScaleSetVMsBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to force delete a virtual machine from a VM scale set. (Feature in Preview) + */ + forceDeletion?: boolean; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachineScaleSetVMsBeginPowerOffOptionalParams extends msRest.RequestOptionsBase { + /** + * The parameter to request non-graceful VM shutdown. True value for this flag indicates + * non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false + * if not specified. Default value: false. + */ + 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 ResourceSkusListOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply on the operation. Only **location** filter is supported currently. + */ + filter?: string; } /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMsReimageOptionalParams extends msRest.RequestOptionsBase { +export interface ResourceSkusListNextOptionalParams extends msRest.RequestOptionsBase { /** - * Parameters for the Reimaging Virtual machine in ScaleSet. + * The filter to apply on the operation. Only **location** filter is supported currently. */ - vmScaleSetVMReimageInput?: VirtualMachineScaleSetVMReimageParameters; + filter?: string; } /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMsGetOptionalParams extends msRest.RequestOptionsBase { +export interface GalleriesGetOptionalParams extends msRest.RequestOptionsBase { /** - * The expand expression to apply on the operation. Possible values include: 'instanceView' + * The select expression to apply on the operation. Possible values include: 'Permissions' */ - expand?: InstanceViewTypes; + select?: SelectPermissions; } /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMsListOptionalParams 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; +export interface GalleryImageVersionsGetOptionalParams extends msRest.RequestOptionsBase { /** - * The expand expression to apply to the operation. Allowed values are 'instanceView'. + * The expand expression to apply on the operation. Possible values include: 'ReplicationStatus' */ - expand?: string; + expand?: ReplicationStatusTypes; } /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMsPowerOffOptionalParams extends msRest.RequestOptionsBase { +export interface GalleryApplicationVersionsGetOptionalParams extends msRest.RequestOptionsBase { /** - * The parameter to request non-graceful VM shutdown. True value for this flag indicates - * non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false - * if not specified. Default value: false. + * The expand expression to apply on the operation. Possible values include: 'ReplicationStatus' */ - skipShutdown?: boolean; + expand?: ReplicationStatusTypes; } /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams extends msRest.RequestOptionsBase { +export interface SharedGalleriesListOptionalParams extends msRest.RequestOptionsBase { /** - * Expiration duration in minutes for the SAS URIs with a value between 1 to 1440 minutes. - *

    NOTE: If not specified, SAS URIs will be generated with a default expiration duration - * of 120 minutes. + * The query parameter to decide what shared galleries to fetch when doing listing operations. + * Possible values include: 'tenant' */ - sasUriExpirationTimeInMinutes?: number; + sharedTo?: SharedToValues; } /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMsBeginReimageOptionalParams extends msRest.RequestOptionsBase { +export interface SharedGalleriesListNextOptionalParams extends msRest.RequestOptionsBase { /** - * Parameters for the Reimaging Virtual machine in ScaleSet. + * The query parameter to decide what shared galleries to fetch when doing listing operations. + * Possible values include: 'tenant' */ - vmScaleSetVMReimageInput?: VirtualMachineScaleSetVMReimageParameters; + sharedTo?: SharedToValues; } /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMsBeginPowerOffOptionalParams extends msRest.RequestOptionsBase { +export interface SharedGalleryImagesListOptionalParams extends msRest.RequestOptionsBase { /** - * The parameter to request non-graceful VM shutdown. True value for this flag indicates - * non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false - * if not specified. Default value: false. + * The query parameter to decide what shared galleries to fetch when doing listing operations. + * Possible values include: 'tenant' */ - skipShutdown?: boolean; + sharedTo?: SharedToValues; } /** * Optional Parameters. */ -export interface ResourceSkusListOptionalParams extends msRest.RequestOptionsBase { +export interface SharedGalleryImagesListNextOptionalParams extends msRest.RequestOptionsBase { /** - * The filter to apply on the operation. Only **location** filter is supported currently. + * The query parameter to decide what shared galleries to fetch when doing listing operations. + * Possible values include: 'tenant' */ - filter?: string; + sharedTo?: SharedToValues; } /** * Optional Parameters. */ -export interface GalleryImageVersionsGetOptionalParams extends msRest.RequestOptionsBase { +export interface SharedGalleryImageVersionsListOptionalParams extends msRest.RequestOptionsBase { /** - * The expand expression to apply on the operation. Possible values include: 'ReplicationStatus' + * The query parameter to decide what shared galleries to fetch when doing listing operations. + * Possible values include: 'tenant' */ - expand?: ReplicationStatusTypes; + sharedTo?: SharedToValues; } /** * Optional Parameters. */ -export interface GalleryApplicationVersionsGetOptionalParams extends msRest.RequestOptionsBase { +export interface SharedGalleryImageVersionsListNextOptionalParams extends msRest.RequestOptionsBase { /** - * The expand expression to apply on the operation. Possible values include: 'ReplicationStatus' + * The query parameter to decide what shared galleries to fetch when doing listing operations. + * Possible values include: 'tenant' */ - expand?: ReplicationStatusTypes; + sharedTo?: SharedToValues; } /** @@ -7310,7 +8195,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 +8207,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; } @@ -7354,6 +8239,45 @@ export interface GalleryApplicationVersionList extends Array + */ +export interface SharedGalleryList extends Array { + /** + * 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. @@ -7415,29 +8339,69 @@ export type ProximityPlacementGroupType = 'Standard' | 'Ultra'; export type DedicatedHostLicenseTypes = 'None' | 'Windows_Server_Hybrid' | 'Windows_Server_Perpetual'; /** - * Defines values for SoftwareUpdateRebootBehavior. - * Possible values include: 'NeverReboots', 'AlwaysRequiresReboot', 'CanRequestReboot' + * Defines values for VMGuestPatchRebootBehavior. + * Possible values include: 'Unknown', 'NeverReboots', 'AlwaysRequiresReboot', 'CanRequestReboot' * @readonly * @enum {string} */ -export type SoftwareUpdateRebootBehavior = 'NeverReboots' | 'AlwaysRequiresReboot' | 'CanRequestReboot'; +export type VMGuestPatchRebootBehavior = 'Unknown' | 'NeverReboots' | 'AlwaysRequiresReboot' | 'CanRequestReboot'; /** * Defines values for PatchAssessmentState. - * Possible values include: 'Installed', 'Failed', 'Excluded', 'NotSelected', 'Pending', - * 'Available' + * Possible values include: 'Unknown', 'Available' * @readonly * @enum {string} */ -export type PatchAssessmentState = 'Installed' | 'Failed' | 'Excluded' | 'NotSelected' | 'Pending' | 'Available'; +export type PatchAssessmentState = 'Unknown' | 'Available'; /** * Defines values for PatchOperationStatus. - * Possible values include: 'InProgress', 'Failed', 'Succeeded', 'CompletedWithWarnings' + * Possible values include: 'Unknown', 'InProgress', 'Failed', 'Succeeded', 'CompletedWithWarnings' + * @readonly + * @enum {string} + */ +export type PatchOperationStatus = 'Unknown' | 'InProgress' | 'Failed' | 'Succeeded' | 'CompletedWithWarnings'; + +/** + * Defines values for VMGuestPatchRebootSetting. + * Possible values include: 'Unknown', 'IfRequired', 'Never', 'Always' + * @readonly + * @enum {string} + */ +export type VMGuestPatchRebootSetting = 'Unknown' | 'IfRequired' | 'Never' | 'Always'; + +/** + * Defines values for VMGuestPatchClassificationWindows. + * Possible values include: 'Unknown', 'Critical', 'Security', 'UpdateRollUp', 'FeaturePack', + * 'ServicePack', 'Definition', 'Tools', 'Updates' + * @readonly + * @enum {string} + */ +export type VMGuestPatchClassificationWindows = 'Unknown' | 'Critical' | 'Security' | 'UpdateRollUp' | 'FeaturePack' | 'ServicePack' | 'Definition' | 'Tools' | 'Updates'; + +/** + * Defines values for VMGuestPatchClassificationLinux. + * Possible values include: 'Unknown', 'Critical', 'Security', 'Other' + * @readonly + * @enum {string} + */ +export type VMGuestPatchClassificationLinux = 'Unknown' | 'Critical' | 'Security' | 'Other'; + +/** + * Defines values for VMGuestPatchRebootStatus. + * Possible values include: 'NotNeeded', 'Required', 'Started', 'Failed', 'Completed' + * @readonly + * @enum {string} + */ +export type VMGuestPatchRebootStatus = 'NotNeeded' | 'Required' | 'Started' | 'Failed' | 'Completed'; + +/** + * Defines values for PatchInstallationState. + * Possible values include: 'Unknown', 'Installed', 'Failed', 'Excluded', 'NotSelected', 'Pending' * @readonly * @enum {string} */ -export type PatchOperationStatus = 'InProgress' | 'Failed' | 'Succeeded' | 'CompletedWithWarnings'; +export type PatchInstallationState = 'Unknown' | 'Installed' | 'Failed' | 'Excluded' | 'NotSelected' | 'Pending'; /** * Defines values for OperatingSystemTypes. @@ -7504,6 +8468,14 @@ export type CachingTypes = 'None' | 'ReadOnly' | 'ReadWrite'; */ export type DiskCreateOptionTypes = 'FromImage' | 'Empty' | 'Attach'; +/** + * Defines values for DiskDetachOptionTypes. + * Possible values include: 'ForceDetach' + * @readonly + * @enum {string} + */ +export type DiskDetachOptionTypes = 'ForceDetach'; + /** * Defines values for StorageAccountTypes. * Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS' @@ -7528,6 +8500,14 @@ export type DiffDiskOptions = 'Local'; */ export type DiffDiskPlacement = 'CacheDisk' | 'ResourceDisk'; +/** + * Defines values for SecurityTypes. + * Possible values include: 'SecureBoot' + * @readonly + * @enum {string} + */ +export type SecurityTypes = 'SecureBoot'; + /** * Defines values for PassNames. * Possible values include: 'OobeSystem' @@ -7561,12 +8541,20 @@ export type SettingNames = 'AutoLogon' | 'FirstLogonCommands'; export type ProtocolTypes = 'Http' | 'Https'; /** - * Defines values for InGuestPatchMode. + * Defines values for WindowsVMGuestPatchMode. * Possible values include: 'Manual', 'AutomaticByOS', 'AutomaticByPlatform' * @readonly * @enum {string} */ -export type InGuestPatchMode = 'Manual' | 'AutomaticByOS' | 'AutomaticByPlatform'; +export type WindowsVMGuestPatchMode = 'Manual' | 'AutomaticByOS' | 'AutomaticByPlatform'; + +/** + * Defines values for LinuxVMGuestPatchMode. + * Possible values include: 'ImageDefault', 'AutomaticByPlatform' + * @readonly + * @enum {string} + */ +export type LinuxVMGuestPatchMode = 'ImageDefault' | 'AutomaticByPlatform'; /** * Defines values for VirtualMachinePriorityTypes. @@ -7609,14 +8597,6 @@ export type MaintenanceOperationResultCodeTypes = 'None' | 'RetryLater' | 'Maint */ export type HyperVGenerationType = 'V1' | 'V2'; -/** - * Defines values for RebootStatus. - * Possible values include: 'NotNeeded', 'Required', 'Started', 'Failed', 'Completed' - * @readonly - * @enum {string} - */ -export type RebootStatus = 'NotNeeded' | 'Required' | 'Started' | 'Failed' | 'Completed'; - /** * Defines values for UpgradeMode. * Possible values include: 'Automatic', 'Manual', 'Rolling' @@ -7705,6 +8685,14 @@ export type RollingUpgradeStatusCode = 'RollingForward' | 'Cancelled' | 'Complet */ export type RollingUpgradeActionType = 'Start' | 'Cancel'; +/** + * Defines values for ExtendedLocationTypes. + * Possible values include: 'EdgeZone' + * @readonly + * @enum {string} + */ +export type ExtendedLocationTypes = 'EdgeZone'; + /** * Defines values for IntervalInMins. * Possible values include: 'ThreeMins', 'FiveMins', 'ThirtyMins', 'SixtyMins' @@ -7844,6 +8832,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 +8880,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 +8920,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 +8936,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' @@ -8849,9 +9877,109 @@ export type VirtualMachineExtensionsListResponse = VirtualMachineExtensionsListR }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the beginCreateOrUpdate operation. + */ +export type VirtualMachineExtensionsBeginCreateOrUpdateResponse = VirtualMachineExtension & { + /** + * 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: VirtualMachineExtension; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type VirtualMachineExtensionsBeginUpdateResponse = VirtualMachineExtension & { + /** + * 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: VirtualMachineExtension; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type VirtualMachineImagesGetResponse = VirtualMachineImage & { + /** + * 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: VirtualMachineImage; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type VirtualMachineImagesListResponse = Array & { + /** + * 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: VirtualMachineImageResource[]; + }; +}; + +/** + * Contains response data for the listOffers operation. + */ +export type VirtualMachineImagesListOffersResponse = Array & { + /** + * 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: VirtualMachineImageResource[]; + }; +}; + +/** + * Contains response data for the listPublishers operation. */ -export type VirtualMachineExtensionsBeginCreateOrUpdateResponse = VirtualMachineExtension & { +export type VirtualMachineImagesListPublishersResponse = Array & { /** * The underlying HTTP response. */ @@ -8864,14 +9992,14 @@ export type VirtualMachineExtensionsBeginCreateOrUpdateResponse = VirtualMachine /** * The response body as parsed JSON or XML */ - parsedBody: VirtualMachineExtension; + parsedBody: VirtualMachineImageResource[]; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the listSkus operation. */ -export type VirtualMachineExtensionsBeginUpdateResponse = VirtualMachineExtension & { +export type VirtualMachineImagesListSkusResponse = Array & { /** * The underlying HTTP response. */ @@ -8884,14 +10012,14 @@ export type VirtualMachineExtensionsBeginUpdateResponse = VirtualMachineExtensio /** * The response body as parsed JSON or XML */ - parsedBody: VirtualMachineExtension; + parsedBody: VirtualMachineImageResource[]; }; }; /** * Contains response data for the get operation. */ -export type VirtualMachineImagesGetResponse = VirtualMachineImage & { +export type VirtualMachineImagesEdgeZoneGetResponse = VirtualMachineImage & { /** * The underlying HTTP response. */ @@ -8911,7 +10039,7 @@ export type VirtualMachineImagesGetResponse = VirtualMachineImage & { /** * Contains response data for the list operation. */ -export type VirtualMachineImagesListResponse = Array & { +export type VirtualMachineImagesEdgeZoneListResponse = Array & { /** * The underlying HTTP response. */ @@ -8931,7 +10059,7 @@ export type VirtualMachineImagesListResponse = Array & { +export type VirtualMachineImagesEdgeZoneListOffersResponse = Array & { /** * The underlying HTTP response. */ @@ -8951,7 +10079,7 @@ export type VirtualMachineImagesListOffersResponse = Array & { +export type VirtualMachineImagesEdgeZoneListPublishersResponse = Array & { /** * The underlying HTTP response. */ @@ -8971,7 +10099,7 @@ export type VirtualMachineImagesListPublishersResponse = Array & { +export type VirtualMachineImagesEdgeZoneListSkusResponse = Array & { /** * The underlying HTTP response. */ @@ -9248,6 +10376,26 @@ export type VirtualMachinesAssessPatchesResponse = VirtualMachineAssessPatchesRe }; }; +/** + * Contains response data for the installPatches operation. + */ +export type VirtualMachinesInstallPatchesResponse = VirtualMachineInstallPatchesResult & { + /** + * 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: VirtualMachineInstallPatchesResult; + }; +}; + /** * Contains response data for the runCommand operation. */ @@ -9348,6 +10496,26 @@ export type VirtualMachinesBeginAssessPatchesResponse = VirtualMachineAssessPatc }; }; +/** + * Contains response data for the beginInstallPatches operation. + */ +export type VirtualMachinesBeginInstallPatchesResponse = VirtualMachineInstallPatchesResult & { + /** + * 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: VirtualMachineInstallPatchesResult; + }; +}; + /** * Contains response data for the beginRunCommand operation. */ @@ -10091,7 +11259,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 +11272,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 +11292,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 +11312,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 +11332,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 +11352,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 +11372,7 @@ export type VirtualMachineScaleSetVMExtensionsBeginUpdateResponse = VirtualMachi /** * The response body as parsed JSON or XML */ - parsedBody: VirtualMachineExtension; + parsedBody: VirtualMachineScaleSetVMExtension; }; }; @@ -12168,6 +13336,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..d0c3762ae851 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. @@ -1055,6 +1055,32 @@ export const VirtualMachineExtensionImage: msRest.CompositeMapper = { } }; +export const ExtendedLocation: msRest.CompositeMapper = { + serializedName: "ExtendedLocation", + type: { + name: "Composite", + className: "ExtendedLocation", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + required: true, + isConstant: true, + serializedName: "type", + defaultValue: 'EdgeZone', + type: { + name: "String" + } + } + } + } +}; + export const VirtualMachineImageResource: msRest.CompositeMapper = { serializedName: "VirtualMachineImageResource", type: { @@ -1086,6 +1112,13 @@ export const VirtualMachineImageResource: msRest.CompositeMapper = { } } } + }, + extendedLocation: { + serializedName: "extendedLocation", + type: { + name: "Composite", + className: "ExtendedLocation" + } } } } @@ -1216,6 +1249,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 +1395,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 +1490,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: { @@ -1324,9 +1539,9 @@ export const VirtualMachineSoftwarePatchProperties: msRest.CompositeMapper = { name: "String" } }, - kbid: { + kbId: { readOnly: true, - serializedName: "kbid", + serializedName: "kbId", type: { name: "String" } @@ -1527,6 +1742,299 @@ export const VirtualMachineAssessPatchesResult: msRest.CompositeMapper = { name: "DateTime" } }, + availablePatches: { + readOnly: true, + serializedName: "availablePatches", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineSoftwarePatchProperties" + } + } + } + }, + error: { + readOnly: true, + serializedName: "error", + type: { + name: "Composite", + className: "ApiError" + } + } + } + } +}; + +export const WindowsParameters: msRest.CompositeMapper = { + serializedName: "WindowsParameters", + type: { + name: "Composite", + className: "WindowsParameters", + modelProperties: { + classificationsToInclude: { + serializedName: "classificationsToInclude", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + kbNumbersToInclude: { + serializedName: "kbNumbersToInclude", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + kbNumbersToExclude: { + serializedName: "kbNumbersToExclude", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + excludeKbsRequiringReboot: { + serializedName: "excludeKbsRequiringReboot", + type: { + name: "Boolean" + } + }, + maxPatchPublishDate: { + serializedName: "maxPatchPublishDate", + type: { + name: "DateTime" + } + } + } + } +}; + +export const LinuxParameters: msRest.CompositeMapper = { + serializedName: "LinuxParameters", + type: { + name: "Composite", + className: "LinuxParameters", + modelProperties: { + classificationsToInclude: { + serializedName: "classificationsToInclude", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + packageNameMasksToInclude: { + serializedName: "packageNameMasksToInclude", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + packageNameMasksToExclude: { + serializedName: "packageNameMasksToExclude", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + maintenanceRunId: { + serializedName: "maintenanceRunId", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualMachineInstallPatchesParameters: msRest.CompositeMapper = { + serializedName: "VirtualMachineInstallPatchesParameters", + type: { + name: "Composite", + className: "VirtualMachineInstallPatchesParameters", + modelProperties: { + maximumDuration: { + required: true, + serializedName: "maximumDuration", + type: { + name: "String" + } + }, + rebootSetting: { + required: true, + serializedName: "rebootSetting", + type: { + name: "String" + } + }, + windowsParameters: { + serializedName: "windowsParameters", + type: { + name: "Composite", + className: "WindowsParameters" + } + }, + linuxParameters: { + serializedName: "linuxParameters", + type: { + name: "Composite", + className: "LinuxParameters" + } + } + } + } +}; + +export const PatchInstallationDetail: msRest.CompositeMapper = { + serializedName: "PatchInstallationDetail", + type: { + name: "Composite", + className: "PatchInstallationDetail", + modelProperties: { + patchId: { + readOnly: true, + serializedName: "patchId", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + version: { + readOnly: true, + serializedName: "version", + type: { + name: "String" + } + }, + kbId: { + readOnly: true, + serializedName: "kbId", + type: { + name: "String" + } + }, + classifications: { + readOnly: true, + serializedName: "classifications", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + installationState: { + readOnly: true, + serializedName: "installationState", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualMachineInstallPatchesResult: msRest.CompositeMapper = { + serializedName: "VirtualMachineInstallPatchesResult", + type: { + name: "Composite", + className: "VirtualMachineInstallPatchesResult", + modelProperties: { + status: { + readOnly: true, + serializedName: "status", + type: { + name: "String" + } + }, + installationActivityId: { + readOnly: true, + serializedName: "installationActivityId", + type: { + name: "String" + } + }, + rebootStatus: { + readOnly: true, + serializedName: "rebootStatus", + type: { + name: "String" + } + }, + maintenanceWindowExceeded: { + readOnly: true, + serializedName: "maintenanceWindowExceeded", + type: { + name: "Boolean" + } + }, + excludedPatchCount: { + readOnly: true, + serializedName: "excludedPatchCount", + type: { + name: "Number" + } + }, + notSelectedPatchCount: { + readOnly: true, + serializedName: "notSelectedPatchCount", + type: { + name: "Number" + } + }, + pendingPatchCount: { + readOnly: true, + serializedName: "pendingPatchCount", + type: { + name: "Number" + } + }, + installedPatchCount: { + readOnly: true, + serializedName: "installedPatchCount", + type: { + name: "Number" + } + }, + failedPatchCount: { + readOnly: true, + serializedName: "failedPatchCount", + type: { + name: "Number" + } + }, patches: { readOnly: true, serializedName: "patches", @@ -1535,11 +2043,18 @@ export const VirtualMachineAssessPatchesResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineSoftwarePatchProperties" + className: "PatchInstallationDetail" } } } }, + startDateTime: { + readOnly: true, + serializedName: "startDateTime", + type: { + name: "DateTime" + } + }, error: { readOnly: true, serializedName: "error", @@ -2261,6 +2776,12 @@ export const DataDisk: msRest.CompositeMapper = { name: "Boolean" } }, + detachOption: { + serializedName: "detachOption", + type: { + name: "String" + } + }, diskIOPSReadWrite: { readOnly: true, serializedName: "diskIOPSReadWrite", @@ -2315,17 +2836,119 @@ export const StorageProfile: msRest.CompositeMapper = { } }; +export const VMGalleryApplication: msRest.CompositeMapper = { + serializedName: "VMGalleryApplication", + type: { + name: "Composite", + className: "VMGalleryApplication", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "String" + } + }, + order: { + serializedName: "order", + type: { + name: "Number" + } + }, + manuallyManaged: { + serializedName: "manuallyManaged", + defaultValue: false, + type: { + name: "Boolean" + } + }, + packageReferenceId: { + required: true, + serializedName: "packageReferenceId", + type: { + name: "String" + } + }, + configurationReference: { + serializedName: "configurationReference", + type: { + name: "String" + } + } + } + } +}; + +export const ApplicationProfile: msRest.CompositeMapper = { + serializedName: "ApplicationProfile", + type: { + name: "Composite", + className: "ApplicationProfile", + modelProperties: { + galleryApplications: { + serializedName: "galleryApplications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VMGalleryApplication" + } + } + } + } + } + } +}; + +export const UefiSettings: msRest.CompositeMapper = { + serializedName: "UefiSettings", + type: { + name: "Composite", + className: "UefiSettings", + modelProperties: { + secureBootEnabled: { + serializedName: "secureBootEnabled", + type: { + name: "Boolean" + } + }, + vTpmEnabled: { + serializedName: "vTpmEnabled", + type: { + name: "Boolean" + } + } + } + } +}; + export const SecurityProfile: msRest.CompositeMapper = { serializedName: "SecurityProfile", type: { name: "Composite", className: "SecurityProfile", modelProperties: { + uefiSettings: { + serializedName: "uefiSettings", + type: { + name: "Composite", + className: "UefiSettings" + } + }, encryptionAtHost: { serializedName: "encryptionAtHost", type: { name: "Boolean" } + }, + securityType: { + serializedName: "securityType", + type: { + name: "Enum", + allowedValues: [ + "SecureBoot" + ] + } } } } @@ -2439,17 +3062,23 @@ export const WinRMConfiguration: msRest.CompositeMapper = { } }; -export const PatchSettings: msRest.CompositeMapper = { - serializedName: "PatchSettings", +export const WindowsPatchSettings: msRest.CompositeMapper = { + serializedName: "WindowsPatchSettings", type: { name: "Composite", - className: "PatchSettings", + className: "WindowsPatchSettings", modelProperties: { patchMode: { serializedName: "patchMode", type: { name: "String" } + }, + enableHotpatching: { + serializedName: "enableHotpatching", + type: { + name: "Boolean" + } } } } @@ -2495,7 +3124,7 @@ export const WindowsConfiguration: msRest.CompositeMapper = { serializedName: "patchSettings", type: { name: "Composite", - className: "PatchSettings" + className: "WindowsPatchSettings" } }, winRM: { @@ -2553,6 +3182,22 @@ export const SshConfiguration: msRest.CompositeMapper = { } }; +export const LinuxPatchSettings: msRest.CompositeMapper = { + serializedName: "LinuxPatchSettings", + type: { + name: "Composite", + className: "LinuxPatchSettings", + modelProperties: { + patchMode: { + serializedName: "patchMode", + type: { + name: "String" + } + } + } + } +}; + export const LinuxConfiguration: msRest.CompositeMapper = { serializedName: "LinuxConfiguration", type: { @@ -2577,6 +3222,13 @@ export const LinuxConfiguration: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + patchSettings: { + serializedName: "patchSettings", + type: { + name: "Composite", + className: "LinuxPatchSettings" + } } } } @@ -3204,13 +3856,6 @@ export const LastPatchInstallationSummary: msRest.CompositeMapper = { name: "Boolean" } }, - rebootStatus: { - readOnly: true, - serializedName: "rebootStatus", - type: { - name: "String" - } - }, notSelectedPatchCount: { readOnly: true, serializedName: "notSelectedPatchCount", @@ -3260,13 +3905,6 @@ export const LastPatchInstallationSummary: msRest.CompositeMapper = { name: "DateTime" } }, - startedBy: { - readOnly: true, - serializedName: "startedBy", - type: { - name: "String" - } - }, error: { readOnly: true, serializedName: "error", @@ -3298,6 +3936,19 @@ export const VirtualMachinePatchStatus: msRest.CompositeMapper = { name: "Composite", className: "LastPatchInstallationSummary" } + }, + configurationStatuses: { + readOnly: true, + serializedName: "configurationStatuses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus" + } + } + } } } } @@ -3455,6 +4106,13 @@ export const VirtualMachine: msRest.CompositeMapper = { className: "HardwareProfile" } }, + applicationProfile: { + serializedName: "properties.applicationProfile", + type: { + name: "Composite", + className: "ApplicationProfile" + } + }, storageProfile: { serializedName: "properties.storageProfile", type: { @@ -3518,6 +4176,12 @@ export const VirtualMachine: msRest.CompositeMapper = { className: "SubResource" } }, + platformFaultDomain: { + serializedName: "properties.platformFaultDomain", + type: { + name: "Number" + } + }, priority: { serializedName: "properties.priority", type: { @@ -3615,6 +4279,13 @@ export const VirtualMachine: msRest.CompositeMapper = { } } } + }, + extendedLocation: { + serializedName: "extendedLocation", + type: { + name: "Composite", + className: "ExtendedLocation" + } } } } @@ -3641,6 +4312,13 @@ export const VirtualMachineUpdate: msRest.CompositeMapper = { className: "HardwareProfile" } }, + applicationProfile: { + serializedName: "properties.applicationProfile", + type: { + name: "Composite", + className: "ApplicationProfile" + } + }, storageProfile: { serializedName: "properties.storageProfile", type: { @@ -3704,6 +4382,12 @@ export const VirtualMachineUpdate: msRest.CompositeMapper = { className: "SubResource" } }, + platformFaultDomain: { + serializedName: "properties.platformFaultDomain", + type: { + name: "Number" + } + }, priority: { serializedName: "properties.priority", type: { @@ -3856,6 +4540,18 @@ export const RollingUpgradePolicy: msRest.CompositeMapper = { type: { name: "String" } + }, + enableCrossZoneUpgrade: { + serializedName: "enableCrossZoneUpgrade", + type: { + name: "Boolean" + } + }, + prioritizeUnhealthyInstances: { + serializedName: "prioritizeUnhealthyInstances", + type: { + name: "Boolean" + } } } } @@ -4096,6 +4792,13 @@ export const Image: msRest.CompositeMapper = { type: { name: "String" } + }, + extendedLocation: { + serializedName: "extendedLocation", + type: { + name: "Composite", + className: "ExtendedLocation" + } } } } @@ -5412,6 +6115,13 @@ export const VirtualMachineScaleSetVMProfile: msRest.CompositeMapper = { className: "VirtualMachineScaleSetOSProfile" } }, + applicationProfile: { + serializedName: "applicationProfile", + type: { + name: "Composite", + className: "ApplicationProfile" + } + }, storageProfile: { serializedName: "storageProfile", type: { @@ -5496,6 +6206,13 @@ export const VirtualMachineScaleSetUpdateVMProfile: msRest.CompositeMapper = { className: "VirtualMachineScaleSetUpdateOSProfile" } }, + applicationProfile: { + serializedName: "applicationProfile", + type: { + name: "Composite", + className: "ApplicationProfile" + } + }, storageProfile: { serializedName: "storageProfile", type: { @@ -5686,6 +6403,13 @@ export const VirtualMachineScaleSet: msRest.CompositeMapper = { } } } + }, + extendedLocation: { + serializedName: "extendedLocation", + type: { + name: "Composite", + className: "ExtendedLocation" + } } } } @@ -6493,6 +7217,13 @@ export const VirtualMachineScaleSetVM: msRest.CompositeMapper = { className: "HardwareProfile" } }, + applicationProfile: { + serializedName: "properties.applicationProfile", + type: { + name: "Composite", + className: "ApplicationProfile" + } + }, storageProfile: { serializedName: "properties.storageProfile", type: { @@ -8687,6 +9418,62 @@ export const GalleryIdentifier: msRest.CompositeMapper = { } }; +export const SharingProfileGroup: msRest.CompositeMapper = { + serializedName: "SharingProfileGroup", + type: { + name: "Composite", + className: "SharingProfileGroup", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } + }, + ids: { + serializedName: "ids", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const SharingProfile: msRest.CompositeMapper = { + serializedName: "SharingProfile", + type: { + name: "Composite", + className: "SharingProfile", + modelProperties: { + permissions: { + serializedName: "permissions", + type: { + name: "String" + } + }, + groups: { + readOnly: true, + serializedName: "groups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharingProfileGroup" + } + } + } + } + } + } +}; + export const Gallery: msRest.CompositeMapper = { serializedName: "Gallery", type: { @@ -8713,6 +9500,13 @@ export const Gallery: msRest.CompositeMapper = { type: { name: "String" } + }, + sharingProfile: { + serializedName: "properties.sharingProfile", + type: { + name: "Composite", + className: "SharingProfile" + } } } } @@ -8786,6 +9580,13 @@ export const GalleryUpdate: msRest.CompositeMapper = { type: { name: "String" } + }, + sharingProfile: { + serializedName: "properties.sharingProfile", + type: { + name: "Composite", + className: "SharingProfile" + } } } } @@ -9139,6 +9940,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: { @@ -9321,7 +10144,19 @@ export const GalleryImage: msRest.CompositeMapper = { hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" + name: "String" + } + }, + features: { + serializedName: "properties.features", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryImageFeature" + } + } } }, endOfLifeDate: { @@ -9429,6 +10264,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 +10344,12 @@ export const GalleryArtifactVersionSource: msRest.CompositeMapper = { type: { name: "String" } + }, + uri: { + serializedName: "uri", + type: { + name: "String" + } } } } @@ -9829,6 +10682,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: { @@ -10994,6 +12037,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..4ee2711752f9 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 @@ -26,7 +25,7 @@ export const apiVersion0: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2020-06-01', + defaultValue: '2020-12-01', type: { name: "String" } @@ -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" } @@ -140,6 +139,16 @@ export const diskName: msRest.OperationURLParameter = { } } }; +export const edgeZone: msRest.OperationURLParameter = { + parameterPath: "edgeZone", + mapper: { + required: true, + serializedName: "edgeZone", + type: { + name: "String" + } + } +}; export const expand0: msRest.OperationQueryParameter = { parameterPath: [ "options", @@ -179,6 +188,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 +250,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: { @@ -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..3c2c6da022c6 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. @@ -12,6 +12,7 @@ export { ApiEntityReference, ApiError, ApiErrorBase, + ApplicationProfile, AutomaticOSUpgradePolicy, AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, @@ -65,6 +66,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -77,6 +79,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -103,6 +106,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -111,7 +115,6 @@ export { OSDiskImage, OSDiskImageEncryption, OSProfile, - PatchSettings, Plan, PrivateEndpoint, PrivateEndpointConnection, @@ -133,6 +136,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -147,6 +153,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResource, UpdateResourceDefinition, UpgradePolicy, @@ -197,12 +204,16 @@ export { VirtualMachineScaleSetUpdateStorageProfile, VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, VirtualMachineUpdate, + VMGalleryApplication, WindowsConfiguration, + WindowsPatchSettings, WinRMConfiguration, WinRMListener } from "../models/mappers"; 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..97604eab0abf 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. @@ -13,6 +13,7 @@ export { ApiEntityReference, ApiError, ApiErrorBase, + ApplicationProfile, AutomaticOSUpgradePolicy, AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, @@ -63,6 +64,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -75,6 +77,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -101,6 +104,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -109,7 +113,6 @@ export { OSDiskImage, OSDiskImageEncryption, OSProfile, - PatchSettings, Plan, PrivateEndpoint, PrivateEndpointConnection, @@ -129,6 +132,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotList, @@ -144,6 +150,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -186,11 +193,15 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, + VMGalleryApplication, WindowsConfiguration, + WindowsPatchSettings, WinRMConfiguration, WinRMListener } from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/sshPublicKeysMappers.ts b/sdk/compute/arm-compute/src/models/sshPublicKeysMappers.ts index 634c39bf3870..1daec8b06bab 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. @@ -12,6 +12,7 @@ export { ApiEntityReference, ApiError, ApiErrorBase, + ApplicationProfile, AutomaticOSUpgradePolicy, AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, @@ -65,6 +66,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -77,6 +79,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -103,6 +106,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -111,7 +115,6 @@ export { OSDiskImage, OSDiskImageEncryption, OSProfile, - PatchSettings, Plan, PrivateEndpoint, PrivateEndpointConnection, @@ -132,6 +135,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -148,6 +154,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResource, UpdateResourceDefinition, UpgradePolicy, @@ -198,12 +205,16 @@ export { VirtualMachineScaleSetUpdateStorageProfile, VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, VirtualMachineUpdate, + VMGalleryApplication, WindowsConfiguration, + WindowsPatchSettings, WinRMConfiguration, WinRMListener } from "../models/mappers"; 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..59062572fb65 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. @@ -12,6 +12,7 @@ export { ApiEntityReference, ApiError, ApiErrorBase, + ApplicationProfile, AutomaticOSUpgradePolicy, AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, @@ -62,6 +63,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -74,6 +76,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -99,6 +102,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -107,7 +111,6 @@ export { OSDiskImage, OSDiskImageEncryption, OSProfile, - PatchSettings, Plan, PrivateEndpoint, PrivateEndpointConnection, @@ -127,6 +130,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -140,6 +146,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -182,11 +189,15 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, + VMGalleryApplication, WindowsConfiguration, + WindowsPatchSettings, WinRMConfiguration, WinRMListener } from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts index 6299932f5dcc..924e9fe58ad3 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. @@ -12,6 +12,7 @@ export { ApiEntityReference, ApiError, ApiErrorBase, + ApplicationProfile, AutomaticOSUpgradePolicy, AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, @@ -65,6 +66,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -77,6 +79,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -103,6 +106,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -111,7 +115,6 @@ export { OSDiskImage, OSDiskImageEncryption, OSProfile, - PatchSettings, Plan, PrivateEndpoint, PrivateEndpointConnection, @@ -132,6 +135,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -146,6 +152,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResource, UpdateResourceDefinition, UpgradePolicy, @@ -197,12 +204,16 @@ export { VirtualMachineScaleSetUpdateStorageProfile, VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, VirtualMachineUpdate, + VMGalleryApplication, WindowsConfiguration, + WindowsPatchSettings, WinRMConfiguration, WinRMListener } from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/virtualMachineImagesEdgeZoneMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineImagesEdgeZoneMappers.ts new file mode 100644 index 000000000000..59062572fb65 --- /dev/null +++ b/sdk/compute/arm-compute/src/models/virtualMachineImagesEdgeZoneMappers.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, + ApplicationProfile, + 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, + ExtendedLocation, + 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, + LinuxPatchSettings, + MaintenanceRedeployStatus, + ManagedDiskParameters, + NetworkInterfaceReference, + NetworkProfile, + OSDisk, + OSDiskImage, + OSDiskImageEncryption, + OSProfile, + Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, + ProximityPlacementGroup, + PurchasePlan, + RecommendedMachineConfiguration, + RegionalReplicationStatus, + ReplicationStatus, + Resource, + ResourceRange, + RollingUpgradePolicy, + RollingUpgradeProgressInfo, + RollingUpgradeRunningStatus, + RollingUpgradeStatusInfo, + ScaleInPolicy, + ScheduledEventsProfile, + SecurityProfile, + ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, + Sku, + Snapshot, + SnapshotSku, + SourceVault, + SshConfiguration, + SshPublicKey, + SshPublicKeyResource, + StorageProfile, + SubResource, + SubResourceReadOnly, + SubResourceWithColocationStatus, + TargetRegion, + TerminateNotificationProfile, + UefiSettings, + UpdateResourceDefinition, + UpgradePolicy, + UserArtifactSource, + VaultCertificate, + VaultSecretGroup, + VirtualHardDisk, + VirtualMachine, + VirtualMachineAgentInstanceView, + VirtualMachineCaptureResult, + VirtualMachineExtension, + VirtualMachineExtensionHandlerInstanceView, + VirtualMachineExtensionImage, + VirtualMachineExtensionInstanceView, + VirtualMachineHealthStatus, + VirtualMachineIdentity, + VirtualMachineIdentityUserAssignedIdentitiesValue, + VirtualMachineImage, + VirtualMachineImageResource, + VirtualMachineInstanceView, + VirtualMachinePatchStatus, + 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, + VMGalleryApplication, + WindowsConfiguration, + WindowsPatchSettings, + WinRMConfiguration, + WinRMListener +} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts index 94265b583cca..59062572fb65 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. @@ -12,6 +12,7 @@ export { ApiEntityReference, ApiError, ApiErrorBase, + ApplicationProfile, AutomaticOSUpgradePolicy, AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, @@ -62,6 +63,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -74,6 +76,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -99,6 +102,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -107,7 +111,6 @@ export { OSDiskImage, OSDiskImageEncryption, OSProfile, - PatchSettings, Plan, PrivateEndpoint, PrivateEndpointConnection, @@ -127,6 +130,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -140,6 +146,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -182,11 +189,15 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, + VMGalleryApplication, WindowsConfiguration, + WindowsPatchSettings, WinRMConfiguration, WinRMListener } from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/virtualMachineRunCommandsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineRunCommandsMappers.ts index 2bcbd6209547..cb5bce7466d9 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineRunCommandsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineRunCommandsMappers.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/virtualMachineScaleSetExtensionsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts index b97e1690a27a..d23c7af2f8c4 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. @@ -12,6 +12,7 @@ export { ApiEntityReference, ApiError, ApiErrorBase, + ApplicationProfile, AutomaticOSUpgradePolicy, AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, @@ -62,6 +63,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -74,6 +76,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -99,6 +102,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -107,7 +111,6 @@ export { OSDiskImage, OSDiskImageEncryption, OSProfile, - PatchSettings, Plan, PrivateEndpoint, PrivateEndpointConnection, @@ -127,6 +130,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -140,6 +146,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -183,11 +190,15 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, + VMGalleryApplication, WindowsConfiguration, + WindowsPatchSettings, WinRMConfiguration, WinRMListener } from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts index 94265b583cca..59062572fb65 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. @@ -12,6 +12,7 @@ export { ApiEntityReference, ApiError, ApiErrorBase, + ApplicationProfile, AutomaticOSUpgradePolicy, AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, @@ -62,6 +63,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -74,6 +76,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -99,6 +102,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -107,7 +111,6 @@ export { OSDiskImage, OSDiskImageEncryption, OSProfile, - PatchSettings, Plan, PrivateEndpoint, PrivateEndpointConnection, @@ -127,6 +130,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -140,6 +146,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -182,11 +189,15 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, + VMGalleryApplication, WindowsConfiguration, + WindowsPatchSettings, WinRMConfiguration, WinRMListener } from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.ts index 6299932f5dcc..3ca0fe852fe0 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. @@ -12,11 +12,11 @@ export { ApiEntityReference, ApiError, ApiErrorBase, + ApplicationProfile, AutomaticOSUpgradePolicy, AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, AvailabilitySet, - AvailabilitySetUpdate, AvailablePatchSummary, BaseResource, BillingProfile, @@ -44,10 +44,8 @@ export { DedicatedHostAvailableCapacity, DedicatedHostGroup, DedicatedHostGroupInstanceView, - DedicatedHostGroupUpdate, DedicatedHostInstanceView, DedicatedHostInstanceViewWithName, - DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, @@ -65,6 +63,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -77,6 +76,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -94,7 +94,6 @@ export { ImagePurchasePlan, ImageReference, ImageStorageProfile, - ImageUpdate, InnerError, InstanceViewStatus, KeyVaultAndKeyReference, @@ -103,6 +102,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -111,13 +111,11 @@ export { OSDiskImage, OSDiskImageEncryption, OSProfile, - PatchSettings, Plan, PrivateEndpoint, PrivateEndpointConnection, PrivateLinkServiceConnectionState, ProximityPlacementGroup, - ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -132,6 +130,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -139,14 +140,13 @@ export { SshConfiguration, SshPublicKey, SshPublicKeyResource, - SshPublicKeyUpdateResource, StorageProfile, SubResource, SubResourceReadOnly, SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, - UpdateResource, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -160,8 +160,6 @@ export { VirtualMachineExtensionHandlerInstanceView, VirtualMachineExtensionImage, VirtualMachineExtensionInstanceView, - VirtualMachineExtensionsListResult, - VirtualMachineExtensionUpdate, VirtualMachineHealthStatus, VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, @@ -187,22 +185,20 @@ export { VirtualMachineScaleSetPublicIPAddressConfiguration, VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, VirtualMachineScaleSetStorageProfile, - VirtualMachineScaleSetUpdate, VirtualMachineScaleSetUpdateIPConfiguration, VirtualMachineScaleSetUpdateNetworkConfiguration, - VirtualMachineScaleSetUpdateNetworkProfile, - VirtualMachineScaleSetUpdateOSDisk, - VirtualMachineScaleSetUpdateOSProfile, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, - VirtualMachineScaleSetUpdateStorageProfile, - VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionsListResult, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, - VirtualMachineUpdate, + VMGalleryApplication, WindowsConfiguration, + WindowsPatchSettings, 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..22a6d06bc537 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. @@ -12,6 +12,7 @@ export { ApiEntityReference, ApiError, ApiErrorBase, + ApplicationProfile, AutomaticOSUpgradePolicy, AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, @@ -62,6 +63,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -74,6 +76,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -99,6 +102,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -107,7 +111,6 @@ export { OSDiskImage, OSDiskImageEncryption, OSProfile, - PatchSettings, Plan, PrivateEndpoint, PrivateEndpointConnection, @@ -131,6 +134,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -144,6 +150,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -188,13 +195,17 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMListResult, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, VirtualMachineScaleSetVMReimageParameters, + VMGalleryApplication, WindowsConfiguration, + WindowsPatchSettings, WinRMConfiguration, WinRMListener } from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts index 7ada9068e03d..671b792f5481 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. @@ -12,6 +12,7 @@ export { ApiEntityReference, ApiError, ApiErrorBase, + ApplicationProfile, AutomaticOSUpgradePolicy, AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, @@ -65,6 +66,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -77,6 +79,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -103,6 +106,7 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -113,7 +117,6 @@ export { OSDiskImage, OSDiskImageEncryption, OSProfile, - PatchSettings, Plan, PrivateEndpoint, PrivateEndpointConnection, @@ -136,6 +139,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -150,6 +156,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResource, UpdateResourceDefinition, UpgradeOperationHistoricalStatusInfo, @@ -213,7 +220,9 @@ export { VirtualMachineScaleSetUpdateStorageProfile, VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, VirtualMachineScaleSetVMExtensionsSummary, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetVMInstanceRequiredIDs, VirtualMachineScaleSetVMInstanceView, @@ -223,8 +232,10 @@ export { VirtualMachineScaleSetVMReimageParameters, VirtualMachineStatusCodeCount, VirtualMachineUpdate, + VMGalleryApplication, VMScaleSetConvertToSinglePlacementGroupInput, WindowsConfiguration, + WindowsPatchSettings, WinRMConfiguration, WinRMListener } from "../models/mappers"; 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..02e889a54685 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. @@ -12,6 +12,7 @@ export { ApiEntityReference, ApiError, ApiErrorBase, + ApplicationProfile, AutomaticOSUpgradePolicy, AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, @@ -65,6 +66,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -77,6 +79,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -103,6 +106,8 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxParameters, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -111,7 +116,7 @@ export { OSDiskImage, OSDiskImageEncryption, OSProfile, - PatchSettings, + PatchInstallationDetail, Plan, PrivateEndpoint, PrivateEndpointConnection, @@ -136,6 +141,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -150,6 +158,7 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResource, UpdateResourceDefinition, UpgradePolicy, @@ -172,6 +181,8 @@ export { VirtualMachineIdentityUserAssignedIdentitiesValue, VirtualMachineImage, VirtualMachineImageResource, + VirtualMachineInstallPatchesParameters, + VirtualMachineInstallPatchesResult, VirtualMachineInstanceView, VirtualMachineListResult, VirtualMachinePatchStatus, @@ -205,6 +216,8 @@ export { VirtualMachineScaleSetUpdateStorageProfile, VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, @@ -214,7 +227,10 @@ export { VirtualMachineSizeListResult, VirtualMachineSoftwarePatchProperties, VirtualMachineUpdate, + VMGalleryApplication, WindowsConfiguration, + WindowsParameters, + WindowsPatchSettings, WinRMConfiguration, WinRMListener } from "../models/mappers"; 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..f6ccbc3c5699 100644 --- a/sdk/compute/arm-compute/src/operations/index.ts +++ b/sdk/compute/arm-compute/src/operations/index.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -17,6 +16,7 @@ export * from "./sshPublicKeys"; export * from "./virtualMachineExtensionImages"; export * from "./virtualMachineExtensions"; export * from "./virtualMachineImages"; +export * from "./virtualMachineImagesEdgeZone"; export * from "./usageOperations"; export * from "./virtualMachines"; export * from "./virtualMachineSizes"; @@ -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/virtualMachineImagesEdgeZone.ts b/sdk/compute/arm-compute/src/operations/virtualMachineImagesEdgeZone.ts new file mode 100644 index 000000000000..c1ea54bba4af --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/virtualMachineImagesEdgeZone.ts @@ -0,0 +1,413 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/virtualMachineImagesEdgeZoneMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a VirtualMachineImagesEdgeZone. */ +export class VirtualMachineImagesEdgeZone { + private readonly client: ComputeManagementClientContext; + + /** + * Create a VirtualMachineImagesEdgeZone. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * Gets a virtual machine image in an edge zone. + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param offer A valid image publisher offer. + * @param skus A valid image SKU. + * @param version A valid image SKU version. + * @param [options] The optional parameters + * @returns Promise + */ + get(location: string, edgeZone: string, publisherName: string, offer: string, skus: string, version: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param offer A valid image publisher offer. + * @param skus A valid image SKU. + * @param version A valid image SKU version. + * @param callback The callback + */ + get(location: string, edgeZone: string, publisherName: string, offer: string, skus: string, version: string, callback: msRest.ServiceCallback): void; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param offer A valid image publisher offer. + * @param skus A valid image SKU. + * @param version A valid image SKU version. + * @param options The optional parameters + * @param callback The callback + */ + get(location: string, edgeZone: string, publisherName: string, offer: string, skus: string, version: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(location: string, edgeZone: string, publisherName: string, offer: string, skus: string, version: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + edgeZone, + publisherName, + offer, + skus, + version, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of all virtual machine image versions for the specified location, edge zone, + * publisher, offer, and SKU. + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param offer A valid image publisher offer. + * @param skus A valid image SKU. + * @param [options] The optional parameters + * @returns Promise + */ + list(location: string, edgeZone: string, publisherName: string, offer: string, skus: string, options?: Models.VirtualMachineImagesEdgeZoneListOptionalParams): Promise; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param offer A valid image publisher offer. + * @param skus A valid image SKU. + * @param callback The callback + */ + list(location: string, edgeZone: string, publisherName: string, offer: string, skus: string, callback: msRest.ServiceCallback): void; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param offer A valid image publisher offer. + * @param skus A valid image SKU. + * @param options The optional parameters + * @param callback The callback + */ + list(location: string, edgeZone: string, publisherName: string, offer: string, skus: string, options: Models.VirtualMachineImagesEdgeZoneListOptionalParams, callback: msRest.ServiceCallback): void; + list(location: string, edgeZone: string, publisherName: string, offer: string, skus: string, options?: Models.VirtualMachineImagesEdgeZoneListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + edgeZone, + publisherName, + offer, + skus, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of virtual machine image offers for the specified location, edge zone and publisher. + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param [options] The optional parameters + * @returns Promise + */ + listOffers(location: string, edgeZone: string, publisherName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param callback The callback + */ + listOffers(location: string, edgeZone: string, publisherName: string, callback: msRest.ServiceCallback): void; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param options The optional parameters + * @param callback The callback + */ + listOffers(location: string, edgeZone: string, publisherName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listOffers(location: string, edgeZone: string, publisherName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + edgeZone, + publisherName, + options + }, + listOffersOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of virtual machine image publishers for the specified Azure location and edge zone. + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param [options] The optional parameters + * @returns Promise + */ + listPublishers(location: string, edgeZone: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param callback The callback + */ + listPublishers(location: string, edgeZone: string, callback: msRest.ServiceCallback): void; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param options The optional parameters + * @param callback The callback + */ + listPublishers(location: string, edgeZone: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPublishers(location: string, edgeZone: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + edgeZone, + options + }, + listPublishersOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and + * offer. + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param offer A valid image publisher offer. + * @param [options] The optional parameters + * @returns Promise + */ + listSkus(location: string, edgeZone: string, publisherName: string, offer: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param offer A valid image publisher offer. + * @param callback The callback + */ + listSkus(location: string, edgeZone: string, publisherName: string, offer: string, callback: msRest.ServiceCallback): void; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param offer A valid image publisher offer. + * @param options The optional parameters + * @param callback The callback + */ + listSkus(location: string, edgeZone: string, publisherName: string, offer: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSkus(location: string, edgeZone: string, publisherName: string, offer: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + edgeZone, + publisherName, + offer, + options + }, + listSkusOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}", + urlParameters: [ + Parameters.location0, + Parameters.edgeZone, + Parameters.publisherName, + Parameters.offer, + Parameters.skus, + Parameters.version, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineImage + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions", + urlParameters: [ + Parameters.location0, + Parameters.edgeZone, + Parameters.publisherName, + Parameters.offer, + Parameters.skus, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.expand0, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineImageResource" + } + } + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOffersOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers", + urlParameters: [ + Parameters.location0, + Parameters.edgeZone, + Parameters.publisherName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineImageResource" + } + } + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listPublishersOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers", + urlParameters: [ + Parameters.location0, + Parameters.edgeZone, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineImageResource" + } + } + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listSkusOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus", + urlParameters: [ + Parameters.location0, + Parameters.edgeZone, + Parameters.publisherName, + Parameters.offer, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineImageResource" + } + } + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts b/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts index 134182cee58b..c40d6678aa98 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 @@ -173,6 +172,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], 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/virtualMachineScaleSetVMs.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts index 4bebe6e62fcb..9a6664c30959 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -92,7 +91,7 @@ export class VirtualMachineScaleSetVMs { * @param [options] The optional parameters * @returns Promise */ - deleteMethod(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise { + deleteMethod(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: Models.VirtualMachineScaleSetVMsDeleteMethodOptionalParams): Promise { return this.beginDeleteMethod(resourceGroupName,vmScaleSetName,instanceId,options) .then(lroPoller => lroPoller.pollUntilFinished()); } @@ -450,7 +449,7 @@ export class VirtualMachineScaleSetVMs { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise { + beginDeleteMethod(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: Models.VirtualMachineScaleSetVMsBeginDeleteMethodOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -593,7 +592,7 @@ export class VirtualMachineScaleSetVMs { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.VirtualMachineScaleSetVMsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -604,8 +603,8 @@ export class VirtualMachineScaleSetVMs { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.VirtualMachineScaleSetVMsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.VirtualMachineScaleSetVMsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -878,6 +877,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ + Parameters.forceDeletion, Parameters.apiVersion0 ], headerParameters: [ @@ -1061,6 +1061,12 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.filter, + Parameters.select, + Parameters.expand0, + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts index ddb59ba58530..7d5914b8b857 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 @@ -60,7 +59,7 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - deleteMethod(resourceGroupName: string, vmScaleSetName: string, options?: msRest.RequestOptionsBase): Promise { + deleteMethod(resourceGroupName: string, vmScaleSetName: string, options?: Models.VirtualMachineScaleSetsDeleteMethodOptionalParams): Promise { return this.beginDeleteMethod(resourceGroupName,vmScaleSetName,options) .then(lroPoller => lroPoller.pollUntilFinished()); } @@ -119,7 +118,7 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - deleteInstances(resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: Models.VirtualMachineScaleSetVMInstanceRequiredIDs, options?: msRest.RequestOptionsBase): Promise { + deleteInstances(resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: Models.VirtualMachineScaleSetVMInstanceRequiredIDs, options?: Models.VirtualMachineScaleSetsDeleteInstancesOptionalParams): Promise { return this.beginDeleteInstances(resourceGroupName,vmScaleSetName,vmInstanceIDs,options) .then(lroPoller => lroPoller.pollUntilFinished()); } @@ -518,7 +517,7 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod(resourceGroupName: string, vmScaleSetName: string, options?: msRest.RequestOptionsBase): Promise { + beginDeleteMethod(resourceGroupName: string, vmScaleSetName: string, options?: Models.VirtualMachineScaleSetsBeginDeleteMethodOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -557,7 +556,7 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - beginDeleteInstances(resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: Models.VirtualMachineScaleSetVMInstanceRequiredIDs, options?: msRest.RequestOptionsBase): Promise { + beginDeleteInstances(resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: Models.VirtualMachineScaleSetVMInstanceRequiredIDs, options?: Models.VirtualMachineScaleSetsBeginDeleteInstancesOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1141,6 +1140,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ + Parameters.forceDeletion, Parameters.apiVersion0 ], headerParameters: [ @@ -1197,6 +1197,7 @@ const beginDeleteInstancesOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ + Parameters.forceDeletion, Parameters.apiVersion0 ], headerParameters: [ @@ -1506,6 +1507,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1527,6 +1531,9 @@ const listAllNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1548,6 +1555,9 @@ const listSkusNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1569,6 +1579,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..2642f6e5470c 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachines.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachines.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -103,7 +102,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - deleteMethod(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise { + deleteMethod(resourceGroupName: string, vmName: string, options?: Models.VirtualMachinesDeleteMethodOptionalParams): Promise { return this.beginDeleteMethod(resourceGroupName,vmName,options) .then(lroPoller => lroPoller.pollUntilFinished()); } @@ -482,6 +481,18 @@ export class VirtualMachines { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * Installs patches on the VM. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine. + * @param [options] The optional parameters + * @returns Promise + */ + installPatches(resourceGroupName: string, vmName: string, options?: Models.VirtualMachinesInstallPatchesOptionalParams): Promise { + return this.beginInstallPatches(resourceGroupName,vmName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * Run command on the VM. * @param resourceGroupName The name of the resource group. @@ -564,7 +575,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise { + beginDeleteMethod(resourceGroupName: string, vmName: string, options?: Models.VirtualMachinesBeginDeleteMethodOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -758,6 +769,24 @@ export class VirtualMachines { options); } + /** + * Installs patches on the VM. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine. + * @param [options] The optional parameters + * @returns Promise + */ + beginInstallPatches(resourceGroupName: string, vmName: string, options?: Models.VirtualMachinesBeginInstallPatchesOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + vmName, + options + }, + beginInstallPatchesOperationSpec, + options); + } + /** * Run command on the VM. * @param resourceGroupName The name of the resource group. @@ -842,7 +871,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 +882,8 @@ export class VirtualMachines { * @param options The optional parameters * @param callback The callback */ - listAllNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listAllNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listAllNext(nextPageLink: string, options: Models.VirtualMachinesListAllNextOptionalParams, callback: msRest.ServiceCallback): void; + listAllNext(nextPageLink: string, options?: Models.VirtualMachinesListAllNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -1180,9 +1209,6 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.VirtualMachine }, - 201: { - bodyMapper: Mappers.VirtualMachine - }, default: { bodyMapper: Mappers.CloudError } @@ -1199,6 +1225,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ + Parameters.forceDeletion, Parameters.apiVersion0 ], headerParameters: [ @@ -1465,6 +1492,39 @@ const beginAssessPatchesOperationSpec: msRest.OperationSpec = { serializer }; +const beginInstallPatchesOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/installPatches", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "installPatchesInput" + ], + mapper: Mappers.VirtualMachineInstallPatchesParameters + }, + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineInstallPatchesResult + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginRunCommandOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommand", @@ -1505,6 +1565,9 @@ const listByLocationNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1526,6 +1589,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1547,6 +1613,10 @@ const listAllNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.statusOnly + ], headerParameters: [ Parameters.acceptLanguage ],