From eb32fc3c7bf45a9e7e5aa91305bdff6bb8a42394 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Fri, 23 Oct 2020 04:07:32 +0000 Subject: [PATCH] Generated from 2e97c198d03935ceaca3565b0d274ac8f48885a2 --- .../src/computeManagementClient.ts | 10 + .../src/models/availabilitySetsMappers.ts | 10 + .../src/models/containerServicesMappers.ts | 9 + .../src/models/dedicatedHostGroupsMappers.ts | 10 + .../src/models/dedicatedHostsMappers.ts | 10 + .../src/models/diskAccessesMappers.ts | 9 + .../src/models/diskEncryptionSetsMappers.ts | 9 + .../arm-compute/src/models/disksMappers.ts | 9 + .../src/models/galleriesMappers.ts | 9 + .../galleryApplicationVersionsMappers.ts | 9 + .../src/models/galleryApplicationsMappers.ts | 9 + .../src/models/galleryImageVersionsMappers.ts | 9 + .../src/models/galleryImagesMappers.ts | 9 + .../models/gallerySharingProfileMappers.ts | 201 +++ .../arm-compute/src/models/imagesMappers.ts | 10 + sdk/compute/arm-compute/src/models/index.ts | 1306 +++++++++++++++-- sdk/compute/arm-compute/src/models/mappers.ts | 800 +++++++++- .../arm-compute/src/models/parameters.ts | 46 +- .../models/proximityPlacementGroupsMappers.ts | 10 + .../src/models/sharedGalleriesMappers.ts | 26 + .../sharedGalleryImageVersionsMappers.ts | 26 + .../src/models/sharedGalleryImagesMappers.ts | 26 + .../src/models/snapshotsMappers.ts | 9 + .../src/models/sshPublicKeysMappers.ts | 10 + .../virtualMachineExtensionImagesMappers.ts | 9 + .../models/virtualMachineExtensionsMappers.ts | 10 + .../src/models/virtualMachineImagesMappers.ts | 9 + .../virtualMachineRunCommandsMappers.ts | 209 ++- ...virtualMachineScaleSetExtensionsMappers.ts | 9 + ...alMachineScaleSetRollingUpgradesMappers.ts | 9 + ...rtualMachineScaleSetVMExtensionsMappers.ts | 10 + ...tualMachineScaleSetVMRunCommandsMappers.ts | 218 +++ .../virtualMachineScaleSetVMsMappers.ts | 8 + .../models/virtualMachineScaleSetsMappers.ts | 10 + .../src/models/virtualMachinesMappers.ts | 9 + .../arm-compute/src/operations/galleries.ts | 9 +- .../src/operations/galleryImageVersions.ts | 62 +- .../src/operations/galleryImages.ts | 32 +- .../src/operations/gallerySharingProfile.ts | 99 ++ .../arm-compute/src/operations/index.ts | 5 + .../src/operations/sharedGalleries.ts | 189 +++ .../operations/sharedGalleryImageVersions.ts | 221 +++ .../src/operations/sharedGalleryImages.ts | 202 +++ .../operations/virtualMachineRunCommands.ts | 373 +++++ .../virtualMachineScaleSetVMRunCommands.ts | 423 ++++++ .../src/operations/virtualMachines.ts | 5 +- 46 files changed, 4504 insertions(+), 217 deletions(-) create mode 100644 sdk/compute/arm-compute/src/models/gallerySharingProfileMappers.ts create mode 100644 sdk/compute/arm-compute/src/models/sharedGalleriesMappers.ts create mode 100644 sdk/compute/arm-compute/src/models/sharedGalleryImageVersionsMappers.ts create mode 100644 sdk/compute/arm-compute/src/models/sharedGalleryImagesMappers.ts create mode 100644 sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMRunCommandsMappers.ts create mode 100644 sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts create mode 100644 sdk/compute/arm-compute/src/operations/sharedGalleries.ts create mode 100644 sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts create mode 100644 sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts create mode 100644 sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index 4617fee5e9c3..7c028fd16d0d 100644 --- a/sdk/compute/arm-compute/src/computeManagementClient.ts +++ b/sdk/compute/arm-compute/src/computeManagementClient.ts @@ -37,6 +37,7 @@ class ComputeManagementClient extends ComputeManagementClientContext { virtualMachineScaleSetVMs: operations.VirtualMachineScaleSetVMs; logAnalytics: operations.LogAnalytics; virtualMachineRunCommands: operations.VirtualMachineRunCommands; + virtualMachineScaleSetVMRunCommands: operations.VirtualMachineScaleSetVMRunCommands; resourceSkus: operations.ResourceSkus; disks: operations.Disks; snapshots: operations.Snapshots; @@ -47,6 +48,10 @@ class ComputeManagementClient extends ComputeManagementClientContext { galleryImageVersions: operations.GalleryImageVersions; galleryApplications: operations.GalleryApplications; galleryApplicationVersions: operations.GalleryApplicationVersions; + gallerySharingProfile: operations.GallerySharingProfile; + sharedGalleries: operations.SharedGalleries; + sharedGalleryImages: operations.SharedGalleryImages; + sharedGalleryImageVersions: operations.SharedGalleryImageVersions; containerServices: operations.ContainerServices; /** @@ -78,6 +83,7 @@ class ComputeManagementClient extends ComputeManagementClientContext { this.virtualMachineScaleSetVMs = new operations.VirtualMachineScaleSetVMs(this); this.logAnalytics = new operations.LogAnalytics(this); this.virtualMachineRunCommands = new operations.VirtualMachineRunCommands(this); + this.virtualMachineScaleSetVMRunCommands = new operations.VirtualMachineScaleSetVMRunCommands(this); this.resourceSkus = new operations.ResourceSkus(this); this.disks = new operations.Disks(this); this.snapshots = new operations.Snapshots(this); @@ -88,6 +94,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/models/availabilitySetsMappers.ts b/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts index 81c92f5c003c..a24ea3d0eef8 100644 --- a/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts +++ b/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts @@ -78,6 +78,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -129,10 +130,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -150,6 +155,7 @@ export { UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -169,6 +175,10 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, diff --git a/sdk/compute/arm-compute/src/models/containerServicesMappers.ts b/sdk/compute/arm-compute/src/models/containerServicesMappers.ts index f51c43681cb0..de68530f3448 100644 --- a/sdk/compute/arm-compute/src/models/containerServicesMappers.ts +++ b/sdk/compute/arm-compute/src/models/containerServicesMappers.ts @@ -75,6 +75,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -124,10 +125,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -143,6 +148,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -161,6 +167,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, diff --git a/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts b/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts index d6492a5ccb31..a35d7847dc6b 100644 --- a/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts +++ b/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts @@ -78,6 +78,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -129,10 +130,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -150,6 +155,7 @@ export { UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -169,6 +175,10 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, diff --git a/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts b/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts index e13ef3198917..39e22c3229af 100644 --- a/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts +++ b/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts @@ -78,6 +78,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -129,10 +130,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -150,6 +155,7 @@ export { UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -169,6 +175,10 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, diff --git a/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts b/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts index 04693ac9ce02..45424507dfe5 100644 --- a/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts +++ b/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts @@ -76,6 +76,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -127,10 +128,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -146,6 +151,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -164,6 +170,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, diff --git a/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts b/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts index 1fb77b62ea0b..1fe5a746257d 100644 --- a/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts +++ b/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts @@ -76,6 +76,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -126,10 +127,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -145,6 +150,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -163,6 +169,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, diff --git a/sdk/compute/arm-compute/src/models/disksMappers.ts b/sdk/compute/arm-compute/src/models/disksMappers.ts index f4b1367453d6..5f518de79a46 100644 --- a/sdk/compute/arm-compute/src/models/disksMappers.ts +++ b/sdk/compute/arm-compute/src/models/disksMappers.ts @@ -77,6 +77,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -127,10 +128,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -146,6 +151,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -164,6 +170,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, diff --git a/sdk/compute/arm-compute/src/models/galleriesMappers.ts b/sdk/compute/arm-compute/src/models/galleriesMappers.ts index e8848382bd37..15972590d844 100644 --- a/sdk/compute/arm-compute/src/models/galleriesMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleriesMappers.ts @@ -74,6 +74,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -124,10 +125,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -143,6 +148,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -161,6 +167,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, diff --git a/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts b/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts index 08917ccbf34c..5d1ed2f96041 100644 --- a/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts @@ -75,6 +75,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -124,10 +125,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -143,6 +148,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -161,6 +167,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, diff --git a/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts b/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts index 23e299c473a6..98e39296e231 100644 --- a/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts @@ -75,6 +75,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -124,10 +125,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -143,6 +148,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -161,6 +167,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, diff --git a/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts b/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts index f793a9a603e8..65c37b05c401 100644 --- a/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts @@ -74,6 +74,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -124,10 +125,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -143,6 +148,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -161,6 +167,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, diff --git a/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts b/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts index 578486eff4ca..85ac154b71df 100644 --- a/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts @@ -74,6 +74,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageList, GalleryImageUpdate, @@ -124,10 +125,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -143,6 +148,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -161,6 +167,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, 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..3b4abcb10717 --- /dev/null +++ b/sdk/compute/arm-compute/src/models/gallerySharingProfileMappers.ts @@ -0,0 +1,201 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + AdditionalCapabilities, + AdditionalUnattendContent, + ApiEntityReference, + ApiError, + ApiErrorBase, + AutomaticOSUpgradePolicy, + AutomaticOSUpgradeProperties, + AutomaticRepairsPolicy, + AvailabilitySet, + AvailablePatchSummary, + BaseResource, + BillingProfile, + BootDiagnostics, + BootDiagnosticsInstanceView, + CloudError, + ContainerService, + ContainerServiceAgentPoolProfile, + ContainerServiceCustomProfile, + ContainerServiceDiagnosticsProfile, + ContainerServiceLinuxProfile, + ContainerServiceMasterProfile, + ContainerServiceOrchestratorProfile, + ContainerServiceServicePrincipalProfile, + ContainerServiceSshConfiguration, + ContainerServiceSshPublicKey, + ContainerServiceVMDiagnostics, + ContainerServiceWindowsProfile, + CreationData, + DataDisk, + DataDiskImage, + DataDiskImageEncryption, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupInstanceView, + DedicatedHostInstanceView, + DedicatedHostInstanceViewWithName, + DiagnosticsProfile, + DiffDiskSettings, + Disallowed, + DisallowedConfiguration, + Disk, + DiskAccess, + DiskEncryptionSet, + DiskEncryptionSetParameters, + DiskEncryptionSettings, + DiskImageEncryption, + DiskInstanceView, + DiskSku, + Encryption, + EncryptionImages, + EncryptionSetIdentity, + EncryptionSettingsCollection, + EncryptionSettingsElement, + Gallery, + GalleryApplication, + GalleryApplicationUpdate, + GalleryApplicationVersion, + GalleryApplicationVersionPublishingProfile, + GalleryApplicationVersionUpdate, + GalleryArtifactPublishingProfileBase, + GalleryArtifactVersionSource, + GalleryDataDiskImage, + GalleryDiskImage, + GalleryIdentifier, + GalleryImage, + GalleryImageFeature, + GalleryImageIdentifier, + GalleryImageUpdate, + GalleryImageVersion, + GalleryImageVersionPublishingProfile, + GalleryImageVersionStorageProfile, + GalleryImageVersionUpdate, + GalleryOSDiskImage, + GalleryUpdate, + HardwareProfile, + Image, + ImageDataDisk, + ImageDisk, + ImageDiskReference, + ImageOSDisk, + ImagePurchasePlan, + ImageReference, + ImageStorageProfile, + InnerError, + InstanceViewStatus, + KeyVaultAndKeyReference, + KeyVaultAndSecretReference, + KeyVaultKeyReference, + KeyVaultSecretReference, + LastPatchInstallationSummary, + LinuxConfiguration, + MaintenanceRedeployStatus, + ManagedDiskParameters, + NetworkInterfaceReference, + NetworkProfile, + OSDisk, + OSDiskImage, + OSDiskImageEncryption, + OSProfile, + PatchSettings, + Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, + ProximityPlacementGroup, + PurchasePlan, + RecommendedMachineConfiguration, + RegionalReplicationStatus, + ReplicationStatus, + Resource, + ResourceRange, + RollingUpgradePolicy, + RollingUpgradeProgressInfo, + RollingUpgradeRunningStatus, + RollingUpgradeStatusInfo, + RunCommandInputParameter, + ScaleInPolicy, + ScheduledEventsProfile, + SecurityProfile, + ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, + Sku, + Snapshot, + SnapshotSku, + SourceVault, + SshConfiguration, + SshPublicKey, + SshPublicKeyResource, + StorageProfile, + SubResource, + SubResourceReadOnly, + SubResourceWithColocationStatus, + TargetRegion, + TerminateNotificationProfile, + UpdateResourceDefinition, + UpgradePolicy, + UserArtifactManage, + UserArtifactSource, + VaultCertificate, + VaultSecretGroup, + VirtualHardDisk, + VirtualMachine, + VirtualMachineAgentInstanceView, + VirtualMachineCaptureResult, + VirtualMachineExtension, + VirtualMachineExtensionHandlerInstanceView, + VirtualMachineExtensionImage, + VirtualMachineExtensionInstanceView, + VirtualMachineHealthStatus, + VirtualMachineIdentity, + VirtualMachineIdentityUserAssignedIdentitiesValue, + VirtualMachineImage, + VirtualMachineImageResource, + VirtualMachineInstanceView, + VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineScaleSet, + VirtualMachineScaleSetDataDisk, + VirtualMachineScaleSetExtension, + VirtualMachineScaleSetExtensionProfile, + VirtualMachineScaleSetExtensionUpdate, + VirtualMachineScaleSetIdentity, + VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue, + VirtualMachineScaleSetIPConfiguration, + VirtualMachineScaleSetIpTag, + VirtualMachineScaleSetManagedDiskParameters, + VirtualMachineScaleSetNetworkConfiguration, + VirtualMachineScaleSetNetworkConfigurationDnsSettings, + VirtualMachineScaleSetNetworkProfile, + VirtualMachineScaleSetOSDisk, + VirtualMachineScaleSetOSProfile, + VirtualMachineScaleSetPublicIPAddressConfiguration, + VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, + VirtualMachineScaleSetStorageProfile, + VirtualMachineScaleSetUpdateIPConfiguration, + VirtualMachineScaleSetUpdateNetworkConfiguration, + VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, + VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMInstanceView, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProfile, + VirtualMachineScaleSetVMProtectionPolicy, + WindowsConfiguration, + WinRMConfiguration, + WinRMListener +} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/imagesMappers.ts b/sdk/compute/arm-compute/src/models/imagesMappers.ts index 69e44f43cd84..4eec0a32357e 100644 --- a/sdk/compute/arm-compute/src/models/imagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/imagesMappers.ts @@ -77,6 +77,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -129,10 +130,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -150,6 +155,7 @@ export { UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -169,6 +175,10 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, diff --git a/sdk/compute/arm-compute/src/models/index.ts b/sdk/compute/arm-compute/src/models/index.ts index cc59586f553f..10e1011a0029 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -4683,6 +4683,169 @@ export interface RunCommandResult { value?: InstanceViewStatus[]; } +/** + * The instance view of a virtual machine run command. + */ +export interface VirtualMachineRunCommandInstanceView { + /** + * Script execution status. Possible values include: 'Unknown', 'Pending', 'Running', 'Failed', + * 'Succeeded', 'TimedOut', 'Canceled' + */ + executionState?: ExecutionState; + /** + * Communicate script configuration errors or execution messages. + */ + executionMessage?: string; + /** + * Exit code returned from script execution. + */ + exitCode?: number; + /** + * Script output stream. + */ + output?: string; + /** + * Script error stream. + */ + error?: string; + /** + * Script start time. + */ + startTime?: Date; + /** + * Script end time. + */ + endTime?: Date; + /** + * The resource status information. + */ + statuses?: InstanceViewStatus[]; +} + +/** + * Describes the script sources for run command. + */ +export interface VirtualMachineRunCommandScriptSource { + /** + * Specifies the script content to be executed on the VM. + */ + script?: string; + /** + * Specifies the script download location. + */ + scriptUri?: string; + /** + * Specifies a commandId of predefined built-in script. + */ + commandId?: string; +} + +/** + * Describes a Virtual Machine run command. + */ +export interface VirtualMachineRunCommand extends Resource { + /** + * The source of the run command script. + */ + source?: VirtualMachineRunCommandScriptSource; + /** + * The parameters used by the script. + */ + parameters?: RunCommandInputParameter[]; + /** + * The parameters used by the script. + */ + protectedParameters?: RunCommandInputParameter[]; + /** + * Optional. If set to true, provisioning will complete as soon as the script starts and will not + * wait for script to complete. Default value: false. + */ + asyncExecution?: boolean; + /** + * Specifies the user account on the VM when executing the run command. + */ + runAsUser?: string; + /** + * Specifies the user account password on the VM when executing the run command. + */ + runAsPassword?: string; + /** + * The timeout in seconds to execute the run command. + */ + timeoutInSeconds?: number; + /** + * Specifies the Azure storage blob where script output stream will be uploaded. + */ + outputBlobUri?: string; + /** + * Specifies the Azure storage blob where script error stream will be uploaded. + */ + errorBlobUri?: string; + /** + * The provisioning state, which only appears in the response. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * The virtual machine run command instance view. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly instanceView?: VirtualMachineRunCommandInstanceView; +} + +/** + * Describes a Virtual Machine run command. + */ +export interface VirtualMachineRunCommandUpdate extends UpdateResource { + /** + * The source of the run command script. + */ + source?: VirtualMachineRunCommandScriptSource; + /** + * The parameters used by the script. + */ + parameters?: RunCommandInputParameter[]; + /** + * The parameters used by the script. + */ + protectedParameters?: RunCommandInputParameter[]; + /** + * Optional. If set to true, provisioning will complete as soon as the script starts and will not + * wait for script to complete. Default value: false. + */ + asyncExecution?: boolean; + /** + * Specifies the user account on the VM when executing the run command. + */ + runAsUser?: string; + /** + * Specifies the user account password on the VM when executing the run command. + */ + runAsPassword?: string; + /** + * The timeout in seconds to execute the run command. + */ + timeoutInSeconds?: number; + /** + * Specifies the Azure storage blob where script output stream will be uploaded. + */ + outputBlobUri?: string; + /** + * Specifies the Azure storage blob where script error stream will be uploaded. + */ + errorBlobUri?: string; + /** + * The provisioning state, which only appears in the response. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * The virtual machine run command instance view. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly instanceView?: VirtualMachineRunCommandInstanceView; +} + /** * Describes scaling information of a SKU. */ @@ -5663,6 +5826,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 +5875,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 +5919,7 @@ export interface GalleryUpdate extends UpdateResourceDefinition { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningState; + sharingProfile?: SharingProfile; } /** @@ -5796,13 +5994,35 @@ export interface GalleryApplicationUpdate extends UpdateResourceDefinition { */ export interface UserArtifactSource { /** - * Required. The fileName of the artifact. + * Required. The mediaLink of the artifact, must be a readable storage page blob. */ - fileName: string; + mediaLink: string; /** - * Required. The mediaLink of the artifact, must be a readable storage blob. + * Optional. The defaultConfigurationLink of the artifact, must be a readable storage page blob. */ - mediaLink: string; + defaultConfigurationLink?: string; +} + +/** + * An interface representing UserArtifactManage. + */ +export interface UserArtifactManage { + /** + * Required. The path and arguments to install the gallery application. This is limited to 4096 + * characters. + */ + install: string; + /** + * Required. The path and arguments to remove the gallery application. This is limited to 4096 + * characters. + */ + remove: string; + /** + * Optional. The path and arguments to update the gallery application. If not present, then + * update operation will invoke remove command on the previous version and install command on the + * current version of the gallery application. This is limited to 4096 characters. + */ + update?: string; } /** @@ -5825,12 +6045,12 @@ export interface GalleryArtifactPublishingProfileBase { */ excludeFromLatest?: boolean; /** - * The timestamp for when the gallery Image Version is published. + * The timestamp for when the gallery image version is published. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly publishedDate?: Date; /** - * The end of life date of the gallery Image Version. This property can be used for + * The end of life date of the gallery image version. This property can be used for * decommissioning purposes. This property is updatable. */ endOfLifeDate?: Date; @@ -5842,15 +6062,11 @@ export interface GalleryArtifactPublishingProfileBase { } /** - * The publishing profile of a gallery Image Version. + * The publishing profile of a gallery image version. */ export interface GalleryApplicationVersionPublishingProfile extends GalleryArtifactPublishingProfileBase { source: UserArtifactSource; - /** - * Optional. May be used to help process this file. The type of file contained in the source, - * e.g. zip, json, etc. - */ - contentType?: string; + manageActions?: UserArtifactManage; /** * Optional. Whether or not this application reports health. */ @@ -5862,7 +6078,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 +6101,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 +6154,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 +6219,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 +6237,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 +6273,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 +6286,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 +6295,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 +6331,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 +6344,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 +6353,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 +6363,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 +6421,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 +6440,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 +6536,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. */ @@ -6590,6 +6931,16 @@ export interface VirtualMachineImagesListOptionalParams extends msRest.RequestOp orderby?: string; } +/** + * Optional Parameters. + */ +export interface VirtualMachinesDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to force delete virtual machines. + */ + forceDeletion?: boolean; +} + /** * Optional Parameters. */ @@ -6644,6 +6995,16 @@ export interface VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams extend sasUriExpirationTimeInMinutes?: number; } +/** + * Optional Parameters. + */ +export interface VirtualMachinesBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to force delete virtual machines. + */ + forceDeletion?: boolean; +} + /** * Optional Parameters. */ @@ -6967,41 +7328,124 @@ export interface VirtualMachineScaleSetVMsBeginPowerOffOptionalParams extends ms /** * Optional Parameters. */ -export interface ResourceSkusListOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachineRunCommandsGetByVirtualMachineOptionalParams extends msRest.RequestOptionsBase { /** - * The filter to apply on the operation. Only **location** filter is supported currently. + * The expand expression to apply on the operation. */ - filter?: string; + expand?: string; } /** * Optional Parameters. */ -export interface GalleryImageVersionsGetOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachineRunCommandsListByVirtualMachineOptionalParams extends msRest.RequestOptionsBase { /** - * The expand expression to apply on the operation. Possible values include: 'ReplicationStatus' + * The expand expression to apply on the operation. */ - expand?: ReplicationStatusTypes; + expand?: string; } /** * Optional Parameters. */ -export interface GalleryApplicationVersionsGetOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetVMRunCommandsGetOptionalParams extends msRest.RequestOptionsBase { /** - * The expand expression to apply on the operation. Possible values include: 'ReplicationStatus' + * The expand expression to apply on the operation. */ - expand?: ReplicationStatusTypes; + expand?: string; } /** - * An interface representing ComputeManagementClientOptions. + * Optional Parameters. */ -export interface ComputeManagementClientOptions extends AzureServiceClientOptions { - baseUri?: string; -} - -/** +export interface VirtualMachineScaleSetVMRunCommandsListOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. + */ + 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 GalleriesGetOptionalParams extends msRest.RequestOptionsBase { + /** + * The select expression to apply on the operation. Possible values include: 'Permissions' + */ + select?: SelectPermissions; +} + +/** + * Optional Parameters. + */ +export interface GalleryImageVersionsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. Possible values include: 'ReplicationStatus' + */ + expand?: ReplicationStatusTypes; +} + +/** + * Optional Parameters. + */ +export interface GalleryApplicationVersionsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. Possible values include: 'ReplicationStatus' + */ + expand?: ReplicationStatusTypes; +} + +/** + * Optional Parameters. + */ +export interface SharedGalleriesListOptionalParams extends msRest.RequestOptionsBase { + /** + * The query parameter to decide what shared galleries to fetch when doing listing operations. + * Possible values include: 'tenant' + */ + sharedTo?: SharedToValues; +} + +/** + * Optional Parameters. + */ +export interface SharedGalleryImagesListOptionalParams extends msRest.RequestOptionsBase { + /** + * The query parameter to decide what shared galleries to fetch when doing listing operations. + * Possible values include: 'tenant' + */ + sharedTo?: SharedToValues; +} + +/** + * Optional Parameters. + */ +export interface SharedGalleryImageVersionsListOptionalParams extends msRest.RequestOptionsBase { + /** + * The query parameter to decide what shared galleries to fetch when doing listing operations. + * Possible values include: 'tenant' + */ + sharedTo?: SharedToValues; +} + +/** + * An interface representing ComputeManagementClientOptions. + */ +export interface ComputeManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} + +/** * @interface * The List Compute Operation operation response. * @extends Array @@ -7211,6 +7655,18 @@ export interface RunCommandListResult extends Array { nextLink?: string; } +/** + * @interface + * The List run command operation response + * @extends Array + */ +export interface VirtualMachineRunCommandsListResult extends Array { + /** + * The uri to fetch the next page of run commands. + */ + nextLink?: string; +} + /** * @interface * The List Resource Skus operation response. @@ -7310,7 +7766,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 +7778,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 +7810,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. @@ -7721,6 +8216,15 @@ export type IntervalInMins = 'ThreeMins' | 'FiveMins' | 'ThirtyMins' | 'SixtyMin */ export type OrchestrationServiceStateAction = 'Resume' | 'Suspend'; +/** + * Defines values for ExecutionState. + * Possible values include: 'Unknown', 'Pending', 'Running', 'Failed', 'Succeeded', 'TimedOut', + * 'Canceled' + * @readonly + * @enum {string} + */ +export type ExecutionState = 'Unknown' | 'Pending' | 'Running' | 'Failed' | 'Succeeded' | 'TimedOut' | 'Canceled'; + /** * Defines values for ResourceSkuCapacityScaleType. * Possible values include: 'Automatic', 'Manual', 'None' @@ -7844,6 +8348,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 +8396,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 +8436,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 +8452,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' @@ -10509,9 +11053,9 @@ export type VirtualMachineRunCommandsGetResponse = RunCommandDocument & { }; /** - * Contains response data for the listNext operation. + * Contains response data for the createOrUpdate operation. */ -export type VirtualMachineRunCommandsListNextResponse = RunCommandListResult & { +export type VirtualMachineRunCommandsCreateOrUpdateResponse = VirtualMachineRunCommand & { /** * The underlying HTTP response. */ @@ -10524,14 +11068,14 @@ export type VirtualMachineRunCommandsListNextResponse = RunCommandListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: RunCommandListResult; + parsedBody: VirtualMachineRunCommand; }; }; /** - * Contains response data for the list operation. + * Contains response data for the update operation. */ -export type ResourceSkusListResponse = ResourceSkusResult & { +export type VirtualMachineRunCommandsUpdateResponse = VirtualMachineRunCommand & { /** * The underlying HTTP response. */ @@ -10544,14 +11088,14 @@ export type ResourceSkusListResponse = ResourceSkusResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ResourceSkusResult; + parsedBody: VirtualMachineRunCommand; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the getByVirtualMachine operation. */ -export type ResourceSkusListNextResponse = ResourceSkusResult & { +export type VirtualMachineRunCommandsGetByVirtualMachineResponse = VirtualMachineRunCommand & { /** * The underlying HTTP response. */ @@ -10564,14 +11108,14 @@ export type ResourceSkusListNextResponse = ResourceSkusResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ResourceSkusResult; + parsedBody: VirtualMachineRunCommand; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByVirtualMachine operation. */ -export type DisksCreateOrUpdateResponse = Disk & { +export type VirtualMachineRunCommandsListByVirtualMachineResponse = VirtualMachineRunCommandsListResult & { /** * The underlying HTTP response. */ @@ -10584,14 +11128,14 @@ export type DisksCreateOrUpdateResponse = Disk & { /** * The response body as parsed JSON or XML */ - parsedBody: Disk; + parsedBody: VirtualMachineRunCommandsListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type DisksUpdateResponse = Disk & { +export type VirtualMachineRunCommandsBeginCreateOrUpdateResponse = VirtualMachineRunCommand & { /** * The underlying HTTP response. */ @@ -10604,14 +11148,14 @@ export type DisksUpdateResponse = Disk & { /** * The response body as parsed JSON or XML */ - parsedBody: Disk; + parsedBody: VirtualMachineRunCommand; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginUpdate operation. */ -export type DisksGetResponse = Disk & { +export type VirtualMachineRunCommandsBeginUpdateResponse = VirtualMachineRunCommand & { /** * The underlying HTTP response. */ @@ -10624,14 +11168,14 @@ export type DisksGetResponse = Disk & { /** * The response body as parsed JSON or XML */ - parsedBody: Disk; + parsedBody: VirtualMachineRunCommand; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the listNext operation. */ -export type DisksListByResourceGroupResponse = DiskList & { +export type VirtualMachineRunCommandsListNextResponse = RunCommandListResult & { /** * The underlying HTTP response. */ @@ -10644,14 +11188,14 @@ export type DisksListByResourceGroupResponse = DiskList & { /** * The response body as parsed JSON or XML */ - parsedBody: DiskList; + parsedBody: RunCommandListResult; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByVirtualMachineNext operation. */ -export type DisksListResponse = DiskList & { +export type VirtualMachineRunCommandsListByVirtualMachineNextResponse = VirtualMachineRunCommandsListResult & { /** * The underlying HTTP response. */ @@ -10664,14 +11208,14 @@ export type DisksListResponse = DiskList & { /** * The response body as parsed JSON or XML */ - parsedBody: DiskList; + parsedBody: VirtualMachineRunCommandsListResult; }; }; /** - * Contains response data for the grantAccess operation. + * Contains response data for the createOrUpdate operation. */ -export type DisksGrantAccessResponse = AccessUri & { +export type VirtualMachineScaleSetVMRunCommandsCreateOrUpdateResponse = VirtualMachineRunCommand & { /** * The underlying HTTP response. */ @@ -10684,14 +11228,14 @@ export type DisksGrantAccessResponse = AccessUri & { /** * The response body as parsed JSON or XML */ - parsedBody: AccessUri; + parsedBody: VirtualMachineRunCommand; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the update operation. */ -export type DisksBeginCreateOrUpdateResponse = Disk & { +export type VirtualMachineScaleSetVMRunCommandsUpdateResponse = VirtualMachineRunCommand & { /** * The underlying HTTP response. */ @@ -10704,14 +11248,14 @@ export type DisksBeginCreateOrUpdateResponse = Disk & { /** * The response body as parsed JSON or XML */ - parsedBody: Disk; + parsedBody: VirtualMachineRunCommand; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the get operation. */ -export type DisksBeginUpdateResponse = Disk & { +export type VirtualMachineScaleSetVMRunCommandsGetResponse = VirtualMachineRunCommand & { /** * The underlying HTTP response. */ @@ -10724,14 +11268,14 @@ export type DisksBeginUpdateResponse = Disk & { /** * The response body as parsed JSON or XML */ - parsedBody: Disk; + parsedBody: VirtualMachineRunCommand; }; }; /** - * Contains response data for the beginGrantAccess operation. + * Contains response data for the list operation. */ -export type DisksBeginGrantAccessResponse = AccessUri & { +export type VirtualMachineScaleSetVMRunCommandsListResponse = VirtualMachineRunCommandsListResult & { /** * The underlying HTTP response. */ @@ -10744,14 +11288,14 @@ export type DisksBeginGrantAccessResponse = AccessUri & { /** * The response body as parsed JSON or XML */ - parsedBody: AccessUri; + parsedBody: VirtualMachineRunCommandsListResult; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type DisksListByResourceGroupNextResponse = DiskList & { +export type VirtualMachineScaleSetVMRunCommandsBeginCreateOrUpdateResponse = VirtualMachineRunCommand & { /** * The underlying HTTP response. */ @@ -10764,14 +11308,14 @@ export type DisksListByResourceGroupNextResponse = DiskList & { /** * The response body as parsed JSON or XML */ - parsedBody: DiskList; + parsedBody: VirtualMachineRunCommand; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the beginUpdate operation. */ -export type DisksListNextResponse = DiskList & { +export type VirtualMachineScaleSetVMRunCommandsBeginUpdateResponse = VirtualMachineRunCommand & { /** * The underlying HTTP response. */ @@ -10784,14 +11328,14 @@ export type DisksListNextResponse = DiskList & { /** * The response body as parsed JSON or XML */ - parsedBody: DiskList; + parsedBody: VirtualMachineRunCommand; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listNext operation. */ -export type SnapshotsCreateOrUpdateResponse = Snapshot & { +export type VirtualMachineScaleSetVMRunCommandsListNextResponse = VirtualMachineRunCommandsListResult & { /** * The underlying HTTP response. */ @@ -10804,14 +11348,14 @@ export type SnapshotsCreateOrUpdateResponse = Snapshot & { /** * The response body as parsed JSON or XML */ - parsedBody: Snapshot; + parsedBody: VirtualMachineRunCommandsListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the list operation. */ -export type SnapshotsUpdateResponse = Snapshot & { +export type ResourceSkusListResponse = ResourceSkusResult & { /** * The underlying HTTP response. */ @@ -10824,14 +11368,14 @@ export type SnapshotsUpdateResponse = Snapshot & { /** * The response body as parsed JSON or XML */ - parsedBody: Snapshot; + parsedBody: ResourceSkusResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type SnapshotsGetResponse = Snapshot & { +export type ResourceSkusListNextResponse = ResourceSkusResult & { /** * The underlying HTTP response. */ @@ -10844,14 +11388,14 @@ export type SnapshotsGetResponse = Snapshot & { /** * The response body as parsed JSON or XML */ - parsedBody: Snapshot; + parsedBody: ResourceSkusResult; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the createOrUpdate operation. */ -export type SnapshotsListByResourceGroupResponse = SnapshotList & { +export type DisksCreateOrUpdateResponse = Disk & { /** * The underlying HTTP response. */ @@ -10864,14 +11408,14 @@ export type SnapshotsListByResourceGroupResponse = SnapshotList & { /** * The response body as parsed JSON or XML */ - parsedBody: SnapshotList; + parsedBody: Disk; }; }; /** - * Contains response data for the list operation. + * Contains response data for the update operation. */ -export type SnapshotsListResponse = SnapshotList & { +export type DisksUpdateResponse = Disk & { /** * The underlying HTTP response. */ @@ -10884,14 +11428,14 @@ export type SnapshotsListResponse = SnapshotList & { /** * The response body as parsed JSON or XML */ - parsedBody: SnapshotList; + parsedBody: Disk; }; }; /** - * Contains response data for the grantAccess operation. + * Contains response data for the get operation. */ -export type SnapshotsGrantAccessResponse = AccessUri & { +export type DisksGetResponse = Disk & { /** * The underlying HTTP response. */ @@ -10904,14 +11448,14 @@ export type SnapshotsGrantAccessResponse = AccessUri & { /** * The response body as parsed JSON or XML */ - parsedBody: AccessUri; + parsedBody: Disk; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listByResourceGroup operation. */ -export type SnapshotsBeginCreateOrUpdateResponse = Snapshot & { +export type DisksListByResourceGroupResponse = DiskList & { /** * The underlying HTTP response. */ @@ -10924,14 +11468,14 @@ export type SnapshotsBeginCreateOrUpdateResponse = Snapshot & { /** * The response body as parsed JSON or XML */ - parsedBody: Snapshot; + parsedBody: DiskList; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the list operation. */ -export type SnapshotsBeginUpdateResponse = Snapshot & { +export type DisksListResponse = DiskList & { /** * The underlying HTTP response. */ @@ -10944,14 +11488,14 @@ export type SnapshotsBeginUpdateResponse = Snapshot & { /** * The response body as parsed JSON or XML */ - parsedBody: Snapshot; + parsedBody: DiskList; }; }; /** - * Contains response data for the beginGrantAccess operation. + * Contains response data for the grantAccess operation. */ -export type SnapshotsBeginGrantAccessResponse = AccessUri & { +export type DisksGrantAccessResponse = AccessUri & { /** * The underlying HTTP response. */ @@ -10969,9 +11513,9 @@ export type SnapshotsBeginGrantAccessResponse = AccessUri & { }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type SnapshotsListByResourceGroupNextResponse = SnapshotList & { +export type DisksBeginCreateOrUpdateResponse = Disk & { /** * The underlying HTTP response. */ @@ -10984,14 +11528,14 @@ export type SnapshotsListByResourceGroupNextResponse = SnapshotList & { /** * The response body as parsed JSON or XML */ - parsedBody: SnapshotList; + parsedBody: Disk; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the beginUpdate operation. */ -export type SnapshotsListNextResponse = SnapshotList & { +export type DisksBeginUpdateResponse = Disk & { /** * The underlying HTTP response. */ @@ -11004,14 +11548,14 @@ export type SnapshotsListNextResponse = SnapshotList & { /** * The response body as parsed JSON or XML */ - parsedBody: SnapshotList; + parsedBody: Disk; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginGrantAccess operation. */ -export type DiskEncryptionSetsCreateOrUpdateResponse = DiskEncryptionSet & { +export type DisksBeginGrantAccessResponse = AccessUri & { /** * The underlying HTTP response. */ @@ -11024,7 +11568,287 @@ export type DiskEncryptionSetsCreateOrUpdateResponse = DiskEncryptionSet & { /** * The response body as parsed JSON or XML */ - parsedBody: DiskEncryptionSet; + parsedBody: AccessUri; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type DisksListByResourceGroupNextResponse = DiskList & { + /** + * 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: DiskList; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type DisksListNextResponse = DiskList & { + /** + * 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: DiskList; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type SnapshotsCreateOrUpdateResponse = Snapshot & { + /** + * 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: Snapshot; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type SnapshotsUpdateResponse = Snapshot & { + /** + * 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: Snapshot; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type SnapshotsGetResponse = Snapshot & { + /** + * 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: Snapshot; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type SnapshotsListByResourceGroupResponse = SnapshotList & { + /** + * 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: SnapshotList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type SnapshotsListResponse = SnapshotList & { + /** + * 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: SnapshotList; + }; +}; + +/** + * Contains response data for the grantAccess operation. + */ +export type SnapshotsGrantAccessResponse = AccessUri & { + /** + * 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: AccessUri; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type SnapshotsBeginCreateOrUpdateResponse = Snapshot & { + /** + * 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: Snapshot; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type SnapshotsBeginUpdateResponse = Snapshot & { + /** + * 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: Snapshot; + }; +}; + +/** + * Contains response data for the beginGrantAccess operation. + */ +export type SnapshotsBeginGrantAccessResponse = AccessUri & { + /** + * 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: AccessUri; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type SnapshotsListByResourceGroupNextResponse = SnapshotList & { + /** + * 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: SnapshotList; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type SnapshotsListNextResponse = SnapshotList & { + /** + * 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: SnapshotList; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DiskEncryptionSetsCreateOrUpdateResponse = DiskEncryptionSet & { + /** + * 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: DiskEncryptionSet; }; }; @@ -12168,6 +12992,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/mappers.ts b/sdk/compute/arm-compute/src/models/mappers.ts index 0f992c30506b..29fe4f6af72c 100644 --- a/sdk/compute/arm-compute/src/models/mappers.ts +++ b/sdk/compute/arm-compute/src/models/mappers.ts @@ -7093,6 +7093,286 @@ export const RunCommandResult: msRest.CompositeMapper = { } }; +export const VirtualMachineRunCommandInstanceView: msRest.CompositeMapper = { + serializedName: "VirtualMachineRunCommandInstanceView", + type: { + name: "Composite", + className: "VirtualMachineRunCommandInstanceView", + modelProperties: { + executionState: { + serializedName: "executionState", + type: { + name: "String" + } + }, + executionMessage: { + serializedName: "executionMessage", + type: { + name: "String" + } + }, + exitCode: { + serializedName: "exitCode", + type: { + name: "Number" + } + }, + output: { + serializedName: "output", + type: { + name: "String" + } + }, + error: { + serializedName: "error", + type: { + name: "String" + } + }, + startTime: { + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + endTime: { + serializedName: "endTime", + type: { + name: "DateTime" + } + }, + statuses: { + serializedName: "statuses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus" + } + } + } + } + } + } +}; + +export const VirtualMachineRunCommandScriptSource: msRest.CompositeMapper = { + serializedName: "VirtualMachineRunCommandScriptSource", + type: { + name: "Composite", + className: "VirtualMachineRunCommandScriptSource", + modelProperties: { + script: { + serializedName: "script", + type: { + name: "String" + } + }, + scriptUri: { + serializedName: "scriptUri", + type: { + name: "String" + } + }, + commandId: { + serializedName: "commandId", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualMachineRunCommand: msRest.CompositeMapper = { + serializedName: "VirtualMachineRunCommand", + type: { + name: "Composite", + className: "VirtualMachineRunCommand", + modelProperties: { + ...Resource.type.modelProperties, + source: { + serializedName: "properties.source", + type: { + name: "Composite", + className: "VirtualMachineRunCommandScriptSource" + } + }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RunCommandInputParameter" + } + } + } + }, + protectedParameters: { + serializedName: "properties.protectedParameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RunCommandInputParameter" + } + } + } + }, + asyncExecution: { + serializedName: "properties.asyncExecution", + defaultValue: false, + type: { + name: "Boolean" + } + }, + runAsUser: { + serializedName: "properties.runAsUser", + type: { + name: "String" + } + }, + runAsPassword: { + serializedName: "properties.runAsPassword", + type: { + name: "String" + } + }, + timeoutInSeconds: { + serializedName: "properties.timeoutInSeconds", + type: { + name: "Number" + } + }, + outputBlobUri: { + serializedName: "properties.outputBlobUri", + type: { + name: "String" + } + }, + errorBlobUri: { + serializedName: "properties.errorBlobUri", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + instanceView: { + readOnly: true, + serializedName: "properties.instanceView", + type: { + name: "Composite", + className: "VirtualMachineRunCommandInstanceView" + } + } + } + } +}; + +export const VirtualMachineRunCommandUpdate: msRest.CompositeMapper = { + serializedName: "VirtualMachineRunCommandUpdate", + type: { + name: "Composite", + className: "VirtualMachineRunCommandUpdate", + modelProperties: { + ...UpdateResource.type.modelProperties, + source: { + serializedName: "properties.source", + type: { + name: "Composite", + className: "VirtualMachineRunCommandScriptSource" + } + }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RunCommandInputParameter" + } + } + } + }, + protectedParameters: { + serializedName: "properties.protectedParameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RunCommandInputParameter" + } + } + } + }, + asyncExecution: { + serializedName: "properties.asyncExecution", + defaultValue: false, + type: { + name: "Boolean" + } + }, + runAsUser: { + serializedName: "properties.runAsUser", + type: { + name: "String" + } + }, + runAsPassword: { + serializedName: "properties.runAsPassword", + type: { + name: "String" + } + }, + timeoutInSeconds: { + serializedName: "properties.timeoutInSeconds", + type: { + name: "Number" + } + }, + outputBlobUri: { + serializedName: "properties.outputBlobUri", + type: { + name: "String" + } + }, + errorBlobUri: { + serializedName: "properties.errorBlobUri", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + instanceView: { + readOnly: true, + serializedName: "properties.instanceView", + type: { + name: "Composite", + className: "VirtualMachineRunCommandInstanceView" + } + } + } + } +}; + export const ResourceSkuCapacity: msRest.CompositeMapper = { serializedName: "ResourceSkuCapacity", type: { @@ -8687,51 +8967,114 @@ export const GalleryIdentifier: msRest.CompositeMapper = { } }; -export const Gallery: msRest.CompositeMapper = { - serializedName: "Gallery", +export const SharingProfileGroup: msRest.CompositeMapper = { + serializedName: "SharingProfileGroup", type: { name: "Composite", - className: "Gallery", + className: "SharingProfileGroup", modelProperties: { - ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", + type: { + serializedName: "type", type: { name: "String" } }, - identifier: { - serializedName: "properties.identifier", - type: { - name: "Composite", - className: "GalleryIdentifier" - } - }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + ids: { + serializedName: "ids", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const UpdateResourceDefinition: msRest.CompositeMapper = { - serializedName: "UpdateResourceDefinition", +export const SharingProfile: msRest.CompositeMapper = { + serializedName: "SharingProfile", type: { name: "Composite", - className: "UpdateResourceDefinition", + className: "SharingProfile", modelProperties: { - id: { - readOnly: true, - serializedName: "id", + permissions: { + serializedName: "permissions", type: { name: "String" } }, - name: { + groups: { + readOnly: true, + serializedName: "groups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharingProfileGroup" + } + } + } + } + } + } +}; + +export const Gallery: msRest.CompositeMapper = { + serializedName: "Gallery", + type: { + name: "Composite", + className: "Gallery", + modelProperties: { + ...Resource.type.modelProperties, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + identifier: { + serializedName: "properties.identifier", + type: { + name: "Composite", + className: "GalleryIdentifier" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + sharingProfile: { + serializedName: "properties.sharingProfile", + type: { + name: "Composite", + className: "SharingProfile" + } + } + } + } +}; + +export const UpdateResourceDefinition: msRest.CompositeMapper = { + serializedName: "UpdateResourceDefinition", + type: { + name: "Composite", + className: "UpdateResourceDefinition", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { readOnly: true, serializedName: "name", type: { @@ -8786,6 +9129,13 @@ export const GalleryUpdate: msRest.CompositeMapper = { type: { name: "String" } + }, + sharingProfile: { + serializedName: "properties.sharingProfile", + type: { + name: "Composite", + className: "SharingProfile" + } } } } @@ -8901,16 +9251,45 @@ export const UserArtifactSource: msRest.CompositeMapper = { name: "Composite", className: "UserArtifactSource", modelProperties: { - fileName: { + mediaLink: { required: true, - serializedName: "fileName", + serializedName: "mediaLink", type: { name: "String" } }, - mediaLink: { + defaultConfigurationLink: { + serializedName: "defaultConfigurationLink", + type: { + name: "String" + } + } + } + } +}; + +export const UserArtifactManage: msRest.CompositeMapper = { + serializedName: "UserArtifactManage", + type: { + name: "Composite", + className: "UserArtifactManage", + modelProperties: { + install: { required: true, - serializedName: "mediaLink", + serializedName: "install", + type: { + name: "String" + } + }, + remove: { + required: true, + serializedName: "remove", + type: { + name: "String" + } + }, + update: { + serializedName: "update", type: { name: "String" } @@ -8987,10 +9366,11 @@ export const GalleryApplicationVersionPublishingProfile: msRest.CompositeMapper className: "UserArtifactSource" } }, - contentType: { - serializedName: "contentType", + manageActions: { + serializedName: "manageActions", type: { - name: "String" + name: "Composite", + className: "UserArtifactManage" } }, enableHealthCheck: { @@ -9139,6 +9519,28 @@ export const GalleryApplicationVersionUpdate: msRest.CompositeMapper = { } }; +export const GalleryImageFeature: msRest.CompositeMapper = { + serializedName: "GalleryImageFeature", + type: { + name: "Composite", + className: "GalleryImageFeature", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + export const GalleryImageIdentifier: msRest.CompositeMapper = { serializedName: "GalleryImageIdentifier", type: { @@ -9324,6 +9726,18 @@ export const GalleryImage: msRest.CompositeMapper = { name: "String" } }, + features: { + serializedName: "properties.features", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryImageFeature" + } + } + } + }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { @@ -9429,6 +9843,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 +9923,12 @@ export const GalleryArtifactVersionSource: msRest.CompositeMapper = { type: { name: "String" } + }, + uri: { + serializedName: "uri", + type: { + name: "String" + } } } } @@ -9829,6 +10261,196 @@ export const GalleryArtifactSource: msRest.CompositeMapper = { } }; +export const SharingUpdate: msRest.CompositeMapper = { + serializedName: "SharingUpdate", + type: { + name: "Composite", + className: "SharingUpdate", + modelProperties: { + operationType: { + required: true, + serializedName: "operationType", + type: { + name: "String" + } + }, + groups: { + serializedName: "groups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharingProfileGroup" + } + } + } + } + } + } +}; + +export const PirResource: msRest.CompositeMapper = { + serializedName: "PirResource", + type: { + name: "Composite", + className: "PirResource", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const PirSharedGalleryResource: msRest.CompositeMapper = { + serializedName: "PirSharedGalleryResource", + type: { + name: "Composite", + className: "PirSharedGalleryResource", + modelProperties: { + ...PirResource.type.modelProperties, + uniqueId: { + serializedName: "identifier.uniqueId", + type: { + name: "String" + } + } + } + } +}; + +export const SharedGallery: msRest.CompositeMapper = { + serializedName: "SharedGallery", + type: { + name: "Composite", + className: "SharedGallery", + modelProperties: { + ...PirSharedGalleryResource.type.modelProperties + } + } +}; + +export const SharedGalleryImage: msRest.CompositeMapper = { + serializedName: "SharedGalleryImage", + type: { + name: "Composite", + className: "SharedGalleryImage", + modelProperties: { + ...PirSharedGalleryResource.type.modelProperties, + osType: { + required: true, + serializedName: "properties.osType", + type: { + name: "Enum", + allowedValues: [ + "Windows", + "Linux" + ] + } + }, + osState: { + required: true, + serializedName: "properties.osState", + type: { + name: "Enum", + allowedValues: [ + "Generalized", + "Specialized" + ] + } + }, + endOfLifeDate: { + serializedName: "properties.endOfLifeDate", + type: { + name: "DateTime" + } + }, + identifier: { + required: true, + serializedName: "properties.identifier", + type: { + name: "Composite", + className: "GalleryImageIdentifier" + } + }, + recommended: { + serializedName: "properties.recommended", + type: { + name: "Composite", + className: "RecommendedMachineConfiguration" + } + }, + disallowed: { + serializedName: "properties.disallowed", + type: { + name: "Composite", + className: "Disallowed" + } + }, + hyperVGeneration: { + serializedName: "properties.hyperVGeneration", + type: { + name: "String" + } + }, + features: { + serializedName: "properties.features", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryImageFeature" + } + } + } + }, + purchasePlan: { + serializedName: "properties.purchasePlan", + type: { + name: "Composite", + className: "ImagePurchasePlan" + } + } + } + } +}; + +export const SharedGalleryImageVersion: msRest.CompositeMapper = { + serializedName: "SharedGalleryImageVersion", + type: { + name: "Composite", + className: "SharedGalleryImageVersion", + modelProperties: { + ...PirSharedGalleryResource.type.modelProperties, + publishedDate: { + serializedName: "properties.publishedDate", + type: { + name: "DateTime" + } + }, + endOfLifeDate: { + serializedName: "properties.endOfLifeDate", + type: { + name: "DateTime" + } + } + } + } +}; + export const ContainerServiceCustomProfile: msRest.CompositeMapper = { serializedName: "ContainerServiceCustomProfile", type: { @@ -10676,6 +11298,35 @@ export const RunCommandListResult: msRest.CompositeMapper = { } }; +export const VirtualMachineRunCommandsListResult: msRest.CompositeMapper = { + serializedName: "VirtualMachineRunCommandsListResult", + type: { + name: "Composite", + className: "VirtualMachineRunCommandsListResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineRunCommand" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const ResourceSkusResult: msRest.CompositeMapper = { serializedName: "ResourceSkusResult", type: { @@ -10994,6 +11645,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/parameters.ts b/sdk/compute/arm-compute/src/models/parameters.ts index 30115323b65c..cdd7a307ff39 100644 --- a/sdk/compute/arm-compute/src/models/parameters.ts +++ b/sdk/compute/arm-compute/src/models/parameters.ts @@ -62,7 +62,7 @@ export const apiVersion3: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2019-12-01', + defaultValue: '2020-09-30', type: { name: "String" } @@ -179,6 +179,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 +241,16 @@ export const galleryName: msRest.OperationURLParameter = { } } }; +export const galleryUniqueName: msRest.OperationURLParameter = { + parameterPath: "galleryUniqueName", + mapper: { + required: true, + serializedName: "galleryUniqueName", + type: { + name: "String" + } + } +}; export const hostGroupName: msRest.OperationURLParameter = { parameterPath: "hostGroupName", mapper: { @@ -377,6 +399,16 @@ export const resourceGroupName: msRest.OperationURLParameter = { } } }; +export const runCommandName: msRest.OperationURLParameter = { + parameterPath: "runCommandName", + mapper: { + required: true, + serializedName: "runCommandName", + type: { + name: "String" + } + } +}; export const sasUriExpirationTimeInMinutes: msRest.OperationQueryParameter = { parameterPath: [ "options", @@ -401,6 +433,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..d314351b2b71 100644 --- a/sdk/compute/arm-compute/src/models/proximityPlacementGroupsMappers.ts +++ b/sdk/compute/arm-compute/src/models/proximityPlacementGroupsMappers.ts @@ -77,6 +77,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -129,10 +130,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -150,6 +155,7 @@ export { UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -169,6 +175,10 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, 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..03afbdd590a3 --- /dev/null +++ b/sdk/compute/arm-compute/src/models/sharedGalleriesMappers.ts @@ -0,0 +1,26 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +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..628e646dee84 --- /dev/null +++ b/sdk/compute/arm-compute/src/models/sharedGalleryImageVersionsMappers.ts @@ -0,0 +1,26 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +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..00f09768fac8 --- /dev/null +++ b/sdk/compute/arm-compute/src/models/sharedGalleryImagesMappers.ts @@ -0,0 +1,26 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +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..965994436d55 100644 --- a/sdk/compute/arm-compute/src/models/snapshotsMappers.ts +++ b/sdk/compute/arm-compute/src/models/snapshotsMappers.ts @@ -75,6 +75,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -125,10 +126,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotList, @@ -146,6 +151,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -164,6 +170,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, diff --git a/sdk/compute/arm-compute/src/models/sshPublicKeysMappers.ts b/sdk/compute/arm-compute/src/models/sshPublicKeysMappers.ts index 634c39bf3870..c79c23e2f131 100644 --- a/sdk/compute/arm-compute/src/models/sshPublicKeysMappers.ts +++ b/sdk/compute/arm-compute/src/models/sshPublicKeysMappers.ts @@ -77,6 +77,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -128,10 +129,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -151,6 +156,7 @@ export { UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -170,6 +176,10 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts index 94265b583cca..3b4abcb10717 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts @@ -74,6 +74,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -123,10 +124,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -142,6 +147,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -160,6 +166,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts index 6299932f5dcc..68daf2d98884 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts @@ -77,6 +77,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -128,10 +129,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -149,6 +154,7 @@ export { UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -169,6 +175,10 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts index 94265b583cca..3b4abcb10717 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts @@ -74,6 +74,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -123,10 +124,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -142,6 +147,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -160,6 +166,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineRunCommandsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineRunCommandsMappers.ts index 2bcbd6209547..dc19a2f86fdf 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineRunCommandsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineRunCommandsMappers.ts @@ -7,9 +7,216 @@ */ export { + AdditionalCapabilities, + AdditionalUnattendContent, + ApiEntityReference, + ApiError, + ApiErrorBase, + AutomaticOSUpgradePolicy, + AutomaticOSUpgradeProperties, + AutomaticRepairsPolicy, + AvailabilitySet, + AvailabilitySetUpdate, + AvailablePatchSummary, + BaseResource, + BillingProfile, + BootDiagnostics, + BootDiagnosticsInstanceView, CloudError, + ContainerService, + ContainerServiceAgentPoolProfile, + ContainerServiceCustomProfile, + ContainerServiceDiagnosticsProfile, + ContainerServiceLinuxProfile, + ContainerServiceMasterProfile, + ContainerServiceOrchestratorProfile, + ContainerServiceServicePrincipalProfile, + ContainerServiceSshConfiguration, + ContainerServiceSshPublicKey, + ContainerServiceVMDiagnostics, + ContainerServiceWindowsProfile, + CreationData, + DataDisk, + DataDiskImage, + DataDiskImageEncryption, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupInstanceView, + DedicatedHostGroupUpdate, + DedicatedHostInstanceView, + DedicatedHostInstanceViewWithName, + DedicatedHostUpdate, + DiagnosticsProfile, + DiffDiskSettings, + Disallowed, + DisallowedConfiguration, + Disk, + DiskAccess, + DiskEncryptionSet, + DiskEncryptionSetParameters, + DiskEncryptionSettings, + DiskImageEncryption, + DiskInstanceView, + DiskSku, + Encryption, + EncryptionImages, + EncryptionSetIdentity, + EncryptionSettingsCollection, + EncryptionSettingsElement, + Gallery, + GalleryApplication, + GalleryApplicationUpdate, + GalleryApplicationVersion, + GalleryApplicationVersionPublishingProfile, + GalleryApplicationVersionUpdate, + GalleryArtifactPublishingProfileBase, + GalleryArtifactVersionSource, + GalleryDataDiskImage, + GalleryDiskImage, + GalleryIdentifier, + GalleryImage, + GalleryImageFeature, + GalleryImageIdentifier, + GalleryImageUpdate, + GalleryImageVersion, + GalleryImageVersionPublishingProfile, + GalleryImageVersionStorageProfile, + GalleryImageVersionUpdate, + GalleryOSDiskImage, + GalleryUpdate, + HardwareProfile, + Image, + ImageDataDisk, + ImageDisk, + ImageDiskReference, + ImageOSDisk, + ImagePurchasePlan, + ImageReference, + ImageStorageProfile, + ImageUpdate, + InnerError, + InstanceViewStatus, + KeyVaultAndKeyReference, + KeyVaultAndSecretReference, + KeyVaultKeyReference, + KeyVaultSecretReference, + LastPatchInstallationSummary, + LinuxConfiguration, + MaintenanceRedeployStatus, + ManagedDiskParameters, + NetworkInterfaceReference, + NetworkProfile, + OSDisk, + OSDiskImage, + OSDiskImageEncryption, + OSProfile, + PatchSettings, + Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, + ProximityPlacementGroup, + ProximityPlacementGroupUpdate, + PurchasePlan, + RecommendedMachineConfiguration, + RegionalReplicationStatus, + ReplicationStatus, + Resource, + ResourceRange, + RollingUpgradePolicy, + RollingUpgradeProgressInfo, + RollingUpgradeRunningStatus, + RollingUpgradeStatusInfo, RunCommandDocument, RunCommandDocumentBase, + RunCommandInputParameter, RunCommandListResult, - RunCommandParameterDefinition + RunCommandParameterDefinition, + ScaleInPolicy, + ScheduledEventsProfile, + SecurityProfile, + ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, + Sku, + Snapshot, + SnapshotSku, + SourceVault, + SshConfiguration, + SshPublicKey, + SshPublicKeyResource, + SshPublicKeyUpdateResource, + StorageProfile, + SubResource, + SubResourceReadOnly, + SubResourceWithColocationStatus, + TargetRegion, + TerminateNotificationProfile, + UpdateResource, + UpdateResourceDefinition, + UpgradePolicy, + UserArtifactManage, + UserArtifactSource, + VaultCertificate, + VaultSecretGroup, + VirtualHardDisk, + VirtualMachine, + VirtualMachineAgentInstanceView, + VirtualMachineCaptureResult, + VirtualMachineExtension, + VirtualMachineExtensionHandlerInstanceView, + VirtualMachineExtensionImage, + VirtualMachineExtensionInstanceView, + VirtualMachineExtensionUpdate, + VirtualMachineHealthStatus, + VirtualMachineIdentity, + VirtualMachineIdentityUserAssignedIdentitiesValue, + VirtualMachineImage, + VirtualMachineImageResource, + VirtualMachineInstanceView, + VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandsListResult, + VirtualMachineRunCommandUpdate, + VirtualMachineScaleSet, + VirtualMachineScaleSetDataDisk, + VirtualMachineScaleSetExtension, + VirtualMachineScaleSetExtensionProfile, + VirtualMachineScaleSetExtensionUpdate, + VirtualMachineScaleSetIdentity, + VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue, + VirtualMachineScaleSetIPConfiguration, + VirtualMachineScaleSetIpTag, + VirtualMachineScaleSetManagedDiskParameters, + VirtualMachineScaleSetNetworkConfiguration, + VirtualMachineScaleSetNetworkConfigurationDnsSettings, + VirtualMachineScaleSetNetworkProfile, + VirtualMachineScaleSetOSDisk, + VirtualMachineScaleSetOSProfile, + VirtualMachineScaleSetPublicIPAddressConfiguration, + VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, + VirtualMachineScaleSetStorageProfile, + VirtualMachineScaleSetUpdate, + VirtualMachineScaleSetUpdateIPConfiguration, + VirtualMachineScaleSetUpdateNetworkConfiguration, + VirtualMachineScaleSetUpdateNetworkProfile, + VirtualMachineScaleSetUpdateOSDisk, + VirtualMachineScaleSetUpdateOSProfile, + VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, + VirtualMachineScaleSetUpdateStorageProfile, + VirtualMachineScaleSetUpdateVMProfile, + VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMInstanceView, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProfile, + VirtualMachineScaleSetVMProtectionPolicy, + VirtualMachineUpdate, + WindowsConfiguration, + WinRMConfiguration, + WinRMListener } from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts index b97e1690a27a..af4da68d79b1 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts @@ -74,6 +74,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -123,10 +124,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -142,6 +147,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -160,6 +166,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts index 94265b583cca..3b4abcb10717 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts @@ -74,6 +74,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -123,10 +124,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -142,6 +147,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -160,6 +166,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.ts index 6299932f5dcc..68daf2d98884 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.ts @@ -77,6 +77,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -128,10 +129,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -149,6 +154,7 @@ export { UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -169,6 +175,10 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMRunCommandsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMRunCommandsMappers.ts new file mode 100644 index 000000000000..11571ef9c046 --- /dev/null +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMRunCommandsMappers.ts @@ -0,0 +1,218 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + AdditionalCapabilities, + AdditionalUnattendContent, + ApiEntityReference, + ApiError, + ApiErrorBase, + AutomaticOSUpgradePolicy, + AutomaticOSUpgradeProperties, + AutomaticRepairsPolicy, + AvailabilitySet, + AvailabilitySetUpdate, + AvailablePatchSummary, + BaseResource, + BillingProfile, + BootDiagnostics, + BootDiagnosticsInstanceView, + CloudError, + ContainerService, + ContainerServiceAgentPoolProfile, + ContainerServiceCustomProfile, + ContainerServiceDiagnosticsProfile, + ContainerServiceLinuxProfile, + ContainerServiceMasterProfile, + ContainerServiceOrchestratorProfile, + ContainerServiceServicePrincipalProfile, + ContainerServiceSshConfiguration, + ContainerServiceSshPublicKey, + ContainerServiceVMDiagnostics, + ContainerServiceWindowsProfile, + CreationData, + DataDisk, + DataDiskImage, + DataDiskImageEncryption, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupInstanceView, + DedicatedHostGroupUpdate, + DedicatedHostInstanceView, + DedicatedHostInstanceViewWithName, + DedicatedHostUpdate, + DiagnosticsProfile, + DiffDiskSettings, + Disallowed, + DisallowedConfiguration, + Disk, + DiskAccess, + DiskEncryptionSet, + DiskEncryptionSetParameters, + DiskEncryptionSettings, + DiskImageEncryption, + DiskInstanceView, + DiskSku, + Encryption, + EncryptionImages, + EncryptionSetIdentity, + EncryptionSettingsCollection, + EncryptionSettingsElement, + Gallery, + GalleryApplication, + GalleryApplicationUpdate, + GalleryApplicationVersion, + GalleryApplicationVersionPublishingProfile, + GalleryApplicationVersionUpdate, + GalleryArtifactPublishingProfileBase, + GalleryArtifactVersionSource, + GalleryDataDiskImage, + GalleryDiskImage, + GalleryIdentifier, + GalleryImage, + GalleryImageFeature, + GalleryImageIdentifier, + GalleryImageUpdate, + GalleryImageVersion, + GalleryImageVersionPublishingProfile, + GalleryImageVersionStorageProfile, + GalleryImageVersionUpdate, + GalleryOSDiskImage, + GalleryUpdate, + HardwareProfile, + Image, + ImageDataDisk, + ImageDisk, + ImageDiskReference, + ImageOSDisk, + ImagePurchasePlan, + ImageReference, + ImageStorageProfile, + ImageUpdate, + InnerError, + InstanceViewStatus, + KeyVaultAndKeyReference, + KeyVaultAndSecretReference, + KeyVaultKeyReference, + KeyVaultSecretReference, + LastPatchInstallationSummary, + LinuxConfiguration, + MaintenanceRedeployStatus, + ManagedDiskParameters, + NetworkInterfaceReference, + NetworkProfile, + OSDisk, + OSDiskImage, + OSDiskImageEncryption, + OSProfile, + PatchSettings, + Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, + ProximityPlacementGroup, + ProximityPlacementGroupUpdate, + PurchasePlan, + RecommendedMachineConfiguration, + RegionalReplicationStatus, + ReplicationStatus, + Resource, + ResourceRange, + RollingUpgradePolicy, + RollingUpgradeProgressInfo, + RollingUpgradeRunningStatus, + RollingUpgradeStatusInfo, + RunCommandInputParameter, + ScaleInPolicy, + ScheduledEventsProfile, + SecurityProfile, + ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, + Sku, + Snapshot, + SnapshotSku, + SourceVault, + SshConfiguration, + SshPublicKey, + SshPublicKeyResource, + SshPublicKeyUpdateResource, + StorageProfile, + SubResource, + SubResourceReadOnly, + SubResourceWithColocationStatus, + TargetRegion, + TerminateNotificationProfile, + UpdateResource, + UpdateResourceDefinition, + UpgradePolicy, + UserArtifactManage, + UserArtifactSource, + VaultCertificate, + VaultSecretGroup, + VirtualHardDisk, + VirtualMachine, + VirtualMachineAgentInstanceView, + VirtualMachineCaptureResult, + VirtualMachineExtension, + VirtualMachineExtensionHandlerInstanceView, + VirtualMachineExtensionImage, + VirtualMachineExtensionInstanceView, + VirtualMachineExtensionUpdate, + VirtualMachineHealthStatus, + VirtualMachineIdentity, + VirtualMachineIdentityUserAssignedIdentitiesValue, + VirtualMachineImage, + VirtualMachineImageResource, + VirtualMachineInstanceView, + VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandsListResult, + VirtualMachineRunCommandUpdate, + VirtualMachineScaleSet, + VirtualMachineScaleSetDataDisk, + VirtualMachineScaleSetExtension, + VirtualMachineScaleSetExtensionProfile, + VirtualMachineScaleSetExtensionUpdate, + VirtualMachineScaleSetIdentity, + VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue, + VirtualMachineScaleSetIPConfiguration, + VirtualMachineScaleSetIpTag, + VirtualMachineScaleSetManagedDiskParameters, + VirtualMachineScaleSetNetworkConfiguration, + VirtualMachineScaleSetNetworkConfigurationDnsSettings, + VirtualMachineScaleSetNetworkProfile, + VirtualMachineScaleSetOSDisk, + VirtualMachineScaleSetOSProfile, + VirtualMachineScaleSetPublicIPAddressConfiguration, + VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, + VirtualMachineScaleSetStorageProfile, + VirtualMachineScaleSetUpdate, + VirtualMachineScaleSetUpdateIPConfiguration, + VirtualMachineScaleSetUpdateNetworkConfiguration, + VirtualMachineScaleSetUpdateNetworkProfile, + VirtualMachineScaleSetUpdateOSDisk, + VirtualMachineScaleSetUpdateOSProfile, + VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, + VirtualMachineScaleSetUpdateStorageProfile, + VirtualMachineScaleSetUpdateVMProfile, + VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMInstanceView, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProfile, + VirtualMachineScaleSetVMProtectionPolicy, + VirtualMachineUpdate, + WindowsConfiguration, + WinRMConfiguration, + WinRMListener +} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts index 5a4992a8918f..1fa3acb81079 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts @@ -74,6 +74,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -131,6 +132,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -146,6 +150,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -165,6 +170,9 @@ export { VirtualMachineInstanceView, VirtualMachinePatchStatus, VirtualMachineReimageParameters, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts index 7ada9068e03d..968f927e9faa 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts @@ -77,6 +77,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -132,10 +133,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -156,6 +161,7 @@ export { UpgradeOperationHistoricalStatusInfoProperties, UpgradeOperationHistoryStatus, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -176,6 +182,10 @@ export { VirtualMachineInstanceView, VirtualMachinePatchStatus, VirtualMachineReimageParameters, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, diff --git a/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts index d2ce653f6004..29f24f0bc74a 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts @@ -77,6 +77,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -136,6 +137,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -153,6 +157,7 @@ export { UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -176,6 +181,10 @@ export { VirtualMachineListResult, VirtualMachinePatchStatus, VirtualMachineReimageParameters, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, diff --git a/sdk/compute/arm-compute/src/operations/galleries.ts b/sdk/compute/arm-compute/src/operations/galleries.ts index f5b3dd565142..1b5b9fdfee65 100644 --- a/sdk/compute/arm-compute/src/operations/galleries.ts +++ b/sdk/compute/arm-compute/src/operations/galleries.ts @@ -62,7 +62,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 +75,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 +279,8 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.galleryName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion3, + Parameters.select ], 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..1c5cf8e7b507 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts @@ -28,15 +28,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 +47,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 +65,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 +78,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 +108,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 +123,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 +162,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 +190,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 +217,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 +240,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 diff --git a/sdk/compute/arm-compute/src/operations/galleryImages.ts b/sdk/compute/arm-compute/src/operations/galleryImages.ts index bdc5ac10b2ce..d3c57588bd6f 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImages.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImages.ts @@ -28,11 +28,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 +45,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 +62,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 +75,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 +83,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 +105,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 +115,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 +150,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 +175,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 +204,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 +221,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 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..b6024acaf7c1 --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts @@ -0,0 +1,99 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/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/index.ts b/sdk/compute/arm-compute/src/operations/index.ts index be38385dadc1..8adf54a9686c 100644 --- a/sdk/compute/arm-compute/src/operations/index.ts +++ b/sdk/compute/arm-compute/src/operations/index.ts @@ -28,6 +28,7 @@ export * from "./virtualMachineScaleSetVMExtensions"; export * from "./virtualMachineScaleSetVMs"; export * from "./logAnalytics"; export * from "./virtualMachineRunCommands"; +export * from "./virtualMachineScaleSetVMRunCommands"; export * from "./resourceSkus"; export * from "./disks"; export * from "./snapshots"; @@ -38,4 +39,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/sharedGalleries.ts b/sdk/compute/arm-compute/src/operations/sharedGalleries.ts new file mode 100644 index 000000000000..c7a10ee86076 --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/sharedGalleries.ts @@ -0,0 +1,189 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as 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?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// 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 + ], + 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..dfb9ed075701 --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts @@ -0,0 +1,221 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as 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?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// 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 + ], + 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..793c75323c02 --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts @@ -0,0 +1,202 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as 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?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// 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 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedGalleryImageList + }, + 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..ba9c19fcae31 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/virtualMachineRunCommandsMappers"; import * as Parameters from "../models/parameters"; @@ -86,6 +87,181 @@ export class VirtualMachineRunCommands { callback) as Promise; } + /** + * The operation to create or update the run command. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine where the run command should be created or + * updated. + * @param runCommandName The name of the virtual machine run command. + * @param runCommand Parameters supplied to the Create Virtual Machine RunCommand operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, vmName: string, runCommandName: string, runCommand: Models.VirtualMachineRunCommand, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,vmName,runCommandName,runCommand,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * The operation to update the run command. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine where the run command should be updated. + * @param runCommandName The name of the virtual machine run command. + * @param runCommand Parameters supplied to the Update Virtual Machine RunCommand operation. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, vmName: string, runCommandName: string, runCommand: Models.VirtualMachineRunCommandUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,vmName,runCommandName,runCommand,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * The operation to delete the run command. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine where the run command should be deleted. + * @param runCommandName The name of the virtual machine run command. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, vmName: string, runCommandName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,vmName,runCommandName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * The operation to get the run command. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine containing the run command. + * @param runCommandName The name of the virtual machine run command. + * @param [options] The optional parameters + * @returns Promise + */ + getByVirtualMachine(resourceGroupName: string, vmName: string, runCommandName: string, options?: Models.VirtualMachineRunCommandsGetByVirtualMachineOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine containing the run command. + * @param runCommandName The name of the virtual machine run command. + * @param callback The callback + */ + getByVirtualMachine(resourceGroupName: string, vmName: string, runCommandName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine containing the run command. + * @param runCommandName The name of the virtual machine run command. + * @param options The optional parameters + * @param callback The callback + */ + getByVirtualMachine(resourceGroupName: string, vmName: string, runCommandName: string, options: Models.VirtualMachineRunCommandsGetByVirtualMachineOptionalParams, callback: msRest.ServiceCallback): void; + getByVirtualMachine(resourceGroupName: string, vmName: string, runCommandName: string, options?: Models.VirtualMachineRunCommandsGetByVirtualMachineOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + vmName, + runCommandName, + options + }, + getByVirtualMachineOperationSpec, + callback) as Promise; + } + + /** + * The operation to get all run commands of a Virtual Machine. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine containing the run command. + * @param [options] The optional parameters + * @returns Promise + */ + listByVirtualMachine(resourceGroupName: string, vmName: string, options?: Models.VirtualMachineRunCommandsListByVirtualMachineOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine containing the run command. + * @param callback The callback + */ + listByVirtualMachine(resourceGroupName: string, vmName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine containing the run command. + * @param options The optional parameters + * @param callback The callback + */ + listByVirtualMachine(resourceGroupName: string, vmName: string, options: Models.VirtualMachineRunCommandsListByVirtualMachineOptionalParams, callback: msRest.ServiceCallback): void; + listByVirtualMachine(resourceGroupName: string, vmName: string, options?: Models.VirtualMachineRunCommandsListByVirtualMachineOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + vmName, + options + }, + listByVirtualMachineOperationSpec, + callback) as Promise; + } + + /** + * The operation to create or update the run command. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine where the run command should be created or + * updated. + * @param runCommandName The name of the virtual machine run command. + * @param runCommand Parameters supplied to the Create Virtual Machine RunCommand operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, vmName: string, runCommandName: string, runCommand: Models.VirtualMachineRunCommand, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + vmName, + runCommandName, + runCommand, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * The operation to update the run command. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine where the run command should be updated. + * @param runCommandName The name of the virtual machine run command. + * @param runCommand Parameters supplied to the Update Virtual Machine RunCommand operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, vmName: string, runCommandName: string, runCommand: Models.VirtualMachineRunCommandUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + vmName, + runCommandName, + runCommand, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * The operation to delete the run command. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine where the run command should be deleted. + * @param runCommandName The name of the virtual machine run command. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, vmName: string, runCommandName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + vmName, + runCommandName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + /** * Lists all available run commands for a subscription in a location. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -113,6 +289,34 @@ export class VirtualMachineRunCommands { listNextOperationSpec, callback) as Promise; } + + /** + * The operation to get all run commands of a Virtual Machine. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByVirtualMachineNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByVirtualMachineNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByVirtualMachineNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByVirtualMachineNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByVirtualMachineNextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -166,6 +370,154 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; +const getByVirtualMachineOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.runCommandName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.expand0, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommand + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByVirtualMachineOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.expand0, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommandsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.runCommandName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "runCommand", + mapper: { + ...Mappers.VirtualMachineRunCommand, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommand + }, + 201: { + bodyMapper: Mappers.VirtualMachineRunCommand + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.runCommandName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "runCommand", + mapper: { + ...Mappers.VirtualMachineRunCommandUpdate, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommand + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.runCommandName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", @@ -186,3 +538,24 @@ const listNextOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listByVirtualMachineNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommandsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts new file mode 100644 index 000000000000..6e3b726a327e --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts @@ -0,0 +1,423 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/virtualMachineScaleSetVMRunCommandsMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a VirtualMachineScaleSetVMRunCommands. */ +export class VirtualMachineScaleSetVMRunCommands { + private readonly client: ComputeManagementClientContext; + + /** + * Create a VirtualMachineScaleSetVMRunCommands. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * The operation to create or update the VMSS VM run command. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param runCommandName The name of the virtual machine run command. + * @param runCommand Parameters supplied to the Create Virtual Machine RunCommand operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, runCommand: Models.VirtualMachineRunCommand, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,vmScaleSetName,instanceId,runCommandName,runCommand,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * The operation to update the VMSS VM run command. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param runCommandName The name of the virtual machine run command. + * @param runCommand Parameters supplied to the Update Virtual Machine RunCommand operation. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, runCommand: Models.VirtualMachineRunCommandUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,vmScaleSetName,instanceId,runCommandName,runCommand,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * The operation to delete the VMSS VM run command. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param runCommandName The name of the virtual machine run command. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,vmScaleSetName,instanceId,runCommandName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * The operation to get the VMSS VM run command. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param runCommandName The name of the virtual machine run command. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, options?: Models.VirtualMachineScaleSetVMRunCommandsGetOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param runCommandName The name of the virtual machine run command. + * @param callback The callback + */ + get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param runCommandName The name of the virtual machine run command. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, options: Models.VirtualMachineScaleSetVMRunCommandsGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, options?: Models.VirtualMachineScaleSetVMRunCommandsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + vmScaleSetName, + instanceId, + runCommandName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * The operation to get all run commands of an instance in Virtual Machine Scaleset. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: Models.VirtualMachineScaleSetVMRunCommandsListOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param callback The callback + */ + list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options: Models.VirtualMachineScaleSetVMRunCommandsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: Models.VirtualMachineScaleSetVMRunCommandsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + vmScaleSetName, + instanceId, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * The operation to create or update the VMSS VM run command. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param runCommandName The name of the virtual machine run command. + * @param runCommand Parameters supplied to the Create Virtual Machine RunCommand operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, runCommand: Models.VirtualMachineRunCommand, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + vmScaleSetName, + instanceId, + runCommandName, + runCommand, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * The operation to update the VMSS VM run command. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param runCommandName The name of the virtual machine run command. + * @param runCommand Parameters supplied to the Update Virtual Machine RunCommand operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, runCommand: Models.VirtualMachineRunCommandUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + vmScaleSetName, + instanceId, + runCommandName, + runCommand, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * The operation to delete the VMSS VM run command. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param runCommandName The name of the virtual machine run command. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + vmScaleSetName, + instanceId, + runCommandName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * The operation to get all run commands of an instance in Virtual Machine Scaleset. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmScaleSetName, + Parameters.instanceId, + Parameters.runCommandName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.expand0, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommand + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmScaleSetName, + Parameters.instanceId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.expand0, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommandsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmScaleSetName, + Parameters.instanceId, + Parameters.runCommandName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "runCommand", + mapper: { + ...Mappers.VirtualMachineRunCommand, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommand + }, + 201: { + bodyMapper: Mappers.VirtualMachineRunCommand + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmScaleSetName, + Parameters.instanceId, + Parameters.runCommandName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "runCommand", + mapper: { + ...Mappers.VirtualMachineRunCommandUpdate, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommand + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmScaleSetName, + Parameters.instanceId, + Parameters.runCommandName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommandsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachines.ts b/sdk/compute/arm-compute/src/operations/virtualMachines.ts index ce51df188f82..3ccec79f95c2 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachines.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachines.ts @@ -103,7 +103,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - deleteMethod(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise { + deleteMethod(resourceGroupName: string, vmName: string, options?: Models.VirtualMachinesDeleteMethodOptionalParams): Promise { return this.beginDeleteMethod(resourceGroupName,vmName,options) .then(lroPoller => lroPoller.pollUntilFinished()); } @@ -564,7 +564,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, @@ -1199,6 +1199,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ + Parameters.forceDeletion, Parameters.apiVersion0 ], headerParameters: [