diff --git a/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs b/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs index 509ec09f9b02..404e5770350b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs @@ -388,6 +388,9 @@ protected CommunityGalleryCollection() { } public partial class CommunityGalleryData : Azure.ResourceManager.Compute.Models.PirCommunityGalleryResourceData { internal CommunityGalleryData() { } + public System.Collections.Generic.IReadOnlyDictionary ArtifactTags { get { throw null; } } + public Azure.ResourceManager.Compute.Models.CommunityGalleryMetadata CommunityMetadata { get { throw null; } } + public string Disclaimer { get { throw null; } } public Azure.Core.ResourceIdentifier Id { get { throw null; } } } public partial class CommunityGalleryImageCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable @@ -407,7 +410,9 @@ public partial class CommunityGalleryImageData : Azure.ResourceManager.Compute.M { internal CommunityGalleryImageData() { } public Azure.ResourceManager.Compute.Models.ArchitectureType? Architecture { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary ArtifactTags { get { throw null; } } public System.Collections.Generic.IList DisallowedDiskTypes { get { throw null; } } + public string Disclaimer { get { throw null; } } public System.DateTimeOffset? EndOfLifeOn { get { throw null; } } public string Eula { get { throw null; } } public System.Collections.Generic.IReadOnlyList Features { get { throw null; } } @@ -451,6 +456,8 @@ protected CommunityGalleryImageVersionCollection() { } public partial class CommunityGalleryImageVersionData : Azure.ResourceManager.Compute.Models.PirCommunityGalleryResourceData { internal CommunityGalleryImageVersionData() { } + public System.Collections.Generic.IReadOnlyDictionary ArtifactTags { get { throw null; } } + public string Disclaimer { get { throw null; } } public System.DateTimeOffset? EndOfLifeOn { get { throw null; } } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public bool? ExcludeFromLatest { get { throw null; } } @@ -1466,6 +1473,7 @@ protected SharedGalleryCollection() { } public partial class SharedGalleryData : Azure.ResourceManager.Compute.Models.PirSharedGalleryResourceData { internal SharedGalleryData() { } + public System.Collections.Generic.IReadOnlyDictionary ArtifactTags { get { throw null; } } public Azure.Core.ResourceIdentifier Id { get { throw null; } } } public partial class SharedGalleryImageCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable @@ -1485,6 +1493,7 @@ public partial class SharedGalleryImageData : Azure.ResourceManager.Compute.Mode { internal SharedGalleryImageData() { } public Azure.ResourceManager.Compute.Models.ArchitectureType? Architecture { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary ArtifactTags { get { throw null; } } public System.Collections.Generic.IList DisallowedDiskTypes { get { throw null; } } public System.DateTimeOffset? EndOfLifeOn { get { throw null; } } public string Eula { get { throw null; } } @@ -1527,6 +1536,7 @@ protected SharedGalleryImageVersionCollection() { } public partial class SharedGalleryImageVersionData : Azure.ResourceManager.Compute.Models.PirSharedGalleryResourceData { internal SharedGalleryImageVersionData() { } + public System.Collections.Generic.IReadOnlyDictionary ArtifactTags { get { throw null; } } public System.DateTimeOffset? EndOfLifeOn { get { throw null; } } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public bool? ExcludeFromLatest { get { throw null; } } @@ -2419,11 +2429,12 @@ public static partial class ArmComputeModelFactory public static Azure.ResourceManager.Compute.CloudServiceOSVersionData CloudServiceOSVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), string family = null, string familyLabel = null, string version = null, string label = null, bool? isDefault = default(bool?), bool? isActive = default(bool?)) { throw null; } public static Azure.ResourceManager.Compute.CloudServiceRoleData CloudServiceRoleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.ResourceManager.Compute.Models.CloudServiceRoleSku sku = null, string uniqueId = null) { throw null; } public static Azure.ResourceManager.Compute.CloudServiceRoleInstanceData CloudServiceRoleInstanceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IReadOnlyDictionary tags = null, Azure.ResourceManager.Compute.Models.InstanceSku sku = null, System.Collections.Generic.IEnumerable networkInterfaces = null, Azure.ResourceManager.Compute.Models.RoleInstanceView instanceView = null) { throw null; } - public static Azure.ResourceManager.Compute.CommunityGalleryData CommunityGalleryData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), string uniqueId = null) { throw null; } - public static Azure.ResourceManager.Compute.CommunityGalleryImageData CommunityGalleryImageData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), string uniqueId = null, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? osType = default(Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType?), Azure.ResourceManager.Compute.Models.OperatingSystemStateType? osState = default(Azure.ResourceManager.Compute.Models.OperatingSystemStateType?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.CommunityGalleryImageIdentifier imageIdentifier = null, Azure.ResourceManager.Compute.Models.RecommendedMachineConfiguration recommended = null, System.Collections.Generic.IEnumerable disallowedDiskTypes = null, Azure.ResourceManager.Compute.Models.HyperVGeneration? hyperVGeneration = default(Azure.ResourceManager.Compute.Models.HyperVGeneration?), System.Collections.Generic.IEnumerable features = null, Azure.ResourceManager.Compute.Models.ImagePurchasePlan purchasePlan = null, Azure.ResourceManager.Compute.Models.ArchitectureType? architecture = default(Azure.ResourceManager.Compute.Models.ArchitectureType?), System.Uri privacyStatementUri = null, string eula = null) { throw null; } + public static Azure.ResourceManager.Compute.CommunityGalleryData CommunityGalleryData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), string uniqueId = null, string disclaimer = null, System.Collections.Generic.IReadOnlyDictionary artifactTags = null, Azure.ResourceManager.Compute.Models.CommunityGalleryMetadata communityMetadata = null) { throw null; } + public static Azure.ResourceManager.Compute.CommunityGalleryImageData CommunityGalleryImageData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), string uniqueId = null, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? osType = default(Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType?), Azure.ResourceManager.Compute.Models.OperatingSystemStateType? osState = default(Azure.ResourceManager.Compute.Models.OperatingSystemStateType?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.CommunityGalleryImageIdentifier imageIdentifier = null, Azure.ResourceManager.Compute.Models.RecommendedMachineConfiguration recommended = null, System.Collections.Generic.IEnumerable disallowedDiskTypes = null, Azure.ResourceManager.Compute.Models.HyperVGeneration? hyperVGeneration = default(Azure.ResourceManager.Compute.Models.HyperVGeneration?), System.Collections.Generic.IEnumerable features = null, Azure.ResourceManager.Compute.Models.ImagePurchasePlan purchasePlan = null, Azure.ResourceManager.Compute.Models.ArchitectureType? architecture = default(Azure.ResourceManager.Compute.Models.ArchitectureType?), System.Uri privacyStatementUri = null, string eula = null, string disclaimer = null, System.Collections.Generic.IReadOnlyDictionary artifactTags = null) { throw null; } public static Azure.ResourceManager.Compute.Models.CommunityGalleryImageIdentifier CommunityGalleryImageIdentifier(string publisher = null, string offer = null, string sku = null) { throw null; } - public static Azure.ResourceManager.Compute.CommunityGalleryImageVersionData CommunityGalleryImageVersionData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), string uniqueId = null, System.DateTimeOffset? publishedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), bool? isExcludedFromLatest = default(bool?), Azure.ResourceManager.Compute.Models.SharedGalleryImageVersionStorageProfile storageProfile = null) { throw null; } + public static Azure.ResourceManager.Compute.CommunityGalleryImageVersionData CommunityGalleryImageVersionData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), string uniqueId = null, System.DateTimeOffset? publishedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), bool? isExcludedFromLatest = default(bool?), Azure.ResourceManager.Compute.Models.SharedGalleryImageVersionStorageProfile storageProfile = null, string disclaimer = null, System.Collections.Generic.IReadOnlyDictionary artifactTags = null) { throw null; } public static Azure.ResourceManager.Compute.Models.CommunityGalleryInfo CommunityGalleryInfo(System.Uri publisherUri = null, string publisherContact = null, string eula = null, string publicNamePrefix = null, bool? communityGalleryEnabled = default(bool?), System.Collections.Generic.IEnumerable publicNames = null) { throw null; } + public static Azure.ResourceManager.Compute.Models.CommunityGalleryMetadata CommunityGalleryMetadata(System.Uri publisherUri = null, string publisherContact = null, string eula = null, System.Collections.Generic.IEnumerable publicNames = null, System.Uri privacyStatementUri = null) { throw null; } public static Azure.ResourceManager.Compute.Models.ComputeApiError ComputeApiError(System.Collections.Generic.IEnumerable details = null, Azure.ResourceManager.Compute.Models.InnerError innererror = null, string code = null, string target = null, string message = null) { throw null; } public static Azure.ResourceManager.Compute.Models.ComputeApiErrorBase ComputeApiErrorBase(string code = null, string target = null, string message = null) { throw null; } public static Azure.ResourceManager.Compute.ComputePrivateEndpointConnectionData ComputePrivateEndpointConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.Compute.Models.ComputePrivateLinkServiceConnectionState connectionState = null, Azure.ResourceManager.Compute.Models.ComputePrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.ComputePrivateEndpointConnectionProvisioningState?)) { throw null; } @@ -2502,11 +2513,11 @@ public static partial class ArmComputeModelFactory public static Azure.ResourceManager.Compute.Models.RunCommandDocument RunCommandDocument(string schema = null, string id = null, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType osType = Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType.Windows, string label = null, string description = null, System.Collections.Generic.IEnumerable script = null, System.Collections.Generic.IEnumerable parameters = null) { throw null; } public static Azure.ResourceManager.Compute.Models.RunCommandDocumentBase RunCommandDocumentBase(string schema = null, string id = null, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType osType = Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType.Windows, string label = null, string description = null) { throw null; } public static Azure.ResourceManager.Compute.Models.RunCommandParameterDefinition RunCommandParameterDefinition(string name = null, string runCommandParameterDefinitionType = null, string defaultValue = null, bool? required = default(bool?)) { throw null; } - public static Azure.ResourceManager.Compute.SharedGalleryData SharedGalleryData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), string uniqueId = null) { throw null; } + public static Azure.ResourceManager.Compute.SharedGalleryData SharedGalleryData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), string uniqueId = null, System.Collections.Generic.IReadOnlyDictionary artifactTags = null) { throw null; } public static Azure.ResourceManager.Compute.Models.SharedGalleryDataDiskImage SharedGalleryDataDiskImage(int? diskSizeGB = default(int?), Azure.ResourceManager.Compute.Models.SharedGalleryHostCaching? hostCaching = default(Azure.ResourceManager.Compute.Models.SharedGalleryHostCaching?), int lun = 0) { throw null; } public static Azure.ResourceManager.Compute.Models.SharedGalleryDiskImage SharedGalleryDiskImage(int? diskSizeGB = default(int?), Azure.ResourceManager.Compute.Models.SharedGalleryHostCaching? hostCaching = default(Azure.ResourceManager.Compute.Models.SharedGalleryHostCaching?)) { throw null; } - public static Azure.ResourceManager.Compute.SharedGalleryImageData SharedGalleryImageData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), string uniqueId = null, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? osType = default(Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType?), Azure.ResourceManager.Compute.Models.OperatingSystemStateType? osState = default(Azure.ResourceManager.Compute.Models.OperatingSystemStateType?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.GalleryImageIdentifier identifier = null, Azure.ResourceManager.Compute.Models.RecommendedMachineConfiguration recommended = null, System.Collections.Generic.IEnumerable disallowedDiskTypes = null, Azure.ResourceManager.Compute.Models.HyperVGeneration? hyperVGeneration = default(Azure.ResourceManager.Compute.Models.HyperVGeneration?), System.Collections.Generic.IEnumerable features = null, Azure.ResourceManager.Compute.Models.ImagePurchasePlan purchasePlan = null, Azure.ResourceManager.Compute.Models.ArchitectureType? architecture = default(Azure.ResourceManager.Compute.Models.ArchitectureType?), System.Uri privacyStatementUri = null, string eula = null) { throw null; } - public static Azure.ResourceManager.Compute.SharedGalleryImageVersionData SharedGalleryImageVersionData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), string uniqueId = null, System.DateTimeOffset? publishedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), bool? isExcludedFromLatest = default(bool?), Azure.ResourceManager.Compute.Models.SharedGalleryImageVersionStorageProfile storageProfile = null) { throw null; } + public static Azure.ResourceManager.Compute.SharedGalleryImageData SharedGalleryImageData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), string uniqueId = null, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? osType = default(Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType?), Azure.ResourceManager.Compute.Models.OperatingSystemStateType? osState = default(Azure.ResourceManager.Compute.Models.OperatingSystemStateType?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.GalleryImageIdentifier identifier = null, Azure.ResourceManager.Compute.Models.RecommendedMachineConfiguration recommended = null, System.Collections.Generic.IEnumerable disallowedDiskTypes = null, Azure.ResourceManager.Compute.Models.HyperVGeneration? hyperVGeneration = default(Azure.ResourceManager.Compute.Models.HyperVGeneration?), System.Collections.Generic.IEnumerable features = null, Azure.ResourceManager.Compute.Models.ImagePurchasePlan purchasePlan = null, Azure.ResourceManager.Compute.Models.ArchitectureType? architecture = default(Azure.ResourceManager.Compute.Models.ArchitectureType?), System.Uri privacyStatementUri = null, string eula = null, System.Collections.Generic.IReadOnlyDictionary artifactTags = null) { throw null; } + public static Azure.ResourceManager.Compute.SharedGalleryImageVersionData SharedGalleryImageVersionData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), string uniqueId = null, System.DateTimeOffset? publishedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), bool? isExcludedFromLatest = default(bool?), Azure.ResourceManager.Compute.Models.SharedGalleryImageVersionStorageProfile storageProfile = null, System.Collections.Generic.IReadOnlyDictionary artifactTags = null) { throw null; } public static Azure.ResourceManager.Compute.Models.SharedGalleryImageVersionStorageProfile SharedGalleryImageVersionStorageProfile(Azure.ResourceManager.Compute.Models.SharedGalleryOSDiskImage osDiskImage = null, System.Collections.Generic.IEnumerable dataDiskImages = null) { throw null; } public static Azure.ResourceManager.Compute.Models.SharedGalleryOSDiskImage SharedGalleryOSDiskImage(int? diskSizeGB = default(int?), Azure.ResourceManager.Compute.Models.SharedGalleryHostCaching? hostCaching = default(Azure.ResourceManager.Compute.Models.SharedGalleryHostCaching?)) { throw null; } public static Azure.ResourceManager.Compute.Models.ShareInfoElement ShareInfoElement(System.Uri vmUri = null) { throw null; } @@ -2822,6 +2833,15 @@ public CommunityGalleryInfo() { } public string PublisherContact { get { throw null; } set { } } public System.Uri PublisherUri { get { throw null; } set { } } } + public partial class CommunityGalleryMetadata + { + internal CommunityGalleryMetadata() { } + public string Eula { get { throw null; } } + public System.Uri PrivacyStatementUri { get { throw null; } } + public System.Collections.Generic.IReadOnlyList PublicNames { get { throw null; } } + public string PublisherContact { get { throw null; } } + public System.Uri PublisherUri { get { throw null; } } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ComponentName : System.IEquatable { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ArmComputeModelFactory.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ArmComputeModelFactory.cs index abac298be04c..3a1c29752f7e 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ArmComputeModelFactory.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ArmComputeModelFactory.cs @@ -1768,7 +1768,7 @@ public static GalleryData GalleryData(ResourceIdentifier id = null, string name } /// Initializes a new instance of SharingProfile. - /// This property allows you to specify the permission of sharing gallery. <br><br> Possible values are: <br><br> **Private** <br><br> **Groups** <br><br> **Community**. + /// This property allows you to specify the permission of sharing gallery. Possible values are: **Private,** **Groups,** **Community.**. /// A list of sharing profile groups. /// Information of community gallery if current gallery is shared to community. /// A new instance for mocking. @@ -1826,7 +1826,7 @@ public static RegionalSharingStatus RegionalSharingStatus(string region = null, /// The Eula agreement for the gallery image definition. /// The privacy statement uri. /// The release note uri. - /// 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. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// 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.**. /// This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. /// The hypervisor generation of the Virtual Machine. Applicable to OS disks only. /// The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable. @@ -1989,7 +1989,7 @@ public static RegionalReplicationStatus RegionalReplicationStatus(string region /// The privacy statement uri. /// The release note uri. /// The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable. - /// This property allows you to specify the supported type of the OS that application is built for. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// This property allows you to specify the supported type of the OS that application is built for. Possible values are: **Windows,** **Linux.**. /// A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application. /// A new instance for mocking. public static GalleryApplicationData GalleryApplicationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string description = null, string eula = null, Uri privacyStatementUri = null, Uri releaseNoteUri = null, DateTimeOffset? endOfLifeOn = null, SupportedOperatingSystemType? supportedOSType = null, IEnumerable customActions = null) @@ -2049,10 +2049,13 @@ public static GalleryApplicationVersionPublishingProfile GalleryApplicationVersi /// Resource name. /// Resource location. /// The unique id of this shared gallery. + /// The artifact tags of a shared gallery resource. /// A new instance for mocking. - public static SharedGalleryData SharedGalleryData(string name = null, AzureLocation? location = null, string uniqueId = null) + public static SharedGalleryData SharedGalleryData(string name = null, AzureLocation? location = null, string uniqueId = null, IReadOnlyDictionary artifactTags = null) { - return new SharedGalleryData(name, location, uniqueId); + artifactTags ??= new Dictionary(); + + return new SharedGalleryData(name, location, uniqueId, artifactTags); } /// Initializes a new instance of PirSharedGalleryResourceData. @@ -2078,7 +2081,7 @@ public static PirResourceData PirResourceData(string name = null, AzureLocation? /// Resource name. /// Resource location. /// The unique id of this shared gallery. - /// 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. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// 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.**. /// This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. /// The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable. /// This is the gallery image definition identifier. @@ -2090,13 +2093,15 @@ public static PirResourceData PirResourceData(string name = null, AzureLocation? /// The architecture of the image. Applicable to OS disks only. /// Privacy statement uri for the current community gallery image. /// End-user license agreement for the current community gallery image. + /// The artifact tags of a shared gallery resource. /// A new instance for mocking. - public static SharedGalleryImageData SharedGalleryImageData(string name = null, AzureLocation? location = null, string uniqueId = null, SupportedOperatingSystemType? osType = null, OperatingSystemStateType? osState = null, DateTimeOffset? endOfLifeOn = null, GalleryImageIdentifier identifier = null, RecommendedMachineConfiguration recommended = null, IEnumerable disallowedDiskTypes = null, HyperVGeneration? hyperVGeneration = null, IEnumerable features = null, ImagePurchasePlan purchasePlan = null, ArchitectureType? architecture = null, Uri privacyStatementUri = null, string eula = null) + public static SharedGalleryImageData SharedGalleryImageData(string name = null, AzureLocation? location = null, string uniqueId = null, SupportedOperatingSystemType? osType = null, OperatingSystemStateType? osState = null, DateTimeOffset? endOfLifeOn = null, GalleryImageIdentifier identifier = null, RecommendedMachineConfiguration recommended = null, IEnumerable disallowedDiskTypes = null, HyperVGeneration? hyperVGeneration = null, IEnumerable features = null, ImagePurchasePlan purchasePlan = null, ArchitectureType? architecture = null, Uri privacyStatementUri = null, string eula = null, IReadOnlyDictionary artifactTags = null) { disallowedDiskTypes ??= new List(); features ??= new List(); + artifactTags ??= new Dictionary(); - return new SharedGalleryImageData(name, location, uniqueId, osType, osState, endOfLifeOn, identifier, recommended, disallowedDiskTypes != null ? new Disallowed(disallowedDiskTypes?.ToList()) : null, hyperVGeneration, features?.ToList(), purchasePlan, architecture, privacyStatementUri, eula); + return new SharedGalleryImageData(name, location, uniqueId, osType, osState, endOfLifeOn, identifier, recommended, disallowedDiskTypes != null ? new Disallowed(disallowedDiskTypes?.ToList()) : null, hyperVGeneration, features?.ToList(), purchasePlan, architecture, privacyStatementUri, eula, artifactTags); } /// Initializes a new instance of SharedGalleryImageVersionData. @@ -2107,10 +2112,13 @@ public static SharedGalleryImageData SharedGalleryImageData(string name = null, /// The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable. /// If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version. /// Describes the storage profile of the image version. + /// The artifact tags of a shared gallery resource. /// A new instance for mocking. - public static SharedGalleryImageVersionData SharedGalleryImageVersionData(string name = null, AzureLocation? location = null, string uniqueId = null, DateTimeOffset? publishedOn = null, DateTimeOffset? endOfLifeOn = null, bool? isExcludedFromLatest = null, SharedGalleryImageVersionStorageProfile storageProfile = null) + public static SharedGalleryImageVersionData SharedGalleryImageVersionData(string name = null, AzureLocation? location = null, string uniqueId = null, DateTimeOffset? publishedOn = null, DateTimeOffset? endOfLifeOn = null, bool? isExcludedFromLatest = null, SharedGalleryImageVersionStorageProfile storageProfile = null, IReadOnlyDictionary artifactTags = null) { - return new SharedGalleryImageVersionData(name, location, uniqueId, publishedOn, endOfLifeOn, isExcludedFromLatest, storageProfile); + artifactTags ??= new Dictionary(); + + return new SharedGalleryImageVersionData(name, location, uniqueId, publishedOn, endOfLifeOn, isExcludedFromLatest, storageProfile, artifactTags); } /// Initializes a new instance of SharedGalleryImageVersionStorageProfile. @@ -2157,10 +2165,29 @@ public static SharedGalleryDataDiskImage SharedGalleryDataDiskImage(int? diskSiz /// Resource location. /// Resource type. /// The unique id of this community gallery. + /// The disclaimer for a community gallery resource. + /// The artifact tags of a community gallery resource. + /// The metadata of community gallery. /// A new instance for mocking. - public static CommunityGalleryData CommunityGalleryData(string name = null, AzureLocation? location = null, ResourceType? resourceType = null, string uniqueId = null) + public static CommunityGalleryData CommunityGalleryData(string name = null, AzureLocation? location = null, ResourceType? resourceType = null, string uniqueId = null, string disclaimer = null, IReadOnlyDictionary artifactTags = null, CommunityGalleryMetadata communityMetadata = null) { - return new CommunityGalleryData(name, location, resourceType, uniqueId); + artifactTags ??= new Dictionary(); + + return new CommunityGalleryData(name, location, resourceType, uniqueId, disclaimer, artifactTags, communityMetadata); + } + + /// Initializes a new instance of CommunityGalleryMetadata. + /// The publisher URI of this community gallery. + /// The publisher contact of this community gallery. + /// The end-user license agreement for this community gallery. + /// A list of public names the gallery has. + /// The link for the privacy statement of this community gallery from the gallery publisher. + /// A new instance for mocking. + public static CommunityGalleryMetadata CommunityGalleryMetadata(Uri publisherUri = null, string publisherContact = null, string eula = null, IEnumerable publicNames = null, Uri privacyStatementUri = null) + { + publicNames ??= new List(); + + return new CommunityGalleryMetadata(publisherUri, publisherContact, eula, publicNames?.ToList(), privacyStatementUri); } /// Initializes a new instance of PirCommunityGalleryResourceData. @@ -2179,7 +2206,7 @@ public static PirCommunityGalleryResourceData PirCommunityGalleryResourceData(st /// Resource location. /// Resource type. /// The unique id of this community gallery. - /// 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. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// 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.**. /// This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. /// The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable. /// This is the community gallery image definition identifier. @@ -2189,15 +2216,18 @@ public static PirCommunityGalleryResourceData PirCommunityGalleryResourceData(st /// A list of gallery image features. /// Describes the gallery image definition purchase plan. This is used by marketplace images. /// The architecture of the image. Applicable to OS disks only. - /// Privacy statement uri for the current community gallery image. - /// End-user license agreement for the current community gallery image. + /// Privacy statement URI for the current community gallery image. + /// The end-user license agreement for the current community gallery image. + /// The disclaimer for a community gallery resource. + /// The artifact tags of a community gallery resource. /// A new instance for mocking. - public static CommunityGalleryImageData CommunityGalleryImageData(string name = null, AzureLocation? location = null, ResourceType? resourceType = null, string uniqueId = null, SupportedOperatingSystemType? osType = null, OperatingSystemStateType? osState = null, DateTimeOffset? endOfLifeOn = null, CommunityGalleryImageIdentifier imageIdentifier = null, RecommendedMachineConfiguration recommended = null, IEnumerable disallowedDiskTypes = null, HyperVGeneration? hyperVGeneration = null, IEnumerable features = null, ImagePurchasePlan purchasePlan = null, ArchitectureType? architecture = null, Uri privacyStatementUri = null, string eula = null) + public static CommunityGalleryImageData CommunityGalleryImageData(string name = null, AzureLocation? location = null, ResourceType? resourceType = null, string uniqueId = null, SupportedOperatingSystemType? osType = null, OperatingSystemStateType? osState = null, DateTimeOffset? endOfLifeOn = null, CommunityGalleryImageIdentifier imageIdentifier = null, RecommendedMachineConfiguration recommended = null, IEnumerable disallowedDiskTypes = null, HyperVGeneration? hyperVGeneration = null, IEnumerable features = null, ImagePurchasePlan purchasePlan = null, ArchitectureType? architecture = null, Uri privacyStatementUri = null, string eula = null, string disclaimer = null, IReadOnlyDictionary artifactTags = null) { disallowedDiskTypes ??= new List(); features ??= new List(); + artifactTags ??= new Dictionary(); - return new CommunityGalleryImageData(name, location, resourceType, uniqueId, osType, osState, endOfLifeOn, imageIdentifier, recommended, disallowedDiskTypes != null ? new Disallowed(disallowedDiskTypes?.ToList()) : null, hyperVGeneration, features?.ToList(), purchasePlan, architecture, privacyStatementUri, eula); + return new CommunityGalleryImageData(name, location, resourceType, uniqueId, osType, osState, endOfLifeOn, imageIdentifier, recommended, disallowedDiskTypes != null ? new Disallowed(disallowedDiskTypes?.ToList()) : null, hyperVGeneration, features?.ToList(), purchasePlan, architecture, privacyStatementUri, eula, disclaimer, artifactTags); } /// Initializes a new instance of CommunityGalleryImageIdentifier. @@ -2219,10 +2249,14 @@ public static CommunityGalleryImageIdentifier CommunityGalleryImageIdentifier(st /// The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable. /// If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version. /// Describes the storage profile of the image version. + /// The disclaimer for a community gallery resource. + /// The artifact tags of a community gallery resource. /// A new instance for mocking. - public static CommunityGalleryImageVersionData CommunityGalleryImageVersionData(string name = null, AzureLocation? location = null, ResourceType? resourceType = null, string uniqueId = null, DateTimeOffset? publishedOn = null, DateTimeOffset? endOfLifeOn = null, bool? isExcludedFromLatest = null, SharedGalleryImageVersionStorageProfile storageProfile = null) + public static CommunityGalleryImageVersionData CommunityGalleryImageVersionData(string name = null, AzureLocation? location = null, ResourceType? resourceType = null, string uniqueId = null, DateTimeOffset? publishedOn = null, DateTimeOffset? endOfLifeOn = null, bool? isExcludedFromLatest = null, SharedGalleryImageVersionStorageProfile storageProfile = null, string disclaimer = null, IReadOnlyDictionary artifactTags = null) { - return new CommunityGalleryImageVersionData(name, location, resourceType, uniqueId, publishedOn, endOfLifeOn, isExcludedFromLatest, storageProfile); + artifactTags ??= new Dictionary(); + + return new CommunityGalleryImageVersionData(name, location, resourceType, uniqueId, publishedOn, endOfLifeOn, isExcludedFromLatest, storageProfile, disclaimer, artifactTags); } /// Initializes a new instance of CloudServiceRoleInstanceData. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryData.cs index 6190038592ec..8121eea5bfeb 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryData.cs @@ -5,6 +5,7 @@ #nullable disable +using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Compute.Models; @@ -19,6 +20,7 @@ public partial class CommunityGalleryData : PirCommunityGalleryResourceData /// Initializes a new instance of CommunityGalleryData. internal CommunityGalleryData() { + ArtifactTags = new ChangeTrackingDictionary(); } /// Initializes a new instance of CommunityGalleryData. @@ -26,10 +28,22 @@ internal CommunityGalleryData() /// Resource location. /// Resource type. /// The unique id of this community gallery. - internal CommunityGalleryData(string name, AzureLocation? location, ResourceType? resourceType, string uniqueId) : base(name, location, resourceType, uniqueId) + /// The disclaimer for a community gallery resource. + /// The artifact tags of a community gallery resource. + /// The metadata of community gallery. + internal CommunityGalleryData(string name, AzureLocation? location, ResourceType? resourceType, string uniqueId, string disclaimer, IReadOnlyDictionary artifactTags, CommunityGalleryMetadata communityMetadata) : base(name, location, resourceType, uniqueId) { + Disclaimer = disclaimer; + ArtifactTags = artifactTags; + CommunityMetadata = communityMetadata; } + /// The disclaimer for a community gallery resource. + public string Disclaimer { get; } + /// The artifact tags of a community gallery resource. + public IReadOnlyDictionary ArtifactTags { get; } + /// The metadata of community gallery. + public CommunityGalleryMetadata CommunityMetadata { get; } /// The resource identifier. public ResourceIdentifier Id { get; internal set; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageData.cs index 9debf25c34a6..35167c7f46e6 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageData.cs @@ -22,6 +22,7 @@ public partial class CommunityGalleryImageData : PirCommunityGalleryResourceData internal CommunityGalleryImageData() { Features = new ChangeTrackingList(); + ArtifactTags = new ChangeTrackingDictionary(); } /// Initializes a new instance of CommunityGalleryImageData. @@ -29,7 +30,7 @@ internal CommunityGalleryImageData() /// Resource location. /// Resource type. /// The unique id of this community gallery. - /// 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. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// 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.**. /// This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. /// The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable. /// This is the community gallery image definition identifier. @@ -39,9 +40,11 @@ internal CommunityGalleryImageData() /// A list of gallery image features. /// Describes the gallery image definition purchase plan. This is used by marketplace images. /// The architecture of the image. Applicable to OS disks only. - /// Privacy statement uri for the current community gallery image. - /// End-user license agreement for the current community gallery image. - internal CommunityGalleryImageData(string name, AzureLocation? location, ResourceType? resourceType, string uniqueId, SupportedOperatingSystemType? osType, OperatingSystemStateType? osState, DateTimeOffset? endOfLifeOn, CommunityGalleryImageIdentifier imageIdentifier, RecommendedMachineConfiguration recommended, Disallowed disallowed, HyperVGeneration? hyperVGeneration, IReadOnlyList features, ImagePurchasePlan purchasePlan, ArchitectureType? architecture, Uri privacyStatementUri, string eula) : base(name, location, resourceType, uniqueId) + /// Privacy statement URI for the current community gallery image. + /// The end-user license agreement for the current community gallery image. + /// The disclaimer for a community gallery resource. + /// The artifact tags of a community gallery resource. + internal CommunityGalleryImageData(string name, AzureLocation? location, ResourceType? resourceType, string uniqueId, SupportedOperatingSystemType? osType, OperatingSystemStateType? osState, DateTimeOffset? endOfLifeOn, CommunityGalleryImageIdentifier imageIdentifier, RecommendedMachineConfiguration recommended, Disallowed disallowed, HyperVGeneration? hyperVGeneration, IReadOnlyList features, ImagePurchasePlan purchasePlan, ArchitectureType? architecture, Uri privacyStatementUri, string eula, string disclaimer, IReadOnlyDictionary artifactTags) : base(name, location, resourceType, uniqueId) { OSType = osType; OSState = osState; @@ -55,9 +58,11 @@ internal CommunityGalleryImageData(string name, AzureLocation? location, Resourc Architecture = architecture; PrivacyStatementUri = privacyStatementUri; Eula = eula; + Disclaimer = disclaimer; + ArtifactTags = artifactTags; } - /// 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. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// 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.**. public SupportedOperatingSystemType? OSType { get; } /// This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. public OperatingSystemStateType? OSState { get; } @@ -83,10 +88,14 @@ public IList DisallowedDiskTypes public ImagePurchasePlan PurchasePlan { get; } /// The architecture of the image. Applicable to OS disks only. public ArchitectureType? Architecture { get; } - /// Privacy statement uri for the current community gallery image. + /// Privacy statement URI for the current community gallery image. public Uri PrivacyStatementUri { get; } - /// End-user license agreement for the current community gallery image. + /// The end-user license agreement for the current community gallery image. public string Eula { get; } + /// The disclaimer for a community gallery resource. + public string Disclaimer { get; } + /// The artifact tags of a community gallery resource. + public IReadOnlyDictionary ArtifactTags { get; } /// The resource identifier. public ResourceIdentifier Id { get; internal set; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageVersionData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageVersionData.cs index 09f380d230c9..75d0d52d0f82 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageVersionData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageVersionData.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Compute.Models; @@ -20,6 +21,7 @@ public partial class CommunityGalleryImageVersionData : PirCommunityGalleryResou /// Initializes a new instance of CommunityGalleryImageVersionData. internal CommunityGalleryImageVersionData() { + ArtifactTags = new ChangeTrackingDictionary(); } /// Initializes a new instance of CommunityGalleryImageVersionData. @@ -31,12 +33,16 @@ internal CommunityGalleryImageVersionData() /// The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable. /// If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version. /// Describes the storage profile of the image version. - internal CommunityGalleryImageVersionData(string name, AzureLocation? location, ResourceType? resourceType, string uniqueId, DateTimeOffset? publishedOn, DateTimeOffset? endOfLifeOn, bool? isExcludedFromLatest, SharedGalleryImageVersionStorageProfile storageProfile) : base(name, location, resourceType, uniqueId) + /// The disclaimer for a community gallery resource. + /// The artifact tags of a community gallery resource. + internal CommunityGalleryImageVersionData(string name, AzureLocation? location, ResourceType? resourceType, string uniqueId, DateTimeOffset? publishedOn, DateTimeOffset? endOfLifeOn, bool? isExcludedFromLatest, SharedGalleryImageVersionStorageProfile storageProfile, string disclaimer, IReadOnlyDictionary artifactTags) : base(name, location, resourceType, uniqueId) { PublishedOn = publishedOn; EndOfLifeOn = endOfLifeOn; IsExcludedFromLatest = isExcludedFromLatest; StorageProfile = storageProfile; + Disclaimer = disclaimer; + ArtifactTags = artifactTags; } /// The published date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable. @@ -47,6 +53,10 @@ internal CommunityGalleryImageVersionData(string name, AzureLocation? location, public bool? IsExcludedFromLatest { get; } /// Describes the storage profile of the image version. public SharedGalleryImageVersionStorageProfile StorageProfile { get; } + /// The disclaimer for a community gallery resource. + public string Disclaimer { get; } + /// The artifact tags of a community gallery resource. + public IReadOnlyDictionary ArtifactTags { get; } /// The resource identifier. public ResourceIdentifier Id { get; internal set; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationData.cs index 9a2bc8669b48..d8e26722bdef 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationData.cs @@ -38,7 +38,7 @@ public GalleryApplicationData(AzureLocation location) : base(location) /// The privacy statement uri. /// The release note uri. /// The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable. - /// This property allows you to specify the supported type of the OS that application is built for. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// This property allows you to specify the supported type of the OS that application is built for. Possible values are: **Windows,** **Linux.**. /// A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application. internal GalleryApplicationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string description, string eula, Uri privacyStatementUri, Uri releaseNoteUri, DateTimeOffset? endOfLifeOn, SupportedOperatingSystemType? supportedOSType, IList customActions) : base(id, name, resourceType, systemData, tags, location) { @@ -61,7 +61,7 @@ internal GalleryApplicationData(ResourceIdentifier id, string name, ResourceType public Uri ReleaseNoteUri { get; set; } /// The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable. public DateTimeOffset? EndOfLifeOn { get; set; } - /// This property allows you to specify the supported type of the OS that application is built for. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// This property allows you to specify the supported type of the OS that application is built for. Possible values are: **Windows,** **Linux.**. public SupportedOperatingSystemType? SupportedOSType { get; set; } /// A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application. public IList CustomActions { get; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageData.cs index a804f059690a..ed867471fe98 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageData.cs @@ -37,7 +37,7 @@ public GalleryImageData(AzureLocation location) : base(location) /// The Eula agreement for the gallery image definition. /// The privacy statement uri. /// The release note uri. - /// 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. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// 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.**. /// This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. /// The hypervisor generation of the Virtual Machine. Applicable to OS disks only. /// The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable. @@ -75,7 +75,7 @@ internal GalleryImageData(ResourceIdentifier id, string name, ResourceType resou public Uri PrivacyStatementUri { get; set; } /// The release note uri. public Uri ReleaseNoteUri { get; set; } - /// 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. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// 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.**. public SupportedOperatingSystemType? OSType { get; set; } /// This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. public OperatingSystemStateType? OSState { get; set; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryData.Serialization.cs index bb79f2de5be1..d5025eb08652 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryData.Serialization.cs @@ -5,8 +5,10 @@ #nullable disable +using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.ResourceManager.Compute.Models; namespace Azure.ResourceManager.Compute { @@ -21,6 +23,9 @@ internal static CommunityGalleryData DeserializeCommunityGalleryData(JsonElement Optional name = default; Optional location = default; Optional type = default; + Optional disclaimer = default; + Optional> artifactTags = default; + Optional communityMetadata = default; Optional uniqueId = default; foreach (var property in element.EnumerateObject()) { @@ -47,6 +52,46 @@ internal static CommunityGalleryData DeserializeCommunityGalleryData(JsonElement type = new ResourceType(property.Value.GetString()); continue; } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("disclaimer"u8)) + { + disclaimer = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("artifactTags"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property1 in property0.Value.EnumerateObject()) + { + dictionary.Add(property1.Name, property1.Value.GetString()); + } + artifactTags = dictionary; + continue; + } + if (property0.NameEquals("communityMetadata"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + communityMetadata = CommunityGalleryMetadata.DeserializeCommunityGalleryMetadata(property0.Value); + continue; + } + } + continue; + } if (property.NameEquals("identifier"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -65,7 +110,7 @@ internal static CommunityGalleryData DeserializeCommunityGalleryData(JsonElement continue; } } - return new CommunityGalleryData(name.Value, Optional.ToNullable(location), Optional.ToNullable(type), uniqueId.Value); + return new CommunityGalleryData(name.Value, Optional.ToNullable(location), Optional.ToNullable(type), uniqueId.Value, disclaimer.Value, Optional.ToDictionary(artifactTags), communityMetadata.Value); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageData.Serialization.cs index 200b3dfa595c..4657304c3a1c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageData.Serialization.cs @@ -36,6 +36,8 @@ internal static CommunityGalleryImageData DeserializeCommunityGalleryImageData(J Optional architecture = default; Optional privacyStatementUri = default; Optional eula = default; + Optional disclaimer = default; + Optional> artifactTags = default; Optional uniqueId = default; foreach (var property in element.EnumerateObject()) { @@ -180,6 +182,25 @@ internal static CommunityGalleryImageData DeserializeCommunityGalleryImageData(J eula = property0.Value.GetString(); continue; } + if (property0.NameEquals("disclaimer"u8)) + { + disclaimer = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("artifactTags"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property1 in property0.Value.EnumerateObject()) + { + dictionary.Add(property1.Name, property1.Value.GetString()); + } + artifactTags = dictionary; + continue; + } } continue; } @@ -201,7 +222,7 @@ internal static CommunityGalleryImageData DeserializeCommunityGalleryImageData(J continue; } } - return new CommunityGalleryImageData(name.Value, Optional.ToNullable(location), Optional.ToNullable(type), uniqueId.Value, Optional.ToNullable(osType), Optional.ToNullable(osState), Optional.ToNullable(endOfLifeDate), identifier.Value, recommended.Value, disallowed.Value, Optional.ToNullable(hyperVGeneration), Optional.ToList(features), purchasePlan.Value, Optional.ToNullable(architecture), privacyStatementUri.Value, eula.Value); + return new CommunityGalleryImageData(name.Value, Optional.ToNullable(location), Optional.ToNullable(type), uniqueId.Value, Optional.ToNullable(osType), Optional.ToNullable(osState), Optional.ToNullable(endOfLifeDate), identifier.Value, recommended.Value, disallowed.Value, Optional.ToNullable(hyperVGeneration), Optional.ToList(features), purchasePlan.Value, Optional.ToNullable(architecture), privacyStatementUri.Value, eula.Value, disclaimer.Value, Optional.ToDictionary(artifactTags)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageList.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageList.cs index b0f3e11c392c..f24474ec02a3 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageList.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageList.cs @@ -28,7 +28,7 @@ internal CommunityGalleryImageList(IEnumerable value) /// Initializes a new instance of CommunityGalleryImageList. /// A list of community gallery images. - /// The uri to fetch the next page of community gallery images. Call ListNext() with this to fetch the next page of community gallery images. + /// The URI to fetch the next page of community gallery images. Call ListNext() with this to fetch the next page of community gallery images. internal CommunityGalleryImageList(IReadOnlyList value, string nextLink) { Value = value; @@ -37,7 +37,7 @@ internal CommunityGalleryImageList(IReadOnlyList valu /// A list of community gallery images. public IReadOnlyList Value { get; } - /// The uri to fetch the next page of community gallery images. Call ListNext() with this to fetch the next page of community gallery images. + /// The URI to fetch the next page of community gallery images. Call ListNext() with this to fetch the next page of community gallery images. public string NextLink { get; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageVersionData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageVersionData.Serialization.cs index 8674dd521440..87c56498f5f4 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageVersionData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageVersionData.Serialization.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using System.Collections.Generic; using System.Text.Json; using Azure.Core; using Azure.ResourceManager.Compute.Models; @@ -27,6 +28,8 @@ internal static CommunityGalleryImageVersionData DeserializeCommunityGalleryImag Optional endOfLifeDate = default; Optional excludeFromLatest = default; Optional storageProfile = default; + Optional disclaimer = default; + Optional> artifactTags = default; Optional uniqueId = default; foreach (var property in element.EnumerateObject()) { @@ -98,6 +101,25 @@ internal static CommunityGalleryImageVersionData DeserializeCommunityGalleryImag storageProfile = SharedGalleryImageVersionStorageProfile.DeserializeSharedGalleryImageVersionStorageProfile(property0.Value); continue; } + if (property0.NameEquals("disclaimer"u8)) + { + disclaimer = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("artifactTags"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property1 in property0.Value.EnumerateObject()) + { + dictionary.Add(property1.Name, property1.Value.GetString()); + } + artifactTags = dictionary; + continue; + } } continue; } @@ -119,7 +141,7 @@ internal static CommunityGalleryImageVersionData DeserializeCommunityGalleryImag continue; } } - return new CommunityGalleryImageVersionData(name.Value, Optional.ToNullable(location), Optional.ToNullable(type), uniqueId.Value, Optional.ToNullable(publishedDate), Optional.ToNullable(endOfLifeDate), Optional.ToNullable(excludeFromLatest), storageProfile.Value); + return new CommunityGalleryImageVersionData(name.Value, Optional.ToNullable(location), Optional.ToNullable(type), uniqueId.Value, Optional.ToNullable(publishedDate), Optional.ToNullable(endOfLifeDate), Optional.ToNullable(excludeFromLatest), storageProfile.Value, disclaimer.Value, Optional.ToDictionary(artifactTags)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageVersionList.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageVersionList.cs index 8b6b7dbd9433..bf47e669a28f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageVersionList.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageVersionList.cs @@ -28,7 +28,7 @@ internal CommunityGalleryImageVersionList(IEnumerable Initializes a new instance of CommunityGalleryImageVersionList. /// A list of community gallery image versions. - /// The uri to fetch the next page of community gallery image versions. Call ListNext() with this to fetch the next page of community gallery image versions. + /// The URI to fetch the next page of community gallery image versions. Call ListNext() with this to fetch the next page of community gallery image versions. internal CommunityGalleryImageVersionList(IReadOnlyList value, string nextLink) { Value = value; @@ -37,7 +37,7 @@ internal CommunityGalleryImageVersionList(IReadOnlyList A list of community gallery image versions. public IReadOnlyList Value { get; } - /// The uri to fetch the next page of community gallery image versions. Call ListNext() with this to fetch the next page of community gallery image versions. + /// The URI to fetch the next page of community gallery image versions. Call ListNext() with this to fetch the next page of community gallery image versions. public string NextLink { get; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryMetadata.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryMetadata.Serialization.cs new file mode 100644 index 000000000000..9c98c1681aa2 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryMetadata.Serialization.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class CommunityGalleryMetadata + { + internal static CommunityGalleryMetadata DeserializeCommunityGalleryMetadata(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional publisherUri = default; + Optional publisherContact = default; + Optional eula = default; + Optional> publicNames = default; + Optional privacyStatementUri = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("publisherUri"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + publisherUri = new Uri(property.Value.GetString()); + continue; + } + if (property.NameEquals("publisherContact"u8)) + { + publisherContact = property.Value.GetString(); + continue; + } + if (property.NameEquals("eula"u8)) + { + eula = property.Value.GetString(); + continue; + } + if (property.NameEquals("publicNames"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + publicNames = array; + continue; + } + if (property.NameEquals("privacyStatementUri"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + privacyStatementUri = new Uri(property.Value.GetString()); + continue; + } + } + return new CommunityGalleryMetadata(publisherUri.Value, publisherContact.Value, eula.Value, Optional.ToList(publicNames), privacyStatementUri.Value); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryMetadata.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryMetadata.cs new file mode 100644 index 000000000000..96d7663cc7f9 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryMetadata.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + /// The metadata of community gallery. + public partial class CommunityGalleryMetadata + { + /// Initializes a new instance of CommunityGalleryMetadata. + internal CommunityGalleryMetadata() + { + PublicNames = new ChangeTrackingList(); + } + + /// Initializes a new instance of CommunityGalleryMetadata. + /// The publisher URI of this community gallery. + /// The publisher contact of this community gallery. + /// The end-user license agreement for this community gallery. + /// A list of public names the gallery has. + /// The link for the privacy statement of this community gallery from the gallery publisher. + internal CommunityGalleryMetadata(Uri publisherUri, string publisherContact, string eula, IReadOnlyList publicNames, Uri privacyStatementUri) + { + PublisherUri = publisherUri; + PublisherContact = publisherContact; + Eula = eula; + PublicNames = publicNames; + PrivacyStatementUri = privacyStatementUri; + } + + /// The publisher URI of this community gallery. + public Uri PublisherUri { get; } + /// The publisher contact of this community gallery. + public string PublisherContact { get; } + /// The end-user license agreement for this community gallery. + public string Eula { get; } + /// A list of public names the gallery has. + public IReadOnlyList PublicNames { get; } + /// The link for the privacy statement of this community gallery from the gallery publisher. + public Uri PrivacyStatementUri { get; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationPatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationPatch.cs index 247a5fbae051..5251fac1722a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationPatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationPatch.cs @@ -32,7 +32,7 @@ public GalleryApplicationPatch() public Uri ReleaseNoteUri { get; set; } /// The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable. public DateTimeOffset? EndOfLifeOn { get; set; } - /// This property allows you to specify the supported type of the OS that application is built for. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// This property allows you to specify the supported type of the OS that application is built for. Possible values are: **Windows,** **Linux.**. public SupportedOperatingSystemType? SupportedOSType { get; set; } /// A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application. public IList CustomActions { get; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImagePatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImagePatch.cs index dfd879ff37dd..4ffa81fe52e6 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImagePatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImagePatch.cs @@ -30,7 +30,7 @@ public GalleryImagePatch() public Uri PrivacyStatementUri { get; set; } /// The release note uri. public Uri ReleaseNoteUri { get; set; } - /// 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. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// 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.**. public SupportedOperatingSystemType? OSType { get; set; } /// This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. public OperatingSystemStateType? OSState { get; set; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GallerySharingPermissionType.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GallerySharingPermissionType.cs index a77f3a4108db..dd12f5c9952a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GallerySharingPermissionType.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GallerySharingPermissionType.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Compute.Models { - /// This property allows you to specify the permission of sharing gallery. <br><br> Possible values are: <br><br> **Private** <br><br> **Groups** <br><br> **Community**. + /// This property allows you to specify the permission of sharing gallery. Possible values are: **Private,** **Groups,** **Community.**. public readonly partial struct GallerySharingPermissionType : IEquatable { private readonly string _value; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryData.Serialization.cs index d0d6cf0422a7..f71fa533683b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryData.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System.Collections.Generic; using System.Text.Json; using Azure.Core; @@ -20,6 +21,7 @@ internal static SharedGalleryData DeserializeSharedGalleryData(JsonElement eleme } Optional name = default; Optional location = default; + Optional> artifactTags = default; Optional uniqueId = default; foreach (var property in element.EnumerateObject()) { @@ -37,6 +39,32 @@ internal static SharedGalleryData DeserializeSharedGalleryData(JsonElement eleme location = new AzureLocation(property.Value.GetString()); continue; } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("artifactTags"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property1 in property0.Value.EnumerateObject()) + { + dictionary.Add(property1.Name, property1.Value.GetString()); + } + artifactTags = dictionary; + continue; + } + } + continue; + } if (property.NameEquals("identifier"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -55,7 +83,7 @@ internal static SharedGalleryData DeserializeSharedGalleryData(JsonElement eleme continue; } } - return new SharedGalleryData(name.Value, Optional.ToNullable(location), uniqueId.Value); + return new SharedGalleryData(name.Value, Optional.ToNullable(location), uniqueId.Value, Optional.ToDictionary(artifactTags)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageData.Serialization.cs index b963e0fbe9f4..d4ac9f600700 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageData.Serialization.cs @@ -35,6 +35,7 @@ internal static SharedGalleryImageData DeserializeSharedGalleryImageData(JsonEle Optional architecture = default; Optional privacyStatementUri = default; Optional eula = default; + Optional> artifactTags = default; Optional uniqueId = default; foreach (var property in element.EnumerateObject()) { @@ -170,6 +171,20 @@ internal static SharedGalleryImageData DeserializeSharedGalleryImageData(JsonEle eula = property0.Value.GetString(); continue; } + if (property0.NameEquals("artifactTags"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property1 in property0.Value.EnumerateObject()) + { + dictionary.Add(property1.Name, property1.Value.GetString()); + } + artifactTags = dictionary; + continue; + } } continue; } @@ -191,7 +206,7 @@ internal static SharedGalleryImageData DeserializeSharedGalleryImageData(JsonEle continue; } } - return new SharedGalleryImageData(name.Value, Optional.ToNullable(location), uniqueId.Value, Optional.ToNullable(osType), Optional.ToNullable(osState), Optional.ToNullable(endOfLifeDate), identifier.Value, recommended.Value, disallowed.Value, Optional.ToNullable(hyperVGeneration), Optional.ToList(features), purchasePlan.Value, Optional.ToNullable(architecture), privacyStatementUri.Value, eula.Value); + return new SharedGalleryImageData(name.Value, Optional.ToNullable(location), uniqueId.Value, Optional.ToNullable(osType), Optional.ToNullable(osState), Optional.ToNullable(endOfLifeDate), identifier.Value, recommended.Value, disallowed.Value, Optional.ToNullable(hyperVGeneration), Optional.ToList(features), purchasePlan.Value, Optional.ToNullable(architecture), privacyStatementUri.Value, eula.Value, Optional.ToDictionary(artifactTags)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageVersionData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageVersionData.Serialization.cs index 01cb0e9aef82..b625f6d279cd 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageVersionData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageVersionData.Serialization.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using System.Collections.Generic; using System.Text.Json; using Azure.Core; using Azure.ResourceManager.Compute.Models; @@ -26,6 +27,7 @@ internal static SharedGalleryImageVersionData DeserializeSharedGalleryImageVersi Optional endOfLifeDate = default; Optional excludeFromLatest = default; Optional storageProfile = default; + Optional> artifactTags = default; Optional uniqueId = default; foreach (var property in element.EnumerateObject()) { @@ -88,6 +90,20 @@ internal static SharedGalleryImageVersionData DeserializeSharedGalleryImageVersi storageProfile = SharedGalleryImageVersionStorageProfile.DeserializeSharedGalleryImageVersionStorageProfile(property0.Value); continue; } + if (property0.NameEquals("artifactTags"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property1 in property0.Value.EnumerateObject()) + { + dictionary.Add(property1.Name, property1.Value.GetString()); + } + artifactTags = dictionary; + continue; + } } continue; } @@ -109,7 +125,7 @@ internal static SharedGalleryImageVersionData DeserializeSharedGalleryImageVersi continue; } } - return new SharedGalleryImageVersionData(name.Value, Optional.ToNullable(location), uniqueId.Value, Optional.ToNullable(publishedDate), Optional.ToNullable(endOfLifeDate), Optional.ToNullable(excludeFromLatest), storageProfile.Value); + return new SharedGalleryImageVersionData(name.Value, Optional.ToNullable(location), uniqueId.Value, Optional.ToNullable(publishedDate), Optional.ToNullable(endOfLifeDate), Optional.ToNullable(excludeFromLatest), storageProfile.Value, Optional.ToDictionary(artifactTags)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfile.cs index 3c9bd5db87b3..150b44681d24 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfile.cs @@ -20,7 +20,7 @@ public SharingProfile() } /// Initializes a new instance of SharingProfile. - /// This property allows you to specify the permission of sharing gallery. <br><br> Possible values are: <br><br> **Private** <br><br> **Groups** <br><br> **Community**. + /// This property allows you to specify the permission of sharing gallery. Possible values are: **Private,** **Groups,** **Community.**. /// A list of sharing profile groups. /// Information of community gallery if current gallery is shared to community. internal SharingProfile(GallerySharingPermissionType? permission, IReadOnlyList groups, CommunityGalleryInfo communityGalleryInfo) @@ -30,7 +30,7 @@ internal SharingProfile(GallerySharingPermissionType? permission, IReadOnlyList< CommunityGalleryInfo = communityGalleryInfo; } - /// This property allows you to specify the permission of sharing gallery. <br><br> Possible values are: <br><br> **Private** <br><br> **Groups** <br><br> **Community**. + /// This property allows you to specify the permission of sharing gallery. Possible values are: **Private,** **Groups,** **Community.**. public GallerySharingPermissionType? Permission { get; set; } /// A list of sharing profile groups. public IReadOnlyList Groups { get; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfileGroup.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfileGroup.cs index cfb3ed43c9b2..508ab88a8f33 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfileGroup.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfileGroup.cs @@ -20,7 +20,7 @@ public SharingProfileGroup() } /// Initializes a new instance of SharingProfileGroup. - /// This property allows you to specify the type of sharing group. <br><br> Possible values are: <br><br> **Subscriptions** <br><br> **AADTenants**. + /// This property allows you to specify the type of sharing group. Possible values are: **Subscriptions,** **AADTenants.**. /// A list of subscription/tenant ids the gallery is aimed to be shared to. internal SharingProfileGroup(SharingProfileGroupType? groupType, IList ids) { @@ -28,7 +28,7 @@ internal SharingProfileGroup(SharingProfileGroupType? groupType, IList i Ids = ids; } - /// This property allows you to specify the type of sharing group. <br><br> Possible values are: <br><br> **Subscriptions** <br><br> **AADTenants**. + /// This property allows you to specify the type of sharing group. Possible values are: **Subscriptions,** **AADTenants.**. public SharingProfileGroupType? GroupType { get; set; } /// A list of subscription/tenant ids the gallery is aimed to be shared to. public IList Ids { get; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfileGroupType.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfileGroupType.cs index 3a405773b878..a5d63ba37f5a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfileGroupType.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfileGroupType.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Compute.Models { - /// This property allows you to specify the type of sharing group. <br><br> Possible values are: <br><br> **Subscriptions** <br><br> **AADTenants**. + /// This property allows you to specify the type of sharing group. Possible values are: **Subscriptions,** **AADTenants.**. public readonly partial struct SharingProfileGroupType : IEquatable { private readonly string _value; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingUpdate.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingUpdate.cs index a20229b5daa2..a34134d11e4f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingUpdate.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingUpdate.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.Compute.Models public partial class SharingUpdate { /// Initializes a new instance of SharingUpdate. - /// This property allows you to specify the operation type of gallery sharing update. <br><br> Possible values are: <br><br> **Add** <br><br> **Remove** <br><br> **Reset**. + /// This property allows you to specify the operation type of gallery sharing update. Possible values are: **Add,** **Remove,** **Reset.**. public SharingUpdate(SharingUpdateOperationType operationType) { OperationType = operationType; @@ -22,7 +22,7 @@ public SharingUpdate(SharingUpdateOperationType operationType) } /// Initializes a new instance of SharingUpdate. - /// This property allows you to specify the operation type of gallery sharing update. <br><br> Possible values are: <br><br> **Add** <br><br> **Remove** <br><br> **Reset**. + /// This property allows you to specify the operation type of gallery sharing update. Possible values are: **Add,** **Remove,** **Reset.**. /// A list of sharing profile groups. internal SharingUpdate(SharingUpdateOperationType operationType, IList groups) { @@ -30,7 +30,7 @@ internal SharingUpdate(SharingUpdateOperationType operationType, IList This property allows you to specify the operation type of gallery sharing update. <br><br> Possible values are: <br><br> **Add** <br><br> **Remove** <br><br> **Reset**. + /// This property allows you to specify the operation type of gallery sharing update. Possible values are: **Add,** **Remove,** **Reset.**. public SharingUpdateOperationType OperationType { get; set; } /// A list of sharing profile groups. public IList Groups { get; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingUpdateOperationType.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingUpdateOperationType.cs index 5b5921803802..91089826852c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingUpdateOperationType.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingUpdateOperationType.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Compute.Models { - /// This property allows you to specify the operation type of gallery sharing update. <br><br> Possible values are: <br><br> **Add** <br><br> **Remove** <br><br> **Reset**. + /// This property allows you to specify the operation type of gallery sharing update. Possible values are: **Add,** **Remove,** **Reset.**. public readonly partial struct SharingUpdateOperationType : IEquatable { private readonly string _value; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SupportedOperatingSystemType.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SupportedOperatingSystemType.cs index 1f72c2c1377c..d61b646253ec 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SupportedOperatingSystemType.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SupportedOperatingSystemType.cs @@ -7,7 +7,7 @@ namespace Azure.ResourceManager.Compute.Models { - /// This property allows you to specify the supported type of the OS that application is built for. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// This property allows you to specify the supported type of the OS that application is built for. Possible values are: **Windows,** **Linux.**. public enum SupportedOperatingSystemType { /// Windows. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleriesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleriesRestOperations.cs index a0c5e45f0f72..15d5a47f52fb 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleriesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleriesRestOperations.cs @@ -32,7 +32,7 @@ public CommunityGalleriesRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-03"; + _apiVersion = apiVersion ?? "2022-08-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImageVersionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImageVersionsRestOperations.cs index 546add324c4b..a0ec5f04f730 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImageVersionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImageVersionsRestOperations.cs @@ -33,7 +33,7 @@ public CommunityGalleryImageVersionsRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-03"; + _apiVersion = apiVersion ?? "2022-08-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImagesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImagesRestOperations.cs index 65b4b911949b..4f7bd2e7b4f3 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImagesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImagesRestOperations.cs @@ -33,7 +33,7 @@ public CommunityGalleryImagesRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-03"; + _apiVersion = apiVersion ?? "2022-08-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleriesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleriesRestOperations.cs index 72e0720cc9c6..60de714d8b00 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleriesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleriesRestOperations.cs @@ -33,7 +33,7 @@ public GalleriesRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-03"; + _apiVersion = apiVersion ?? "2022-08-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationVersionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationVersionsRestOperations.cs index 921a082f3e45..443a411aadbc 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationVersionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationVersionsRestOperations.cs @@ -33,7 +33,7 @@ public GalleryApplicationVersionsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-03"; + _apiVersion = apiVersion ?? "2022-08-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationsRestOperations.cs index f9138010cee5..1c3e230cbeab 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationsRestOperations.cs @@ -33,7 +33,7 @@ public GalleryApplicationsRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-03"; + _apiVersion = apiVersion ?? "2022-08-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImageVersionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImageVersionsRestOperations.cs index b795a30ec815..64f207b01dd4 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImageVersionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImageVersionsRestOperations.cs @@ -33,7 +33,7 @@ public GalleryImageVersionsRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-03"; + _apiVersion = apiVersion ?? "2022-08-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImagesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImagesRestOperations.cs index a925633fbe46..4797d04db391 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImagesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImagesRestOperations.cs @@ -33,7 +33,7 @@ public GalleryImagesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-03"; + _apiVersion = apiVersion ?? "2022-08-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GallerySharingProfileRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GallerySharingProfileRestOperations.cs index 1bf4fcfbabde..7cbb359084af 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GallerySharingProfileRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GallerySharingProfileRestOperations.cs @@ -32,7 +32,7 @@ public GallerySharingProfileRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-03"; + _apiVersion = apiVersion ?? "2022-08-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleriesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleriesRestOperations.cs index c00c1001b154..82939c0c0a49 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleriesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleriesRestOperations.cs @@ -33,7 +33,7 @@ public SharedGalleriesRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-03"; + _apiVersion = apiVersion ?? "2022-08-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImageVersionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImageVersionsRestOperations.cs index 18630dfac577..3e8c708b5780 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImageVersionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImageVersionsRestOperations.cs @@ -33,7 +33,7 @@ public SharedGalleryImageVersionsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-03"; + _apiVersion = apiVersion ?? "2022-08-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImagesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImagesRestOperations.cs index fa8066f70fd2..0d4c09f5977d 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImagesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImagesRestOperations.cs @@ -33,7 +33,7 @@ public SharedGalleryImagesRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-03"; + _apiVersion = apiVersion ?? "2022-08-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryData.cs index e3c6c7644910..6b0856a48a45 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryData.cs @@ -5,6 +5,7 @@ #nullable disable +using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Compute.Models; @@ -19,16 +20,21 @@ public partial class SharedGalleryData : PirSharedGalleryResourceData /// Initializes a new instance of SharedGalleryData. internal SharedGalleryData() { + ArtifactTags = new ChangeTrackingDictionary(); } /// Initializes a new instance of SharedGalleryData. /// Resource name. /// Resource location. /// The unique id of this shared gallery. - internal SharedGalleryData(string name, AzureLocation? location, string uniqueId) : base(name, location, uniqueId) + /// The artifact tags of a shared gallery resource. + internal SharedGalleryData(string name, AzureLocation? location, string uniqueId, IReadOnlyDictionary artifactTags) : base(name, location, uniqueId) { + ArtifactTags = artifactTags; } + /// The artifact tags of a shared gallery resource. + public IReadOnlyDictionary ArtifactTags { get; } /// The resource identifier. public ResourceIdentifier Id { get; internal set; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageData.cs index 53cbb39080d7..27f614f72b81 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageData.cs @@ -22,13 +22,14 @@ public partial class SharedGalleryImageData : PirSharedGalleryResourceData internal SharedGalleryImageData() { Features = new ChangeTrackingList(); + ArtifactTags = new ChangeTrackingDictionary(); } /// Initializes a new instance of SharedGalleryImageData. /// Resource name. /// Resource location. /// The unique id of this shared gallery. - /// 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. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// 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.**. /// This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. /// The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable. /// This is the gallery image definition identifier. @@ -40,7 +41,8 @@ internal SharedGalleryImageData() /// The architecture of the image. Applicable to OS disks only. /// Privacy statement uri for the current community gallery image. /// End-user license agreement for the current community gallery image. - internal SharedGalleryImageData(string name, AzureLocation? location, string uniqueId, SupportedOperatingSystemType? osType, OperatingSystemStateType? osState, DateTimeOffset? endOfLifeOn, GalleryImageIdentifier identifier, RecommendedMachineConfiguration recommended, Disallowed disallowed, HyperVGeneration? hyperVGeneration, IReadOnlyList features, ImagePurchasePlan purchasePlan, ArchitectureType? architecture, Uri privacyStatementUri, string eula) : base(name, location, uniqueId) + /// The artifact tags of a shared gallery resource. + internal SharedGalleryImageData(string name, AzureLocation? location, string uniqueId, SupportedOperatingSystemType? osType, OperatingSystemStateType? osState, DateTimeOffset? endOfLifeOn, GalleryImageIdentifier identifier, RecommendedMachineConfiguration recommended, Disallowed disallowed, HyperVGeneration? hyperVGeneration, IReadOnlyList features, ImagePurchasePlan purchasePlan, ArchitectureType? architecture, Uri privacyStatementUri, string eula, IReadOnlyDictionary artifactTags) : base(name, location, uniqueId) { OSType = osType; OSState = osState; @@ -54,9 +56,10 @@ internal SharedGalleryImageData(string name, AzureLocation? location, string uni Architecture = architecture; PrivacyStatementUri = privacyStatementUri; Eula = eula; + ArtifactTags = artifactTags; } - /// 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. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// 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.**. public SupportedOperatingSystemType? OSType { get; } /// This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. public OperatingSystemStateType? OSState { get; } @@ -86,6 +89,8 @@ public IList DisallowedDiskTypes public Uri PrivacyStatementUri { get; } /// End-user license agreement for the current community gallery image. public string Eula { get; } + /// The artifact tags of a shared gallery resource. + public IReadOnlyDictionary ArtifactTags { get; } /// The resource identifier. public ResourceIdentifier Id { get; internal set; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageVersionData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageVersionData.cs index c7ac85b4cfad..5772471b123d 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageVersionData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageVersionData.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Compute.Models; @@ -20,6 +21,7 @@ public partial class SharedGalleryImageVersionData : PirSharedGalleryResourceDat /// Initializes a new instance of SharedGalleryImageVersionData. internal SharedGalleryImageVersionData() { + ArtifactTags = new ChangeTrackingDictionary(); } /// Initializes a new instance of SharedGalleryImageVersionData. @@ -30,12 +32,14 @@ internal SharedGalleryImageVersionData() /// The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable. /// If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version. /// Describes the storage profile of the image version. - internal SharedGalleryImageVersionData(string name, AzureLocation? location, string uniqueId, DateTimeOffset? publishedOn, DateTimeOffset? endOfLifeOn, bool? isExcludedFromLatest, SharedGalleryImageVersionStorageProfile storageProfile) : base(name, location, uniqueId) + /// The artifact tags of a shared gallery resource. + internal SharedGalleryImageVersionData(string name, AzureLocation? location, string uniqueId, DateTimeOffset? publishedOn, DateTimeOffset? endOfLifeOn, bool? isExcludedFromLatest, SharedGalleryImageVersionStorageProfile storageProfile, IReadOnlyDictionary artifactTags) : base(name, location, uniqueId) { PublishedOn = publishedOn; EndOfLifeOn = endOfLifeOn; IsExcludedFromLatest = isExcludedFromLatest; StorageProfile = storageProfile; + ArtifactTags = artifactTags; } /// The published date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable. @@ -46,6 +50,8 @@ internal SharedGalleryImageVersionData(string name, AzureLocation? location, str public bool? IsExcludedFromLatest { get; } /// Describes the storage profile of the image version. public SharedGalleryImageVersionStorageProfile StorageProfile { get; } + /// The artifact tags of a shared gallery resource. + public IReadOnlyDictionary ArtifactTags { get; } /// The resource identifier. public ResourceIdentifier Id { get; internal set; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md b/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md index 4e103c06ce2a..2d323b08bf11 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md +++ b/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md @@ -10,7 +10,7 @@ Run `dotnet build /t:GenerateCode` to generate code. azure-arm: true library-name: Compute namespace: Azure.ResourceManager.Compute -require: https://github.com/Azure/azure-rest-api-specs/blob/cd53bce8cf73f7e7ba6cf5ab32baffbe529ae1fb/specification/compute/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/compute/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true