From 288f5f5b6595bfdd1090b20de74be313e2c9d619 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 26 Mar 2021 00:35:19 +0000 Subject: [PATCH] CodeGen from PR 13655 in Azure/azure-rest-api-specs Merge b91b821a2d3c1edda75854cbe6e961e1f4d591ad into 0d832037c324f08da297bb292b5ad91c47f5fa23 --- .../src/computeManagementClient.ts | 8 + .../src/computeManagementClientContext.ts | 6 +- .../src/models/availabilitySetsMappers.ts | 4 + .../cloudServiceRoleInstancesMappers.ts | 4 + .../src/models/cloudServicesMappers.ts | 4 + .../src/models/dedicatedHostGroupsMappers.ts | 4 + .../src/models/dedicatedHostsMappers.ts | 4 + .../src/models/diskAccessesMappers.ts | 4 + .../src/models/diskEncryptionSetsMappers.ts | 4 + .../arm-compute/src/models/disksMappers.ts | 4 + .../src/models/galleriesMappers.ts | 4 + .../galleryApplicationVersionsMappers.ts | 4 + .../src/models/galleryApplicationsMappers.ts | 4 + .../src/models/galleryImageVersionsMappers.ts | 4 + .../src/models/galleryImagesMappers.ts | 4 + .../models/gallerySharingProfileMappers.ts | 215 +++++++ .../arm-compute/src/models/imagesMappers.ts | 4 + sdk/compute/arm-compute/src/models/index.ts | 593 +++++++++++++++++- sdk/compute/arm-compute/src/models/mappers.ts | 399 ++++++++++++ .../arm-compute/src/models/parameters.ts | 24 +- .../models/proximityPlacementGroupsMappers.ts | 4 + .../src/models/sharedGalleriesMappers.ts | 26 + .../sharedGalleryImageVersionsMappers.ts | 26 + .../src/models/sharedGalleryImagesMappers.ts | 26 + .../src/models/snapshotsMappers.ts | 4 + .../src/models/sshPublicKeysMappers.ts | 4 + .../virtualMachineExtensionImagesMappers.ts | 4 + .../models/virtualMachineExtensionsMappers.ts | 4 + .../virtualMachineImagesEdgeZoneMappers.ts | 4 + .../src/models/virtualMachineImagesMappers.ts | 4 + .../virtualMachineRunCommandsMappers.ts | 4 + ...virtualMachineScaleSetExtensionsMappers.ts | 4 + ...alMachineScaleSetRollingUpgradesMappers.ts | 4 + ...rtualMachineScaleSetVMExtensionsMappers.ts | 4 + ...tualMachineScaleSetVMRunCommandsMappers.ts | 4 + .../virtualMachineScaleSetVMsMappers.ts | 4 + .../models/virtualMachineScaleSetsMappers.ts | 4 + .../src/models/virtualMachinesMappers.ts | 4 + .../arm-compute/src/operations/galleries.ts | 9 +- .../src/operations/galleryImageVersions.ts | 62 +- .../src/operations/galleryImages.ts | 32 +- .../src/operations/gallerySharingProfile.ts | 98 +++ .../arm-compute/src/operations/index.ts | 4 + .../src/operations/sharedGalleries.ts | 192 ++++++ .../operations/sharedGalleryImageVersions.ts | 224 +++++++ .../src/operations/sharedGalleryImages.ts | 205 ++++++ 46 files changed, 2181 insertions(+), 84 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/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 diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index 23b3a6624ee8..81bbf12292f7 100644 --- a/sdk/compute/arm-compute/src/computeManagementClient.ts +++ b/sdk/compute/arm-compute/src/computeManagementClient.ts @@ -49,6 +49,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; cloudServiceRoleInstances: operations.CloudServiceRoleInstances; cloudServiceRoles: operations.CloudServiceRoles; cloudServices: operations.CloudServices; @@ -97,6 +101,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.cloudServiceRoleInstances = new operations.CloudServiceRoleInstances(this); this.cloudServiceRoles = new operations.CloudServiceRoles(this); this.cloudServices = new operations.CloudServices(this); diff --git a/sdk/compute/arm-compute/src/computeManagementClientContext.ts b/sdk/compute/arm-compute/src/computeManagementClientContext.ts index e1cd142fbab7..caaeadfb862e 100644 --- a/sdk/compute/arm-compute/src/computeManagementClientContext.ts +++ b/sdk/compute/arm-compute/src/computeManagementClientContext.ts @@ -36,7 +36,7 @@ export class ComputeManagementClientContext extends msRestAzure.AzureServiceClie if (!options) { options = {}; } - if (!options.userAgent) { + if(!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } @@ -50,10 +50,10 @@ export class ComputeManagementClientContext extends msRestAzure.AzureServiceClie this.credentials = credentials; this.subscriptionId = subscriptionId; - if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } } diff --git a/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts b/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts index 8aef1b3eed34..add29ec94d39 100644 --- a/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts +++ b/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts @@ -81,6 +81,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -144,6 +145,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, diff --git a/sdk/compute/arm-compute/src/models/cloudServiceRoleInstancesMappers.ts b/sdk/compute/arm-compute/src/models/cloudServiceRoleInstancesMappers.ts index 8057c287d782..7ef5b21d90ec 100644 --- a/sdk/compute/arm-compute/src/models/cloudServiceRoleInstancesMappers.ts +++ b/sdk/compute/arm-compute/src/models/cloudServiceRoleInstancesMappers.ts @@ -77,6 +77,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -145,6 +146,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, diff --git a/sdk/compute/arm-compute/src/models/cloudServicesMappers.ts b/sdk/compute/arm-compute/src/models/cloudServicesMappers.ts index 9f12cfbbea05..fd17baf5f039 100644 --- a/sdk/compute/arm-compute/src/models/cloudServicesMappers.ts +++ b/sdk/compute/arm-compute/src/models/cloudServicesMappers.ts @@ -80,6 +80,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -144,6 +145,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, diff --git a/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts b/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts index c736aba45b3a..51a03effec8f 100644 --- a/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts +++ b/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts @@ -81,6 +81,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -144,6 +145,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, diff --git a/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts b/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts index bde2995b4c09..8745c7f0ab10 100644 --- a/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts +++ b/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts @@ -81,6 +81,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -144,6 +145,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, diff --git a/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts b/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts index 367ca3b53d1e..f0fccacc9645 100644 --- a/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts +++ b/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts @@ -79,6 +79,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -143,6 +144,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, diff --git a/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts b/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts index 84c16446f38c..56c21affe3fd 100644 --- a/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts +++ b/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts @@ -79,6 +79,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -141,6 +142,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, diff --git a/sdk/compute/arm-compute/src/models/disksMappers.ts b/sdk/compute/arm-compute/src/models/disksMappers.ts index f471a7f09f1c..a525b1f09f2a 100644 --- a/sdk/compute/arm-compute/src/models/disksMappers.ts +++ b/sdk/compute/arm-compute/src/models/disksMappers.ts @@ -80,6 +80,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -142,6 +143,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, diff --git a/sdk/compute/arm-compute/src/models/galleriesMappers.ts b/sdk/compute/arm-compute/src/models/galleriesMappers.ts index dc086f47241f..61e20eafb54d 100644 --- a/sdk/compute/arm-compute/src/models/galleriesMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleriesMappers.ts @@ -77,6 +77,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -139,6 +140,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, diff --git a/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts b/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts index 372d9958c67f..929aebb18e99 100644 --- a/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts @@ -78,6 +78,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -139,6 +140,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, diff --git a/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts b/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts index bc330fba6b11..bdd0450dd802 100644 --- a/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts @@ -78,6 +78,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -139,6 +140,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, diff --git a/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts b/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts index 936cae5783c9..a32d09d9a41e 100644 --- a/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts @@ -77,6 +77,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -139,6 +140,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, diff --git a/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts b/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts index 60b965fa1e52..bcfb1d1bd763 100644 --- a/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts @@ -77,6 +77,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageList, GalleryImageUpdate, @@ -139,6 +140,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, 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..2d73108c915a --- /dev/null +++ b/sdk/compute/arm-compute/src/models/gallerySharingProfileMappers.ts @@ -0,0 +1,215 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + AdditionalCapabilities, + AdditionalUnattendContent, + ApiEntityReference, + ApiError, + ApiErrorBase, + AutomaticOSUpgradePolicy, + AutomaticOSUpgradeProperties, + AutomaticRepairsPolicy, + AvailabilitySet, + AvailablePatchSummary, + BaseResource, + BillingProfile, + BootDiagnostics, + BootDiagnosticsInstanceView, + CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, + CreationData, + DataDisk, + DataDiskImage, + DataDiskImageEncryption, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupInstanceView, + DedicatedHostInstanceView, + DedicatedHostInstanceViewWithName, + DiagnosticsProfile, + DiffDiskSettings, + Disallowed, + DisallowedConfiguration, + Disk, + DiskAccess, + DiskEncryptionSet, + DiskEncryptionSetParameters, + DiskEncryptionSettings, + DiskImageEncryption, + DiskInstanceView, + DiskSecurityProfile, + DiskSku, + Encryption, + EncryptionImages, + EncryptionSetIdentity, + EncryptionSettingsCollection, + EncryptionSettingsElement, + ExtendedLocation, + Extension, + 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, + KeyForDiskEncryptionSet, + KeyVaultAndKeyReference, + KeyVaultAndSecretReference, + KeyVaultKeyReference, + KeyVaultSecretReference, + LastPatchInstallationSummary, + LinuxConfiguration, + LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, + MaintenanceRedeployStatus, + ManagedDiskParameters, + NetworkInterfaceReference, + NetworkProfile, + OSDisk, + OSDiskImage, + OSDiskImageEncryption, + OSProfile, + PatchSettings, + Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, + PropertyUpdatesInProgress, + 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, + UefiSettings, + UpdateResourceDefinition, + UpgradePolicy, + UserArtifactManage, + UserArtifactSource, + VaultCertificate, + VaultSecretGroup, + VirtualHardDisk, + VirtualMachine, + VirtualMachineAgentInstanceView, + VirtualMachineCaptureResult, + VirtualMachineExtension, + VirtualMachineExtensionHandlerInstanceView, + VirtualMachineExtensionImage, + VirtualMachineExtensionInstanceView, + VirtualMachineHealthStatus, + VirtualMachineIdentity, + VirtualMachineIdentityUserAssignedIdentitiesValue, + VirtualMachineImage, + VirtualMachineImageFeature, + VirtualMachineImageResource, + VirtualMachineInstanceView, + VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineScaleSet, + VirtualMachineScaleSetDataDisk, + VirtualMachineScaleSetExtension, + VirtualMachineScaleSetExtensionProfile, + VirtualMachineScaleSetExtensionUpdate, + VirtualMachineScaleSetIdentity, + VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue, + VirtualMachineScaleSetIPConfiguration, + VirtualMachineScaleSetIpTag, + VirtualMachineScaleSetManagedDiskParameters, + VirtualMachineScaleSetNetworkConfiguration, + VirtualMachineScaleSetNetworkConfigurationDnsSettings, + VirtualMachineScaleSetNetworkProfile, + VirtualMachineScaleSetOSDisk, + VirtualMachineScaleSetOSProfile, + VirtualMachineScaleSetPublicIPAddressConfiguration, + VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, + VirtualMachineScaleSetStorageProfile, + VirtualMachineScaleSetUpdateIPConfiguration, + VirtualMachineScaleSetUpdateNetworkConfiguration, + VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, + VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, + VirtualMachineScaleSetVMInstanceView, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProfile, + VirtualMachineScaleSetVMProtectionPolicy, + WindowsConfiguration, + WinRMConfiguration, + WinRMListener +} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/imagesMappers.ts b/sdk/compute/arm-compute/src/models/imagesMappers.ts index 3ec781e33572..2bce754b4b38 100644 --- a/sdk/compute/arm-compute/src/models/imagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/imagesMappers.ts @@ -80,6 +80,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -144,6 +145,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, diff --git a/sdk/compute/arm-compute/src/models/index.ts b/sdk/compute/arm-compute/src/models/index.ts index 0bfcc2540a51..c2d458aa8cef 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -6495,6 +6495,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. */ @@ -6511,6 +6544,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; } /** @@ -6554,6 +6588,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; } /** @@ -6679,12 +6714,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; @@ -6712,7 +6747,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; @@ -6735,7 +6770,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 { /** @@ -6788,19 +6823,19 @@ export interface GalleryApplicationVersionUpdate extends UpdateResourceDefinitio } /** - * This is the gallery Image Definition identifier. + * 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; } @@ -6839,7 +6874,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 { /** @@ -6857,15 +6892,29 @@ export interface ImagePurchasePlan { } /** - * Specifies information about the gallery Image Definition that you want to create or update. + * 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; +} + +/** + * 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; /** @@ -6893,7 +6942,7 @@ export interface GalleryImage extends Resource { */ hyperVGeneration?: HyperVGeneration; /** - * The end of life date of the gallery Image Definition. This property can be used for + * The end of life date of the gallery image definition. This property can be used for * decommissioning purposes. This property is updatable. */ endOfLifeDate?: Date; @@ -6902,24 +6951,28 @@ 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.** */ readonly provisioningState?: ProvisioningState2; + /** + * A list of gallery image features. + */ + features?: GalleryImageFeature[]; } /** - * 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; /** @@ -6947,7 +7000,7 @@ export interface GalleryImageUpdate extends UpdateResourceDefinition { */ hyperVGeneration?: HyperVGeneration; /** - * The end of life date of the gallery Image Definition. This property can be used for + * The end of life date of the gallery image definition. This property can be used for * decommissioning purposes. This property is updatable. */ endOfLifeDate?: Date; @@ -6956,16 +7009,20 @@ 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.** */ readonly provisioningState?: ProvisioningState2; + /** + * A list of gallery image features. + */ + features?: GalleryImageFeature[]; } /** - * The publishing profile of a gallery Image Version. + * The publishing profile of a gallery image Version. */ export interface GalleryImageVersionPublishingProfile extends GalleryArtifactPublishingProfileBase { } @@ -6975,10 +7032,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; } /** @@ -7029,12 +7090,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.** @@ -7048,12 +7109,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.** @@ -7144,6 +7205,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; +} + /** * An interface representing InstanceSku. */ @@ -8541,6 +8701,16 @@ export interface ResourceSkusListNextOptionalParams extends msRest.RequestOption 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. */ @@ -8561,6 +8731,72 @@ export interface GalleryApplicationVersionsGetOptionalParams extends msRest.Requ expand?: ReplicationStatusTypes; } +/** + * Optional Parameters. + */ +export interface SharedGalleriesListOptionalParams extends msRest.RequestOptionsBase { + /** + * The query parameter to decide what shared galleries to fetch when doing listing operations. + * Possible values include: 'tenant' + */ + sharedTo?: SharedToValues; +} + +/** + * Optional Parameters. + */ +export interface SharedGalleriesListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query parameter to decide what shared galleries to fetch when doing listing operations. + * Possible values include: 'tenant' + */ + sharedTo?: SharedToValues; +} + +/** + * Optional Parameters. + */ +export interface SharedGalleryImagesListOptionalParams extends msRest.RequestOptionsBase { + /** + * The query parameter to decide what shared galleries to fetch when doing listing operations. + * Possible values include: 'tenant' + */ + sharedTo?: SharedToValues; +} + +/** + * Optional Parameters. + */ +export interface SharedGalleryImagesListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query parameter to decide what shared galleries to fetch when doing listing operations. + * Possible values include: 'tenant' + */ + sharedTo?: SharedToValues; +} + +/** + * Optional Parameters. + */ +export interface SharedGalleryImageVersionsListOptionalParams extends msRest.RequestOptionsBase { + /** + * The query parameter to decide what shared galleries to fetch when doing listing operations. + * Possible values include: 'tenant' + */ + sharedTo?: SharedToValues; +} + +/** + * Optional Parameters. + */ +export interface SharedGalleryImageVersionsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query parameter to decide what shared galleries to fetch when doing listing operations. + * Possible values include: 'tenant' + */ + sharedTo?: SharedToValues; +} + /** * Optional Parameters. */ @@ -9065,7 +9301,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; } @@ -9077,8 +9313,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; } @@ -9109,6 +9345,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 * An interface representing the RoleInstanceListResult. @@ -9732,6 +10007,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' @@ -9764,6 +10055,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 CloudServiceUpgradeMode. * Possible values include: 'Auto', 'Manual', 'Simultaneous' @@ -9780,6 +10079,14 @@ export type CloudServiceUpgradeMode = 'Auto' | 'Manual' | 'Simultaneous'; */ 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' @@ -9788,6 +10095,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' @@ -14660,6 +14975,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 get operation. */ diff --git a/sdk/compute/arm-compute/src/models/mappers.ts b/sdk/compute/arm-compute/src/models/mappers.ts index 462dc5d43310..2baed26b88e6 100644 --- a/sdk/compute/arm-compute/src/models/mappers.ts +++ b/sdk/compute/arm-compute/src/models/mappers.ts @@ -9950,6 +9950,62 @@ export const GalleryIdentifier: msRest.CompositeMapper = { } }; +export const SharingProfileGroup: msRest.CompositeMapper = { + serializedName: "SharingProfileGroup", + type: { + name: "Composite", + className: "SharingProfileGroup", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } + }, + ids: { + serializedName: "ids", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const SharingProfile: msRest.CompositeMapper = { + serializedName: "SharingProfile", + type: { + name: "Composite", + className: "SharingProfile", + modelProperties: { + permissions: { + serializedName: "permissions", + type: { + name: "String" + } + }, + groups: { + readOnly: true, + serializedName: "groups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharingProfileGroup" + } + } + } + } + } + } +}; + export const Gallery: msRest.CompositeMapper = { serializedName: "Gallery", type: { @@ -9976,6 +10032,13 @@ export const Gallery: msRest.CompositeMapper = { type: { name: "String" } + }, + sharingProfile: { + serializedName: "properties.sharingProfile", + type: { + name: "Composite", + className: "SharingProfile" + } } } } @@ -10049,6 +10112,13 @@ export const GalleryUpdate: msRest.CompositeMapper = { type: { name: "String" } + }, + sharingProfile: { + serializedName: "properties.sharingProfile", + type: { + name: "Composite", + className: "SharingProfile" + } } } } @@ -10558,6 +10628,28 @@ export const ImagePurchasePlan: 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 GalleryImage: msRest.CompositeMapper = { serializedName: "GalleryImage", type: { @@ -10658,6 +10750,18 @@ export const GalleryImage: msRest.CompositeMapper = { type: { name: "String" } + }, + features: { + serializedName: "properties.features", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryImageFeature" + } + } + } } } } @@ -10763,6 +10867,18 @@ export const GalleryImageUpdate: msRest.CompositeMapper = { type: { name: "String" } + }, + features: { + serializedName: "properties.features", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryImageFeature" + } + } + } } } } @@ -10790,6 +10906,12 @@ export const GalleryArtifactVersionSource: msRest.CompositeMapper = { type: { name: "String" } + }, + uri: { + serializedName: "uri", + type: { + name: "String" + } } } } @@ -11122,6 +11244,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 InstanceSku: msRest.CompositeMapper = { serializedName: "InstanceSku", type: { @@ -13250,6 +13562,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 RoleInstanceListResult: msRest.CompositeMapper = { serializedName: "RoleInstanceListResult", type: { diff --git a/sdk/compute/arm-compute/src/models/parameters.ts b/sdk/compute/arm-compute/src/models/parameters.ts index 9b890809faa8..8c09d4582c38 100644 --- a/sdk/compute/arm-compute/src/models/parameters.ts +++ b/sdk/compute/arm-compute/src/models/parameters.ts @@ -49,7 +49,7 @@ export const apiVersion2: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2019-12-01', + defaultValue: '2020-09-30', type: { name: "String" } @@ -248,6 +248,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: { @@ -490,6 +500,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 3a902fd5bb59..af1fe359c945 100644 --- a/sdk/compute/arm-compute/src/models/proximityPlacementGroupsMappers.ts +++ b/sdk/compute/arm-compute/src/models/proximityPlacementGroupsMappers.ts @@ -80,6 +80,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -144,6 +145,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, diff --git a/sdk/compute/arm-compute/src/models/sharedGalleriesMappers.ts b/sdk/compute/arm-compute/src/models/sharedGalleriesMappers.ts new file mode 100644 index 000000000000..ce674aba8515 --- /dev/null +++ b/sdk/compute/arm-compute/src/models/sharedGalleriesMappers.ts @@ -0,0 +1,26 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + ApiError, + ApiErrorBase, + CloudError, + Disallowed, + GalleryImageFeature, + GalleryImageIdentifier, + ImagePurchasePlan, + InnerError, + PirResource, + PirSharedGalleryResource, + RecommendedMachineConfiguration, + ResourceRange, + SharedGallery, + SharedGalleryImage, + SharedGalleryImageVersion, + SharedGalleryList +} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/sharedGalleryImageVersionsMappers.ts b/sdk/compute/arm-compute/src/models/sharedGalleryImageVersionsMappers.ts new file mode 100644 index 000000000000..45b623b19c9d --- /dev/null +++ b/sdk/compute/arm-compute/src/models/sharedGalleryImageVersionsMappers.ts @@ -0,0 +1,26 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + ApiError, + ApiErrorBase, + CloudError, + Disallowed, + GalleryImageFeature, + GalleryImageIdentifier, + ImagePurchasePlan, + InnerError, + PirResource, + PirSharedGalleryResource, + RecommendedMachineConfiguration, + ResourceRange, + SharedGallery, + SharedGalleryImage, + SharedGalleryImageVersion, + SharedGalleryImageVersionList +} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/sharedGalleryImagesMappers.ts b/sdk/compute/arm-compute/src/models/sharedGalleryImagesMappers.ts new file mode 100644 index 000000000000..b5cecede4fdd --- /dev/null +++ b/sdk/compute/arm-compute/src/models/sharedGalleryImagesMappers.ts @@ -0,0 +1,26 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + ApiError, + ApiErrorBase, + CloudError, + Disallowed, + GalleryImageFeature, + GalleryImageIdentifier, + ImagePurchasePlan, + InnerError, + PirResource, + PirSharedGalleryResource, + RecommendedMachineConfiguration, + ResourceRange, + SharedGallery, + SharedGalleryImage, + SharedGalleryImageList, + SharedGalleryImageVersion +} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/snapshotsMappers.ts b/sdk/compute/arm-compute/src/models/snapshotsMappers.ts index 2e6b6318d1cc..c8e26a5cee79 100644 --- a/sdk/compute/arm-compute/src/models/snapshotsMappers.ts +++ b/sdk/compute/arm-compute/src/models/snapshotsMappers.ts @@ -78,6 +78,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -140,6 +141,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotList, diff --git a/sdk/compute/arm-compute/src/models/sshPublicKeysMappers.ts b/sdk/compute/arm-compute/src/models/sshPublicKeysMappers.ts index e3c7968183f8..4931d5bd144d 100644 --- a/sdk/compute/arm-compute/src/models/sshPublicKeysMappers.ts +++ b/sdk/compute/arm-compute/src/models/sshPublicKeysMappers.ts @@ -80,6 +80,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -143,6 +144,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts index a14395e7c2d2..2d73108c915a 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts @@ -77,6 +77,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -138,6 +139,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts index f4167538910b..af64a2525e74 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts @@ -80,6 +80,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -143,6 +144,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineImagesEdgeZoneMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineImagesEdgeZoneMappers.ts index a14395e7c2d2..2d73108c915a 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineImagesEdgeZoneMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineImagesEdgeZoneMappers.ts @@ -77,6 +77,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -138,6 +139,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts index a14395e7c2d2..2d73108c915a 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts @@ -77,6 +77,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -138,6 +139,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineRunCommandsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineRunCommandsMappers.ts index 00cab85dfb37..7ca3d273c616 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineRunCommandsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineRunCommandsMappers.ts @@ -80,6 +80,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -147,6 +148,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts index 7ff91ec28b71..f17765441275 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts @@ -77,6 +77,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -138,6 +139,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts index a14395e7c2d2..2d73108c915a 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts @@ -77,6 +77,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -138,6 +139,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.ts index 37912e8e6615..f6942c106851 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, @@ -138,6 +139,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMRunCommandsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMRunCommandsMappers.ts index 803afd1c6c30..f9628e014978 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMRunCommandsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMRunCommandsMappers.ts @@ -80,6 +80,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -143,6 +144,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts index ed598dc1cba8..26aeb541a33e 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts @@ -77,6 +77,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -141,6 +142,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts index d1278e637520..c10f289f6837 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts @@ -80,6 +80,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -147,6 +148,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, diff --git a/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts index b034d1699bb3..ada73a637ebf 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts @@ -80,6 +80,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -148,6 +149,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, diff --git a/sdk/compute/arm-compute/src/operations/galleries.ts b/sdk/compute/arm-compute/src/operations/galleries.ts index d657871311c8..d4a8d46e353c 100644 --- a/sdk/compute/arm-compute/src/operations/galleries.ts +++ b/sdk/compute/arm-compute/src/operations/galleries.ts @@ -61,7 +61,7 @@ export class Galleries { * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, galleryName: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, galleryName: string, options?: Models.GalleriesGetOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery. @@ -74,8 +74,8 @@ export class Galleries { * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, galleryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, galleryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, galleryName: string, options: Models.GalleriesGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, galleryName: string, options?: Models.GalleriesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -278,7 +278,8 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.galleryName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion2, + 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 d7ac39f74bee..5576a0da2abc 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts @@ -27,15 +27,15 @@ export class GalleryImageVersions { } /** - * Create or update a gallery Image Version. + * Create or update a gallery image version. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. - * @param galleryImageName The name of the gallery Image Definition in which the Image Version is + * @param galleryImageName The name of the gallery image definition in which the Image Version is * to be created. - * @param galleryImageVersionName The name of the gallery Image Version to be created. Needs to + * @param galleryImageVersionName The name of the gallery image version to be created. Needs to * follow semantic version name pattern: The allowed characters are digit and period. Digits must * be within the range of a 32-bit integer. Format: .. - * @param galleryImageVersion Parameters supplied to the create or update gallery Image Version + * @param galleryImageVersion Parameters supplied to the create or update gallery image version * operation. * @param [options] The optional parameters * @returns Promise @@ -46,15 +46,15 @@ export class GalleryImageVersions { } /** - * Update a gallery Image Version. + * Update a gallery image version. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. - * @param galleryImageName The name of the gallery Image Definition in which the Image Version is + * @param galleryImageName The name of the gallery image definition in which the Image Version is * to be updated. - * @param galleryImageVersionName The name of the gallery Image Version to be updated. Needs to + * @param galleryImageVersionName The name of the gallery image version to be updated. Needs to * follow semantic version name pattern: The allowed characters are digit and period. Digits must * be within the range of a 32-bit integer. Format: .. - * @param galleryImageVersion Parameters supplied to the update gallery Image Version operation. + * @param galleryImageVersion Parameters supplied to the update gallery image version operation. * @param [options] The optional parameters * @returns Promise */ @@ -64,12 +64,12 @@ export class GalleryImageVersions { } /** - * Retrieves information about a gallery Image Version. + * Retrieves information about a gallery image version. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. - * @param galleryImageName The name of the gallery Image Definition in which the Image Version + * @param galleryImageName The name of the gallery image definition in which the Image Version * resides. - * @param galleryImageVersionName The name of the gallery Image Version to be retrieved. + * @param galleryImageVersionName The name of the gallery image version to be retrieved. * @param [options] The optional parameters * @returns Promise */ @@ -77,18 +77,18 @@ export class GalleryImageVersions { /** * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. - * @param galleryImageName The name of the gallery Image Definition in which the Image Version + * @param galleryImageName The name of the gallery image definition in which the Image Version * resides. - * @param galleryImageVersionName The name of the gallery Image Version to be retrieved. + * @param galleryImageVersionName The name of the gallery image version to be retrieved. * @param callback The callback */ get(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. - * @param galleryImageName The name of the gallery Image Definition in which the Image Version + * @param galleryImageName The name of the gallery image definition in which the Image Version * resides. - * @param galleryImageVersionName The name of the gallery Image Version to be retrieved. + * @param galleryImageVersionName The name of the gallery image version to be retrieved. * @param options The optional parameters * @param callback The callback */ @@ -107,12 +107,12 @@ export class GalleryImageVersions { } /** - * Delete a gallery Image Version. + * Delete a gallery image version. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. - * @param galleryImageName The name of the gallery Image Definition in which the Image Version + * @param galleryImageName The name of the gallery image definition in which the Image Version * resides. - * @param galleryImageVersionName The name of the gallery Image Version to be deleted. + * @param galleryImageVersionName The name of the gallery image version to be deleted. * @param [options] The optional parameters * @returns Promise */ @@ -122,7 +122,7 @@ export class GalleryImageVersions { } /** - * List gallery Image Versions in a gallery Image Definition. + * List gallery image versions in a gallery image definition. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. * @param galleryImageName The name of the Shared Image Gallery Image Definition from which the @@ -161,15 +161,15 @@ export class GalleryImageVersions { } /** - * Create or update a gallery Image Version. + * Create or update a gallery image version. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. - * @param galleryImageName The name of the gallery Image Definition in which the Image Version is + * @param galleryImageName The name of the gallery image definition in which the Image Version is * to be created. - * @param galleryImageVersionName The name of the gallery Image Version to be created. Needs to + * @param galleryImageVersionName The name of the gallery image version to be created. Needs to * follow semantic version name pattern: The allowed characters are digit and period. Digits must * be within the range of a 32-bit integer. Format: .. - * @param galleryImageVersion Parameters supplied to the create or update gallery Image Version + * @param galleryImageVersion Parameters supplied to the create or update gallery image version * operation. * @param [options] The optional parameters * @returns Promise @@ -189,15 +189,15 @@ export class GalleryImageVersions { } /** - * Update a gallery Image Version. + * Update a gallery image version. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. - * @param galleryImageName The name of the gallery Image Definition in which the Image Version is + * @param galleryImageName The name of the gallery image definition in which the Image Version is * to be updated. - * @param galleryImageVersionName The name of the gallery Image Version to be updated. Needs to + * @param galleryImageVersionName The name of the gallery image version to be updated. Needs to * follow semantic version name pattern: The allowed characters are digit and period. Digits must * be within the range of a 32-bit integer. Format: .. - * @param galleryImageVersion Parameters supplied to the update gallery Image Version operation. + * @param galleryImageVersion Parameters supplied to the update gallery image version operation. * @param [options] The optional parameters * @returns Promise */ @@ -216,12 +216,12 @@ export class GalleryImageVersions { } /** - * Delete a gallery Image Version. + * Delete a gallery image version. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. - * @param galleryImageName The name of the gallery Image Definition in which the Image Version + * @param galleryImageName The name of the gallery image definition in which the Image Version * resides. - * @param galleryImageVersionName The name of the gallery Image Version to be deleted. + * @param galleryImageVersionName The name of the gallery image version to be deleted. * @param [options] The optional parameters * @returns Promise */ @@ -239,7 +239,7 @@ export class GalleryImageVersions { } /** - * List gallery Image Versions in a gallery Image Definition. + * List gallery image versions in a gallery image definition. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise diff --git a/sdk/compute/arm-compute/src/operations/galleryImages.ts b/sdk/compute/arm-compute/src/operations/galleryImages.ts index eb0ec34ff595..a3453b068698 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImages.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImages.ts @@ -27,11 +27,11 @@ export class GalleryImages { } /** - * Create or update a gallery Image Definition. + * Create or update a gallery image definition. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be * created. - * @param galleryImageName The name of the gallery Image Definition to be created or updated. The + * @param galleryImageName The name of the gallery image definition to be created or updated. The * allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the * middle. The maximum length is 80 characters. * @param galleryImage Parameters supplied to the create or update gallery image operation. @@ -44,11 +44,11 @@ export class GalleryImages { } /** - * Update a gallery Image Definition. + * Update a gallery image definition. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be * updated. - * @param galleryImageName The name of the gallery Image Definition to be updated. The allowed + * @param galleryImageName The name of the gallery image definition to be updated. The allowed * characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The * maximum length is 80 characters. * @param galleryImage Parameters supplied to the update gallery image operation. @@ -61,11 +61,11 @@ export class GalleryImages { } /** - * Retrieves information about a gallery Image Definition. + * Retrieves information about a gallery image definition. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery from which the Image Definitions are to * be retrieved. - * @param galleryImageName The name of the gallery Image Definition to be retrieved. + * @param galleryImageName The name of the gallery image definition to be retrieved. * @param [options] The optional parameters * @returns Promise */ @@ -74,7 +74,7 @@ export class GalleryImages { * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery from which the Image Definitions are to * be retrieved. - * @param galleryImageName The name of the gallery Image Definition to be retrieved. + * @param galleryImageName The name of the gallery image definition to be retrieved. * @param callback The callback */ get(resourceGroupName: string, galleryName: string, galleryImageName: string, callback: msRest.ServiceCallback): void; @@ -82,7 +82,7 @@ export class GalleryImages { * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery from which the Image Definitions are to * be retrieved. - * @param galleryImageName The name of the gallery Image Definition to be retrieved. + * @param galleryImageName The name of the gallery image definition to be retrieved. * @param options The optional parameters * @param callback The callback */ @@ -104,7 +104,7 @@ export class GalleryImages { * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be * deleted. - * @param galleryImageName The name of the gallery Image Definition to be deleted. + * @param galleryImageName The name of the gallery image definition to be deleted. * @param [options] The optional parameters * @returns Promise */ @@ -114,7 +114,7 @@ export class GalleryImages { } /** - * List gallery Image Definitions in a gallery. + * List gallery image definitions in a gallery. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery from which Image Definitions are to be * listed. @@ -149,11 +149,11 @@ export class GalleryImages { } /** - * Create or update a gallery Image Definition. + * Create or update a gallery image definition. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be * created. - * @param galleryImageName The name of the gallery Image Definition to be created or updated. The + * @param galleryImageName The name of the gallery image definition to be created or updated. The * allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the * middle. The maximum length is 80 characters. * @param galleryImage Parameters supplied to the create or update gallery image operation. @@ -174,11 +174,11 @@ export class GalleryImages { } /** - * Update a gallery Image Definition. + * Update a gallery image definition. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be * updated. - * @param galleryImageName The name of the gallery Image Definition to be updated. The allowed + * @param galleryImageName The name of the gallery image definition to be updated. The allowed * characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The * maximum length is 80 characters. * @param galleryImage Parameters supplied to the update gallery image operation. @@ -203,7 +203,7 @@ export class GalleryImages { * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be * deleted. - * @param galleryImageName The name of the gallery Image Definition to be deleted. + * @param galleryImageName The name of the gallery image definition to be deleted. * @param [options] The optional parameters * @returns Promise */ @@ -220,7 +220,7 @@ export class GalleryImages { } /** - * List gallery Image Definitions in a gallery. + * List gallery image definitions in a gallery. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise 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..a535d68029b3 --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts @@ -0,0 +1,98 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/gallerySharingProfileMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a GallerySharingProfile. */ +export class GallerySharingProfile { + private readonly client: ComputeManagementClientContext; + + /** + * Create a GallerySharingProfile. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * Update sharing profile of a gallery. + * @param resourceGroupName The name of the resource group. + * @param galleryName The name of the Shared Image Gallery. + * @param sharingUpdate Parameters supplied to the update gallery sharing profile. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, galleryName: string, sharingUpdate: Models.SharingUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,galleryName,sharingUpdate,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Update sharing profile of a gallery. + * @param resourceGroupName The name of the resource group. + * @param galleryName The name of the Shared Image Gallery. + * @param sharingUpdate Parameters supplied to the update gallery sharing profile. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, galleryName: string, sharingUpdate: Models.SharingUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + galleryName, + sharingUpdate, + options + }, + beginUpdateOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/share", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.galleryName + ], + queryParameters: [ + Parameters.apiVersion2 + ], + 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 10091beec86b..0366a5e3f74c 100644 --- a/sdk/compute/arm-compute/src/operations/index.ts +++ b/sdk/compute/arm-compute/src/operations/index.ts @@ -40,6 +40,10 @@ 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 "./cloudServiceRoleInstances"; export * from "./cloudServiceRoles"; export * from "./cloudServices"; 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..ec14da6d69a1 --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/sharedGalleries.ts @@ -0,0 +1,192 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/sharedGalleriesMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a SharedGalleries. */ +export class SharedGalleries { + private readonly client: ComputeManagementClientContext; + + /** + * Create a SharedGalleries. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * List shared galleries by subscription id or tenant id. + * @param location Resource location. + * @param [options] The optional parameters + * @returns Promise + */ + list(location: string, options?: Models.SharedGalleriesListOptionalParams): Promise; + /** + * @param location Resource location. + * @param callback The callback + */ + list(location: string, callback: msRest.ServiceCallback): void; + /** + * @param location Resource location. + * @param options The optional parameters + * @param callback The callback + */ + list(location: string, options: Models.SharedGalleriesListOptionalParams, callback: msRest.ServiceCallback): void; + list(location: string, options?: Models.SharedGalleriesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get a shared gallery by subscription id or tenant id. + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param [options] The optional parameters + * @returns Promise + */ + get(location: string, galleryUniqueName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param callback The callback + */ + get(location: string, galleryUniqueName: string, callback: msRest.ServiceCallback): void; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param options The optional parameters + * @param callback The callback + */ + get(location: string, galleryUniqueName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(location: string, galleryUniqueName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + galleryUniqueName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * List shared galleries by subscription id or tenant id. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.SharedGalleriesListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.SharedGalleriesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.SharedGalleriesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location0 + ], + queryParameters: [ + Parameters.apiVersion2, + 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.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedGallery + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion2, + Parameters.sharedTo + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedGalleryList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts new file mode 100644 index 000000000000..d7ee3a4e5d06 --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts @@ -0,0 +1,224 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/sharedGalleryImageVersionsMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a SharedGalleryImageVersions. */ +export class SharedGalleryImageVersions { + private readonly client: ComputeManagementClientContext; + + /** + * Create a SharedGalleryImageVersions. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * List shared gallery image versions by subscription id or tenant id. + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param galleryImageName The name of the Shared Gallery Image Definition from which the Image + * Versions are to be listed. + * @param [options] The optional parameters + * @returns Promise + */ + list(location: string, galleryUniqueName: string, galleryImageName: string, options?: Models.SharedGalleryImageVersionsListOptionalParams): Promise; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param galleryImageName The name of the Shared Gallery Image Definition from which the Image + * Versions are to be listed. + * @param callback The callback + */ + list(location: string, galleryUniqueName: string, galleryImageName: string, callback: msRest.ServiceCallback): void; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param galleryImageName The name of the Shared Gallery Image Definition from which the Image + * Versions are to be listed. + * @param options The optional parameters + * @param callback The callback + */ + list(location: string, galleryUniqueName: string, galleryImageName: string, options: Models.SharedGalleryImageVersionsListOptionalParams, callback: msRest.ServiceCallback): void; + list(location: string, galleryUniqueName: string, galleryImageName: string, options?: Models.SharedGalleryImageVersionsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + galleryUniqueName, + galleryImageName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get a shared gallery image version by subscription id or tenant id. + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param galleryImageName The name of the Shared Gallery Image Definition from which the Image + * Versions are to be listed. + * @param galleryImageVersionName The name of the gallery image version to be created. Needs to + * follow semantic version name pattern: The allowed characters are digit and period. Digits must + * be within the range of a 32-bit integer. Format: .. + * @param [options] The optional parameters + * @returns Promise + */ + get(location: string, galleryUniqueName: string, galleryImageName: string, galleryImageVersionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param galleryImageName The name of the Shared Gallery Image Definition from which the Image + * Versions are to be listed. + * @param galleryImageVersionName The name of the gallery image version to be created. Needs to + * follow semantic version name pattern: The allowed characters are digit and period. Digits must + * be within the range of a 32-bit integer. Format: .. + * @param callback The callback + */ + get(location: string, galleryUniqueName: string, galleryImageName: string, galleryImageVersionName: string, callback: msRest.ServiceCallback): void; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param galleryImageName The name of the Shared Gallery Image Definition from which the Image + * Versions are to be listed. + * @param galleryImageVersionName The name of the gallery image version to be created. Needs to + * follow semantic version name pattern: The allowed characters are digit and period. Digits must + * be within the range of a 32-bit integer. Format: .. + * @param options The optional parameters + * @param callback The callback + */ + get(location: string, galleryUniqueName: string, galleryImageName: string, galleryImageVersionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(location: string, galleryUniqueName: string, galleryImageName: string, galleryImageVersionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + galleryUniqueName, + galleryImageName, + galleryImageVersionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * List shared gallery image versions by subscription id or tenant id. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.SharedGalleryImageVersionsListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.SharedGalleryImageVersionsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.SharedGalleryImageVersionsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location0, + Parameters.galleryUniqueName, + Parameters.galleryImageName + ], + queryParameters: [ + Parameters.apiVersion2, + 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.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedGalleryImageVersion + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion2, + Parameters.sharedTo + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedGalleryImageVersionList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts b/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts new file mode 100644 index 000000000000..28e939ce8e16 --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts @@ -0,0 +1,205 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/sharedGalleryImagesMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a SharedGalleryImages. */ +export class SharedGalleryImages { + private readonly client: ComputeManagementClientContext; + + /** + * Create a SharedGalleryImages. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * List shared gallery images by subscription id or tenant id. + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param [options] The optional parameters + * @returns Promise + */ + list(location: string, galleryUniqueName: string, options?: Models.SharedGalleryImagesListOptionalParams): Promise; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param callback The callback + */ + list(location: string, galleryUniqueName: string, callback: msRest.ServiceCallback): void; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param options The optional parameters + * @param callback The callback + */ + list(location: string, galleryUniqueName: string, options: Models.SharedGalleryImagesListOptionalParams, callback: msRest.ServiceCallback): void; + list(location: string, galleryUniqueName: string, options?: Models.SharedGalleryImagesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + galleryUniqueName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get a shared gallery image by subscription id or tenant id. + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param galleryImageName The name of the Shared Gallery Image Definition from which the Image + * Versions are to be listed. + * @param [options] The optional parameters + * @returns Promise + */ + get(location: string, galleryUniqueName: string, galleryImageName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param galleryImageName The name of the Shared Gallery Image Definition from which the Image + * Versions are to be listed. + * @param callback The callback + */ + get(location: string, galleryUniqueName: string, galleryImageName: string, callback: msRest.ServiceCallback): void; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param galleryImageName The name of the Shared Gallery Image Definition from which the Image + * Versions are to be listed. + * @param options The optional parameters + * @param callback The callback + */ + get(location: string, galleryUniqueName: string, galleryImageName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(location: string, galleryUniqueName: string, galleryImageName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + galleryUniqueName, + galleryImageName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * List shared gallery images by subscription id or tenant id. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.SharedGalleryImagesListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.SharedGalleryImagesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.SharedGalleryImagesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location0, + Parameters.galleryUniqueName + ], + queryParameters: [ + Parameters.apiVersion2, + 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.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedGalleryImage + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion2, + Parameters.sharedTo + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedGalleryImageList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +};