diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ArmComputeModelFactory.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ArmComputeModelFactory.cs index d8eb0651dac5..a466a1088062 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ArmComputeModelFactory.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ArmComputeModelFactory.cs @@ -1765,7 +1765,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. @@ -1823,7 +1823,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. @@ -1833,7 +1833,7 @@ public static RegionalSharingStatus RegionalSharingStatus(string region = null, /// Describes the gallery image definition purchase plan. This is used by marketplace images. /// The provisioning state, which only appears in the response. /// A list of gallery image features. - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. /// A new instance for mocking. public static GalleryImageData GalleryImageData(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, SupportedOperatingSystemType? osType = null, OperatingSystemStateType? osState = null, HyperVGeneration? hyperVGeneration = null, DateTimeOffset? endOfLifeOn = null, GalleryImageIdentifier identifier = null, RecommendedMachineConfiguration recommended = null, IEnumerable disallowedDiskTypes = null, ImagePurchasePlan purchasePlan = null, GalleryProvisioningState? provisioningState = null, IEnumerable features = null, ArchitectureType? architecture = null) { @@ -1986,7 +1986,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) @@ -2046,10 +2046,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. @@ -2075,7 +2078,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. @@ -2084,16 +2087,18 @@ public static PirResourceData PirResourceData(string name = null, AzureLocation? /// The hypervisor generation of the Virtual Machine. Applicable to OS disks only. /// 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. + /// CPU architecture supported by an OS disk. /// 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. @@ -2104,10 +2109,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. @@ -2154,10 +2162,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 eula of this community gallery. + /// A list of public names the gallery has. + /// The privacyStatementUri of this community gallery. + /// 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. @@ -2176,7 +2203,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. @@ -2185,16 +2212,19 @@ public static PirCommunityGalleryResourceData PirCommunityGalleryResourceData(st /// The hypervisor generation of the Virtual Machine. Applicable to OS disks only. /// 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. + /// CPU architecture supported by an OS disk. /// Privacy statement uri for the current community gallery image. /// 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. @@ -2216,10 +2246,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..fc60240faa9d 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. @@ -38,10 +39,12 @@ internal CommunityGalleryImageData() /// The hypervisor generation of the Virtual Machine. Applicable to OS disks only. /// 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. + /// CPU architecture supported by an OS disk. /// 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) + /// 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; } @@ -81,12 +86,16 @@ public IList DisallowedDiskTypes public IReadOnlyList Features { get; } /// Describes the gallery image definition purchase plan. This is used by marketplace images. public ImagePurchasePlan PurchasePlan { get; } - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. public ArchitectureType? Architecture { get; } /// Privacy statement uri for the current community gallery image. public Uri PrivacyStatementUri { get; } /// 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..9b6e489c8291 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. @@ -47,7 +47,7 @@ public GalleryImageData(AzureLocation location) : base(location) /// Describes the gallery image definition purchase plan. This is used by marketplace images. /// The provisioning state, which only appears in the response. /// A list of gallery image features. - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. internal GalleryImageData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string description, string eula, Uri privacyStatementUri, Uri releaseNoteUri, SupportedOperatingSystemType? osType, OperatingSystemStateType? osState, HyperVGeneration? hyperVGeneration, DateTimeOffset? endOfLifeOn, GalleryImageIdentifier identifier, RecommendedMachineConfiguration recommended, Disallowed disallowed, ImagePurchasePlan purchasePlan, GalleryProvisioningState? provisioningState, IList features, ArchitectureType? architecture) : base(id, name, resourceType, systemData, tags, location) { Description = description; @@ -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; } @@ -106,7 +106,7 @@ public IList DisallowedDiskTypes public GalleryProvisioningState? ProvisioningState { get; } /// A list of gallery image features. public IList Features { get; } - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. public ArchitectureType? Architecture { 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/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/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..70aa5dd7b776 --- /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 eula of this community gallery. + /// A list of public names the gallery has. + /// The privacyStatementUri of this community gallery. + 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 eula of this community gallery. + public string Eula { get; } + /// A list of public names the gallery has. + public IReadOnlyList PublicNames { get; } + /// The privacyStatementUri of this community gallery. + public Uri PrivacyStatementUri { get; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/EdgeZoneStorageAccountType.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/EdgeZoneStorageAccountType.cs deleted file mode 100644 index d14b736bc77c..000000000000 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/EdgeZoneStorageAccountType.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Compute.Models -{ - /// Specifies the storage account type to be used to store the image. This property is not updatable. - public readonly partial struct EdgeZoneStorageAccountType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public EdgeZoneStorageAccountType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string StandardLrsValue = "Standard_LRS"; - private const string StandardZrsValue = "Standard_ZRS"; - private const string StandardSsdLrsValue = "StandardSSD_LRS"; - private const string PremiumLrsValue = "Premium_LRS"; - - /// Standard_LRS. - public static EdgeZoneStorageAccountType StandardLrs { get; } = new EdgeZoneStorageAccountType(StandardLrsValue); - /// Standard_ZRS. - public static EdgeZoneStorageAccountType StandardZrs { get; } = new EdgeZoneStorageAccountType(StandardZrsValue); - /// StandardSSD_LRS. - public static EdgeZoneStorageAccountType StandardSsdLrs { get; } = new EdgeZoneStorageAccountType(StandardSsdLrsValue); - /// Premium_LRS. - public static EdgeZoneStorageAccountType PremiumLrs { get; } = new EdgeZoneStorageAccountType(PremiumLrsValue); - /// Determines if two values are the same. - public static bool operator ==(EdgeZoneStorageAccountType left, EdgeZoneStorageAccountType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(EdgeZoneStorageAccountType left, EdgeZoneStorageAccountType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator EdgeZoneStorageAccountType(string value) => new EdgeZoneStorageAccountType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is EdgeZoneStorageAccountType other && Equals(other); - /// - public bool Equals(EdgeZoneStorageAccountType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} 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..85b353d2afc8 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; } @@ -61,7 +61,7 @@ public IList DisallowedDiskTypes public GalleryProvisioningState? ProvisioningState { get; } /// A list of gallery image features. public IList Features { get; } - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. public ArchitectureType? Architecture { get; set; } /// Resource tags. public IDictionary Tags { get; } 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/GalleryTargetExtendedLocation.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryTargetExtendedLocation.Serialization.cs index 55d97afc9f4a..b08b01a268b1 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryTargetExtendedLocation.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryTargetExtendedLocation.Serialization.cs @@ -52,7 +52,7 @@ internal static GalleryTargetExtendedLocation DeserializeGalleryTargetExtendedLo Optional name = default; Optional extendedLocation = default; Optional extendedLocationReplicaCount = default; - Optional storageAccountType = default; + Optional storageAccountType = default; Optional encryption = default; foreach (var property in element.EnumerateObject()) { @@ -85,7 +85,7 @@ internal static GalleryTargetExtendedLocation DeserializeGalleryTargetExtendedLo { continue; } - storageAccountType = new EdgeZoneStorageAccountType(property.Value.GetString()); + storageAccountType = new ImageStorageAccountType(property.Value.GetString()); continue; } if (property.NameEquals("encryption"u8)) diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryTargetExtendedLocation.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryTargetExtendedLocation.cs index dbfb93ebfb37..304b98bfee9c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryTargetExtendedLocation.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryTargetExtendedLocation.cs @@ -21,7 +21,7 @@ public GalleryTargetExtendedLocation() /// The number of replicas of the Image Version to be created per extended location. This property is updatable. /// Specifies the storage account type to be used to store the image. This property is not updatable. /// Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. - internal GalleryTargetExtendedLocation(string name, GalleryExtendedLocation extendedLocation, int? extendedLocationReplicaCount, EdgeZoneStorageAccountType? galleryStorageAccountType, EncryptionImages encryption) + internal GalleryTargetExtendedLocation(string name, GalleryExtendedLocation extendedLocation, int? extendedLocationReplicaCount, ImageStorageAccountType? galleryStorageAccountType, EncryptionImages encryption) { Name = name; ExtendedLocation = extendedLocation; @@ -37,7 +37,7 @@ internal GalleryTargetExtendedLocation(string name, GalleryExtendedLocation exte /// The number of replicas of the Image Version to be created per extended location. This property is updatable. public int? ExtendedLocationReplicaCount { get; set; } /// Specifies the storage account type to be used to store the image. This property is not updatable. - public EdgeZoneStorageAccountType? GalleryStorageAccountType { get; set; } + public ImageStorageAccountType? GalleryStorageAccountType { get; set; } /// Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. public EncryptionImages Encryption { get; set; } } 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..ff8ffe0a8d7f 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**. + /// The Operating System type. 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..acd360aca8d4 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. @@ -37,10 +38,11 @@ internal SharedGalleryImageData() /// The hypervisor generation of the Virtual Machine. Applicable to OS disks only. /// 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. + /// CPU architecture supported by an OS disk. /// 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; } @@ -80,12 +83,14 @@ public IList DisallowedDiskTypes public IReadOnlyList Features { get; } /// Describes the gallery image definition purchase plan. This is used by marketplace images. public ImagePurchasePlan PurchasePlan { get; } - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. public ArchitectureType? Architecture { get; } /// Privacy statement uri for the current community gallery image. 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 a1d0ec500a60..c253d66ae17f 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/a2140e7ff0a6c28df501b16c51fe85b762a386fc/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