From e010296ea3dbdf077a9879b0bffa8c55cc4a8368 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 27 Apr 2023 23:06:49 +0000 Subject: [PATCH] CodeGen from PR 23505 in Azure/azure-rest-api-specs Merge ed362099b9302b0522990137c8639f15f21f278b into 347b2975f0e3a9d37a07b74381d7237e15089190 --- ....ResourceManager.Compute.netstandard2.0.cs | 19 +++++ .../src/Generated/CommunityGalleryData.cs | 16 +++- .../Generated/CommunityGalleryImageData.cs | 15 +++- .../CommunityGalleryImageVersionData.cs | 12 ++- .../src/Generated/GalleryImageData.cs | 4 +- .../CommunityGalleryData.Serialization.cs | 47 +++++++++++- ...CommunityGalleryImageData.Serialization.cs | 23 +++++- ...tyGalleryImageVersionData.Serialization.cs | 24 +++++- .../CommunityGalleryMetadata.Serialization.cs | 76 +++++++++++++++++++ .../Models/CommunityGalleryMetadata.cs | 49 ++++++++++++ .../src/Generated/Models/GalleryImagePatch.cs | 2 +- .../Models/SharedGalleryData.Serialization.cs | 30 +++++++- .../SharedGalleryImageData.Serialization.cs | 17 ++++- ...edGalleryImageVersionData.Serialization.cs | 18 ++++- .../Models/SupportedOperatingSystemType.cs | 2 +- .../CommunityGalleriesRestOperations.cs | 2 +- ...unityGalleryImageVersionsRestOperations.cs | 2 +- .../CommunityGalleryImagesRestOperations.cs | 2 +- .../RestOperations/GalleriesRestOperations.cs | 2 +- ...alleryApplicationVersionsRestOperations.cs | 2 +- .../GalleryApplicationsRestOperations.cs | 2 +- .../GalleryImageVersionsRestOperations.cs | 2 +- .../GalleryImagesRestOperations.cs | 2 +- .../GallerySharingProfileRestOperations.cs | 2 +- .../SharedGalleriesRestOperations.cs | 2 +- ...haredGalleryImageVersionsRestOperations.cs | 2 +- .../SharedGalleryImagesRestOperations.cs | 2 +- .../src/Generated/SharedGalleryData.cs | 8 +- .../src/Generated/SharedGalleryImageData.cs | 11 ++- .../SharedGalleryImageVersionData.cs | 8 +- .../src/autorest.md | 2 +- 31 files changed, 374 insertions(+), 33 deletions(-) create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryMetadata.Serialization.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryMetadata.cs 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 0928ee5aa876..521fcb707805 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; } } @@ -449,6 +454,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; } } @@ -1457,6 +1464,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 @@ -1476,6 +1484,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; } } @@ -1518,6 +1527,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; } } @@ -2639,6 +2649,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/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 97cd1988732f..c978e6082eb0 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. @@ -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, GalleryImageIdentifier identifier, 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, GalleryImageIdentifier identifier, 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,6 +58,8 @@ 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**. @@ -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 03f2597eb59c..731691b3960e 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/GalleryImageData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageData.cs index ca310fb398c6..4b3eb06edb39 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageData.cs @@ -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; @@ -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 bcc39efe3702..583371d09d8d 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/GalleryImagePatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImagePatch.cs index e51a97c208d6..54dc9b075924 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImagePatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImagePatch.cs @@ -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/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/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 6a179579cec5..b6d31ed28c08 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageData.cs @@ -22,6 +22,7 @@ public partial class SharedGalleryImageData : PirSharedGalleryResourceData internal SharedGalleryImageData() { Features = new ChangeTrackingList(); + ArtifactTags = new ChangeTrackingDictionary(); } /// Initializes a new instance of SharedGalleryImageData. @@ -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,6 +56,7 @@ 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**. @@ -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 c4c73f555aea..0783cfffd160 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 56552995b525..48ac5f724cbf 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md +++ b/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md @@ -11,7 +11,7 @@ azure-arm: true generate-model-factory: false library-name: Compute namespace: Azure.ResourceManager.Compute -require: https://github.com/Azure/azure-rest-api-specs/blob/03261080b3083a9e8cb0b61d840cc8291c596590/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