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 84c269a5d74a..3240cbbb2568 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 @@ -562,6 +562,7 @@ public static partial class ComputeExtensions public static Azure.ResourceManager.Compute.GalleryImageResource GetGalleryImageResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Compute.GalleryImageVersionResource GetGalleryImageVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Compute.GalleryResource GetGalleryResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Compute.LatestVersionResource GetLatestVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Response GetManagedDisk(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string diskName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetManagedDiskAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string diskName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.Compute.ManagedDiskResource GetManagedDiskResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } @@ -1161,6 +1162,7 @@ protected GalleryImageResource() { } public virtual Azure.Response GetGalleryImageVersion(string galleryImageVersionName, Azure.ResourceManager.Compute.Models.ReplicationStatusType? expand = default(Azure.ResourceManager.Compute.Models.ReplicationStatusType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetGalleryImageVersionAsync(string galleryImageVersionName, Azure.ResourceManager.Compute.Models.ReplicationStatusType? expand = default(Azure.ResourceManager.Compute.Models.ReplicationStatusType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Compute.GalleryImageVersionCollection GetGalleryImageVersions() { throw null; } + public virtual Azure.ResourceManager.Compute.LatestVersionResource GetLatestVersion() { throw null; } public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -1240,6 +1242,21 @@ protected GalleryResource() { } public virtual Azure.ResourceManager.ArmOperation UpdateSharingProfile(Azure.WaitUntil waitUntil, Azure.ResourceManager.Compute.Models.SharingUpdate sharingUpdate, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateSharingProfileAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Compute.Models.SharingUpdate sharingUpdate, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } + public partial class LatestVersionData : Azure.ResourceManager.Models.ResourceData + { + internal LatestVersionData() { } + public Azure.ResourceManager.Compute.Models.LatestGalleryImageVersion Properties { get { throw null; } } + } + public partial class LatestVersionResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected LatestVersionResource() { } + public virtual Azure.ResourceManager.Compute.LatestVersionData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string galleryName, string galleryImageName) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } public partial class ManagedDiskCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected ManagedDiskCollection() { } @@ -2469,6 +2486,8 @@ public static partial class ArmComputeModelFactory public static Azure.ResourceManager.Compute.Models.InnerError InnerError(string exceptiontype = null, string errordetail = null) { throw null; } public static Azure.ResourceManager.Compute.Models.InstanceSku InstanceSku(string name = null, string tier = null) { throw null; } public static Azure.ResourceManager.Compute.Models.LastPatchInstallationSummary LastPatchInstallationSummary(Azure.ResourceManager.Compute.Models.PatchOperationStatus? status = default(Azure.ResourceManager.Compute.Models.PatchOperationStatus?), string installationActivityId = null, bool? maintenanceWindowExceeded = default(bool?), int? notSelectedPatchCount = default(int?), int? excludedPatchCount = default(int?), int? pendingPatchCount = default(int?), int? installedPatchCount = default(int?), int? failedPatchCount = default(int?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.ComputeApiError error = null) { throw null; } + public static Azure.ResourceManager.Compute.Models.LatestGalleryImageVersion LatestGalleryImageVersion(string latestVersionName = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?)) { throw null; } + public static Azure.ResourceManager.Compute.LatestVersionData LatestVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Compute.Models.LatestGalleryImageVersion properties = null) { throw null; } public static Azure.ResourceManager.Compute.Models.LogAnalytics LogAnalytics(string logAnalyticsOutput = null) { throw null; } public static Azure.ResourceManager.Compute.Models.MaintenanceRedeployStatus MaintenanceRedeployStatus(bool? isCustomerInitiatedMaintenanceAllowed = default(bool?), System.DateTimeOffset? preMaintenanceWindowStartOn = default(System.DateTimeOffset?), System.DateTimeOffset? preMaintenanceWindowEndOn = default(System.DateTimeOffset?), System.DateTimeOffset? maintenanceWindowStartOn = default(System.DateTimeOffset?), System.DateTimeOffset? maintenanceWindowEndOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.MaintenanceOperationResultCodeType? lastOperationResultCode = default(Azure.ResourceManager.Compute.Models.MaintenanceOperationResultCodeType?), string lastOperationMessage = null) { throw null; } public static Azure.ResourceManager.Compute.ManagedDiskData ManagedDiskData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.Core.ResourceIdentifier managedBy = null, System.Collections.Generic.IEnumerable managedByExtended = null, Azure.ResourceManager.Compute.Models.DiskSku sku = null, System.Collections.Generic.IEnumerable zones = null, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = null, System.DateTimeOffset? timeCreated = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? osType = default(Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType?), Azure.ResourceManager.Compute.Models.HyperVGeneration? hyperVGeneration = default(Azure.ResourceManager.Compute.Models.HyperVGeneration?), Azure.ResourceManager.Compute.Models.DiskPurchasePlan purchasePlan = null, Azure.ResourceManager.Compute.Models.SupportedCapabilities supportedCapabilities = null, Azure.ResourceManager.Compute.Models.DiskCreationData creationData = null, int? diskSizeGB = default(int?), long? diskSizeBytes = default(long?), string uniqueId = null, Azure.ResourceManager.Compute.Models.EncryptionSettingsGroup encryptionSettingsGroup = null, string provisioningState = null, long? diskIopsReadWrite = default(long?), long? diskMBpsReadWrite = default(long?), long? diskIopsReadOnly = default(long?), long? diskMBpsReadOnly = default(long?), Azure.ResourceManager.Compute.Models.DiskState? diskState = default(Azure.ResourceManager.Compute.Models.DiskState?), Azure.ResourceManager.Compute.Models.DiskEncryption encryption = null, int? maxShares = default(int?), System.Collections.Generic.IEnumerable shareInfo = null, Azure.ResourceManager.Compute.Models.NetworkAccessPolicy? networkAccessPolicy = default(Azure.ResourceManager.Compute.Models.NetworkAccessPolicy?), Azure.Core.ResourceIdentifier diskAccessId = null, System.DateTimeOffset? burstingEnabledOn = default(System.DateTimeOffset?), string tier = null, bool? burstingEnabled = default(bool?), string propertyUpdatesInProgressTargetTier = null, bool? supportsHibernation = default(bool?), Azure.ResourceManager.Compute.Models.DiskSecurityProfile securityProfile = null, float? completionPercent = default(float?), Azure.ResourceManager.Compute.Models.DiskPublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.Compute.Models.DiskPublicNetworkAccess?), Azure.ResourceManager.Compute.Models.DataAccessAuthMode? dataAccessAuthMode = default(Azure.ResourceManager.Compute.Models.DataAccessAuthMode?), bool? isOptimizedForFrequentAttach = default(bool?)) { throw null; } @@ -3705,6 +3724,24 @@ public EncryptionSettingsGroup(bool enabled) { } public static bool operator !=(Azure.ResourceManager.Compute.Models.ExpandTypesForListVm left, Azure.ResourceManager.Compute.Models.ExpandTypesForListVm right) { throw null; } public override string ToString() { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct FileFormat : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public FileFormat(string value) { throw null; } + public static Azure.ResourceManager.Compute.Models.FileFormat VHD { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.FileFormat Vhdx { get { throw null; } } + public bool Equals(Azure.ResourceManager.Compute.Models.FileFormat other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Compute.Models.FileFormat left, Azure.ResourceManager.Compute.Models.FileFormat right) { throw null; } + public static implicit operator Azure.ResourceManager.Compute.Models.FileFormat (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Compute.Models.FileFormat left, Azure.ResourceManager.Compute.Models.FileFormat right) { throw null; } + public override string ToString() { throw null; } + } public partial class GalleryApplicationCustomAction { public GalleryApplicationCustomAction(string name, string script) { } @@ -4046,6 +4083,7 @@ public partial class GrantAccessData public GrantAccessData(Azure.ResourceManager.Compute.Models.AccessLevel access, int durationInSeconds) { } public Azure.ResourceManager.Compute.Models.AccessLevel Access { get { throw null; } } public int DurationInSeconds { get { throw null; } } + public Azure.ResourceManager.Compute.Models.FileFormat? FileFormat { get { throw null; } set { } } public bool? GetSecureVmGuestStateSas { get { throw null; } set { } } } public enum HostCaching @@ -4295,6 +4333,12 @@ internal LastPatchInstallationSummary() { } public System.DateTimeOffset? StartOn { get { throw null; } } public Azure.ResourceManager.Compute.Models.PatchOperationStatus? Status { get { throw null; } } } + public partial class LatestGalleryImageVersion + { + internal LatestGalleryImageVersion() { } + public string LatestVersionName { get { throw null; } } + public Azure.Core.AzureLocation? Location { get { throw null; } } + } public partial class LinuxConfiguration { public LinuxConfiguration() { } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ArmComputeModelFactory.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ArmComputeModelFactory.cs index d8eb0651dac5..322247c1db57 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. @@ -1974,6 +1974,27 @@ public static RegionalReplicationStatus RegionalReplicationStatus(string region return new RegionalReplicationStatus(region, state, details, progress); } + /// Initializes a new instance of LatestVersionData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The property latestVersion. It contains two value, the latest version name and the region. + /// A new instance for mocking. + public static LatestVersionData LatestVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, LatestGalleryImageVersion properties = null) + { + return new LatestVersionData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of LatestGalleryImageVersion. + /// The name of the latest version in the region. + /// region of the Gallery Image Version. + /// A new instance for mocking. + public static LatestGalleryImageVersion LatestGalleryImageVersion(string latestVersionName = null, AzureLocation? location = null) + { + return new LatestGalleryImageVersion(latestVersionName, location); + } + /// Initializes a new instance of GalleryApplicationData. /// The id. /// The name. @@ -1986,7 +2007,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) @@ -2075,7 +2096,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. @@ -2176,7 +2197,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. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageData.cs index 9debf25c34a6..5446219d27f8 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageData.cs @@ -29,7 +29,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. @@ -57,7 +57,7 @@ internal CommunityGalleryImageData(string name, AzureLocation? location, Resourc Eula = eula; } - /// 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; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/ComputeExtensions.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/ComputeExtensions.cs index 17853a10e7c1..4e3c4d18bdab 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/ComputeExtensions.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/ComputeExtensions.cs @@ -601,6 +601,25 @@ public static GalleryImageVersionResource GetGalleryImageVersionResource(this Ar } #endregion + #region LatestVersionResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static LatestVersionResource GetLatestVersionResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + LatestVersionResource.ValidateResourceId(id); + return new LatestVersionResource(client, id); + } + ); + } + #endregion + #region GalleryApplicationResource /// /// Gets an object representing a along with the instance operations that can be performed on it but with no data. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationData.cs index 9a2bc8669b48..d8e26722bdef 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationData.cs @@ -38,7 +38,7 @@ public GalleryApplicationData(AzureLocation location) : base(location) /// The privacy statement uri. /// The release note uri. /// The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable. - /// This property allows you to specify the supported type of the OS that application is built for. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// This property allows you to specify the supported type of the OS that application is built for. Possible values are: **Windows,** **Linux.**. /// A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application. internal GalleryApplicationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string description, string eula, Uri privacyStatementUri, Uri releaseNoteUri, DateTimeOffset? endOfLifeOn, SupportedOperatingSystemType? supportedOSType, IList customActions) : base(id, name, resourceType, systemData, tags, location) { @@ -61,7 +61,7 @@ internal GalleryApplicationData(ResourceIdentifier id, string name, ResourceType public Uri ReleaseNoteUri { get; set; } /// The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable. public DateTimeOffset? EndOfLifeOn { get; set; } - /// This property allows you to specify the supported type of the OS that application is built for. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// This property allows you to specify the supported type of the OS that application is built for. Possible values are: **Windows,** **Linux.**. public SupportedOperatingSystemType? SupportedOSType { get; set; } /// A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application. public IList CustomActions { get; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageData.cs index a804f059690a..ed867471fe98 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageData.cs @@ -37,7 +37,7 @@ public GalleryImageData(AzureLocation location) : base(location) /// The Eula agreement for the gallery image definition. /// The privacy statement uri. /// The release note uri. - /// This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.**. /// This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. /// The hypervisor generation of the Virtual Machine. Applicable to OS disks only. /// The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable. @@ -75,7 +75,7 @@ internal GalleryImageData(ResourceIdentifier id, string name, ResourceType resou public Uri PrivacyStatementUri { get; set; } /// The release note uri. public Uri ReleaseNoteUri { get; set; } - /// This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.**. public SupportedOperatingSystemType? OSType { get; set; } /// This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. public OperatingSystemStateType? OSState { get; set; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageResource.cs index 05e09bca64dd..0fd9b2d694b7 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageResource.cs @@ -143,6 +143,13 @@ public virtual Response GetGalleryImageVersion(stri return GetGalleryImageVersions().Get(galleryImageVersionName, expand, cancellationToken); } + /// Gets an object representing a LatestVersionResource along with the instance operations that can be performed on it in the GalleryImage. + /// Returns a object. + public virtual LatestVersionResource GetLatestVersion() + { + return new LatestVersionResource(Client, Id.AppendChildResource("versionNames", "latest")); + } + /// /// Retrieves information about a gallery image definition. /// diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/LatestVersionData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/LatestVersionData.cs new file mode 100644 index 000000000000..26d025e0d26f --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/LatestVersionData.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.Core; +using Azure.ResourceManager.Compute.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Compute +{ + /// + /// A class representing the LatestVersion data model. + /// latestVersion is an ARM resource. It follows the schema of ARM resource, which has id, name, type and properties. The name of the latest version in the region is in the properties. + /// + public partial class LatestVersionData : ResourceData + { + /// Initializes a new instance of LatestVersionData. + internal LatestVersionData() + { + } + + /// Initializes a new instance of LatestVersionData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The property latestVersion. It contains two value, the latest version name and the region. + internal LatestVersionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, LatestGalleryImageVersion properties) : base(id, name, resourceType, systemData) + { + Properties = properties; + } + + /// The property latestVersion. It contains two value, the latest version name and the region. + public LatestGalleryImageVersion Properties { get; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/LatestVersionResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/LatestVersionResource.cs new file mode 100644 index 000000000000..1bec6d3af6a7 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/LatestVersionResource.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.Compute +{ + /// + /// A Class representing a LatestVersion along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetLatestVersionResource method. + /// Otherwise you can get one from its parent resource using the GetLatestVersion method. + /// + public partial class LatestVersionResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string galleryName, string galleryImageName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versionNames/latest"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _latestVersionGalleryImageVersionsClientDiagnostics; + private readonly GalleryImageVersionsRestOperations _latestVersionGalleryImageVersionsRestClient; + private readonly LatestVersionData _data; + + /// Initializes a new instance of the class for mocking. + protected LatestVersionResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal LatestVersionResource(ArmClient client, LatestVersionData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal LatestVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _latestVersionGalleryImageVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Compute", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string latestVersionGalleryImageVersionsApiVersion); + _latestVersionGalleryImageVersionsRestClient = new GalleryImageVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, latestVersionGalleryImageVersionsApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.Compute/galleries/images/versionNames"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual LatestVersionData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Retrieves information about the latest version of an image. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versionNames/latest + /// + /// + /// Operation Id + /// GalleryImageVersions_GetLatest + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _latestVersionGalleryImageVersionsClientDiagnostics.CreateScope("LatestVersionResource.Get"); + scope.Start(); + try + { + var response = await _latestVersionGalleryImageVersionsRestClient.GetLatestAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new LatestVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieves information about the latest version of an image. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versionNames/latest + /// + /// + /// Operation Id + /// GalleryImageVersions_GetLatest + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _latestVersionGalleryImageVersionsClientDiagnostics.CreateScope("LatestVersionResource.Get"); + scope.Start(); + try + { + var response = _latestVersionGalleryImageVersionsRestClient.GetLatest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new LatestVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/FileFormat.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/FileFormat.cs new file mode 100644 index 000000000000..ee67a61e1d52 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/FileFormat.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Compute.Models +{ + /// Used to specify the file format when making request for SAS on a VHDX file format snapshot. + public readonly partial struct FileFormat : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public FileFormat(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string VHDValue = "VHD"; + private const string VhdxValue = "VHDX"; + + /// A VHD file is a disk image file in the Virtual Hard Disk file format. + public static FileFormat VHD { get; } = new FileFormat(VHDValue); + /// A VHDX file is a disk image file in the Virtual Hard Disk v2 file format. + public static FileFormat Vhdx { get; } = new FileFormat(VhdxValue); + /// Determines if two values are the same. + public static bool operator ==(FileFormat left, FileFormat right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(FileFormat left, FileFormat right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator FileFormat(string value) => new FileFormat(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is FileFormat other && Equals(other); + /// + public bool Equals(FileFormat 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..4ffa81fe52e6 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImagePatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImagePatch.cs @@ -30,7 +30,7 @@ public GalleryImagePatch() public Uri PrivacyStatementUri { get; set; } /// The release note uri. public Uri ReleaseNoteUri { get; set; } - /// This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.**. public SupportedOperatingSystemType? OSType { get; set; } /// This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. public OperatingSystemStateType? OSState { get; set; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GallerySharingPermissionType.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GallerySharingPermissionType.cs index a77f3a4108db..dd12f5c9952a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GallerySharingPermissionType.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GallerySharingPermissionType.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Compute.Models { - /// This property allows you to specify the permission of sharing gallery. <br><br> Possible values are: <br><br> **Private** <br><br> **Groups** <br><br> **Community**. + /// This property allows you to specify the permission of sharing gallery. Possible values are: **Private,** **Groups,** **Community.**. public readonly partial struct GallerySharingPermissionType : IEquatable { private readonly string _value; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GrantAccessData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GrantAccessData.Serialization.cs index c7fa0a4ac1fc..2a3c26f4d4c1 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GrantAccessData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GrantAccessData.Serialization.cs @@ -24,6 +24,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("getSecureVMGuestStateSAS"u8); writer.WriteBooleanValue(GetSecureVmGuestStateSas.Value); } + if (Optional.IsDefined(FileFormat)) + { + writer.WritePropertyName("fileFormat"u8); + writer.WriteStringValue(FileFormat.Value.ToString()); + } writer.WriteEndObject(); } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GrantAccessData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GrantAccessData.cs index c697d6101674..d78f3d8e96e0 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GrantAccessData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GrantAccessData.cs @@ -25,5 +25,7 @@ public GrantAccessData(AccessLevel access, int durationInSeconds) public int DurationInSeconds { get; } /// Set this flag to true to get additional SAS for VM guest state. public bool? GetSecureVmGuestStateSas { get; set; } + /// Used to specify the file format when making request for SAS on a VHDX file format snapshot. + public FileFormat? FileFormat { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LatestGalleryImageVersion.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LatestGalleryImageVersion.Serialization.cs new file mode 100644 index 000000000000..2c4bf950b3d4 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LatestGalleryImageVersion.Serialization.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class LatestGalleryImageVersion + { + internal static LatestGalleryImageVersion DeserializeLatestGalleryImageVersion(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional latestVersionName = default; + Optional location = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("latestVersionName"u8)) + { + latestVersionName = property.Value.GetString(); + continue; + } + if (property.NameEquals("location"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + location = new AzureLocation(property.Value.GetString()); + continue; + } + } + return new LatestGalleryImageVersion(latestVersionName.Value, Optional.ToNullable(location)); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LatestGalleryImageVersion.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LatestGalleryImageVersion.cs new file mode 100644 index 000000000000..0403ecb6feb9 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LatestGalleryImageVersion.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + /// The property latestVersion. It contains two value, the latest version name and the region. + public partial class LatestGalleryImageVersion + { + /// Initializes a new instance of LatestGalleryImageVersion. + internal LatestGalleryImageVersion() + { + } + + /// Initializes a new instance of LatestGalleryImageVersion. + /// The name of the latest version in the region. + /// region of the Gallery Image Version. + internal LatestGalleryImageVersion(string latestVersionName, AzureLocation? location) + { + LatestVersionName = latestVersionName; + Location = location; + } + + /// The name of the latest version in the region. + public string LatestVersionName { get; } + /// region of the Gallery Image Version. + public AzureLocation? Location { get; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LatestVersionData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LatestVersionData.Serialization.cs new file mode 100644 index 000000000000..94d3b6524f6b --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LatestVersionData.Serialization.cs @@ -0,0 +1,67 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Compute.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Compute +{ + public partial class LatestVersionData + { + internal static LatestVersionData DeserializeLatestVersionData(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional properties = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + Optional systemData = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = LatestGalleryImageVersion.DeserializeLatestGalleryImageVersion(property.Value); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + } + return new LatestVersionData(id, name, type, systemData.Value, properties.Value); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfile.cs index 3c9bd5db87b3..150b44681d24 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfile.cs @@ -20,7 +20,7 @@ public SharingProfile() } /// Initializes a new instance of SharingProfile. - /// This property allows you to specify the permission of sharing gallery. <br><br> Possible values are: <br><br> **Private** <br><br> **Groups** <br><br> **Community**. + /// This property allows you to specify the permission of sharing gallery. Possible values are: **Private,** **Groups,** **Community.**. /// A list of sharing profile groups. /// Information of community gallery if current gallery is shared to community. internal SharingProfile(GallerySharingPermissionType? permission, IReadOnlyList groups, CommunityGalleryInfo communityGalleryInfo) @@ -30,7 +30,7 @@ internal SharingProfile(GallerySharingPermissionType? permission, IReadOnlyList< CommunityGalleryInfo = communityGalleryInfo; } - /// This property allows you to specify the permission of sharing gallery. <br><br> Possible values are: <br><br> **Private** <br><br> **Groups** <br><br> **Community**. + /// This property allows you to specify the permission of sharing gallery. Possible values are: **Private,** **Groups,** **Community.**. public GallerySharingPermissionType? Permission { get; set; } /// A list of sharing profile groups. public IReadOnlyList Groups { get; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfileGroup.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfileGroup.cs index cfb3ed43c9b2..508ab88a8f33 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfileGroup.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfileGroup.cs @@ -20,7 +20,7 @@ public SharingProfileGroup() } /// Initializes a new instance of SharingProfileGroup. - /// This property allows you to specify the type of sharing group. <br><br> Possible values are: <br><br> **Subscriptions** <br><br> **AADTenants**. + /// This property allows you to specify the type of sharing group. Possible values are: **Subscriptions,** **AADTenants.**. /// A list of subscription/tenant ids the gallery is aimed to be shared to. internal SharingProfileGroup(SharingProfileGroupType? groupType, IList ids) { @@ -28,7 +28,7 @@ internal SharingProfileGroup(SharingProfileGroupType? groupType, IList i Ids = ids; } - /// This property allows you to specify the type of sharing group. <br><br> Possible values are: <br><br> **Subscriptions** <br><br> **AADTenants**. + /// This property allows you to specify the type of sharing group. Possible values are: **Subscriptions,** **AADTenants.**. public SharingProfileGroupType? GroupType { get; set; } /// A list of subscription/tenant ids the gallery is aimed to be shared to. public IList Ids { get; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfileGroupType.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfileGroupType.cs index 3a405773b878..a5d63ba37f5a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfileGroupType.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfileGroupType.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Compute.Models { - /// This property allows you to specify the type of sharing group. <br><br> Possible values are: <br><br> **Subscriptions** <br><br> **AADTenants**. + /// This property allows you to specify the type of sharing group. Possible values are: **Subscriptions,** **AADTenants.**. public readonly partial struct SharingProfileGroupType : IEquatable { private readonly string _value; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingUpdate.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingUpdate.cs index a20229b5daa2..a34134d11e4f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingUpdate.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingUpdate.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.Compute.Models public partial class SharingUpdate { /// Initializes a new instance of SharingUpdate. - /// This property allows you to specify the operation type of gallery sharing update. <br><br> Possible values are: <br><br> **Add** <br><br> **Remove** <br><br> **Reset**. + /// This property allows you to specify the operation type of gallery sharing update. Possible values are: **Add,** **Remove,** **Reset.**. public SharingUpdate(SharingUpdateOperationType operationType) { OperationType = operationType; @@ -22,7 +22,7 @@ public SharingUpdate(SharingUpdateOperationType operationType) } /// Initializes a new instance of SharingUpdate. - /// This property allows you to specify the operation type of gallery sharing update. <br><br> Possible values are: <br><br> **Add** <br><br> **Remove** <br><br> **Reset**. + /// This property allows you to specify the operation type of gallery sharing update. Possible values are: **Add,** **Remove,** **Reset.**. /// A list of sharing profile groups. internal SharingUpdate(SharingUpdateOperationType operationType, IList groups) { @@ -30,7 +30,7 @@ internal SharingUpdate(SharingUpdateOperationType operationType, IList This property allows you to specify the operation type of gallery sharing update. <br><br> Possible values are: <br><br> **Add** <br><br> **Remove** <br><br> **Reset**. + /// This property allows you to specify the operation type of gallery sharing update. Possible values are: **Add,** **Remove,** **Reset.**. public SharingUpdateOperationType OperationType { get; set; } /// A list of sharing profile groups. public IList Groups { get; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingUpdateOperationType.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingUpdateOperationType.cs index 5b5921803802..91089826852c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingUpdateOperationType.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingUpdateOperationType.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Compute.Models { - /// This property allows you to specify the operation type of gallery sharing update. <br><br> Possible values are: <br><br> **Add** <br><br> **Remove** <br><br> **Reset**. + /// This property allows you to specify the operation type of gallery sharing update. Possible values are: **Add,** **Remove,** **Reset.**. public readonly partial struct SharingUpdateOperationType : IEquatable { private readonly string _value; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SupportedOperatingSystemType.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SupportedOperatingSystemType.cs index 1f72c2c1377c..d61b646253ec 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SupportedOperatingSystemType.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SupportedOperatingSystemType.cs @@ -7,7 +7,7 @@ namespace Azure.ResourceManager.Compute.Models { - /// This property allows you to specify the supported type of the OS that application is built for. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. + /// This property allows you to specify the supported type of the OS that application is built for. Possible values are: **Windows,** **Linux.**. public enum SupportedOperatingSystemType { /// Windows. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleriesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleriesRestOperations.cs index a0c5e45f0f72..15d5a47f52fb 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleriesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleriesRestOperations.cs @@ -32,7 +32,7 @@ public CommunityGalleriesRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-03"; + _apiVersion = apiVersion ?? "2022-08-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImageVersionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImageVersionsRestOperations.cs index 546add324c4b..a0ec5f04f730 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImageVersionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImageVersionsRestOperations.cs @@ -33,7 +33,7 @@ public CommunityGalleryImageVersionsRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-03"; + _apiVersion = apiVersion ?? "2022-08-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImagesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImagesRestOperations.cs index 65b4b911949b..4f7bd2e7b4f3 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImagesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImagesRestOperations.cs @@ -33,7 +33,7 @@ public CommunityGalleryImagesRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-03"; + _apiVersion = apiVersion ?? "2022-08-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskAccessesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskAccessesRestOperations.cs index a299168b892e..af0bb626f2a2 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskAccessesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskAccessesRestOperations.cs @@ -33,7 +33,7 @@ public DiskAccessesRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-07-02"; + _apiVersion = apiVersion ?? "2023-01-02"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskEncryptionSetsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskEncryptionSetsRestOperations.cs index 4f3ad16773b0..d83814538b55 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskEncryptionSetsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskEncryptionSetsRestOperations.cs @@ -33,7 +33,7 @@ public DiskEncryptionSetsRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-07-02"; + _apiVersion = apiVersion ?? "2023-01-02"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskRestorePointRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskRestorePointRestOperations.cs index decffd82aeda..54dd1ed9b488 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskRestorePointRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskRestorePointRestOperations.cs @@ -33,7 +33,7 @@ public DiskRestorePointRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-07-02"; + _apiVersion = apiVersion ?? "2023-01-02"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DisksRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DisksRestOperations.cs index ae9c6e827bf2..7b0a78eae540 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DisksRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DisksRestOperations.cs @@ -33,7 +33,7 @@ public DisksRestOperations(HttpPipeline pipeline, string applicationId, Uri endp { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-07-02"; + _apiVersion = apiVersion ?? "2023-01-02"; _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..6c36ca813e03 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); } @@ -401,6 +401,95 @@ public Response Delete(string subscriptionId, string resourceGroupName, string g } } + internal HttpMessage CreateGetLatestRequest(string subscriptionId, string resourceGroupName, string galleryName, string galleryImageName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/images/", false); + uri.AppendPath(galleryImageName, true); + uri.AppendPath("/versionNames/latest", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Retrieves information about the latest version of an image. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the Shared Image Gallery in which the Image Definition resides. + /// The name of the gallery image definition in which the Image Version resides. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetLatestAsync(string subscriptionId, string resourceGroupName, string galleryName, string galleryImageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + Argument.AssertNotNullOrEmpty(galleryImageName, nameof(galleryImageName)); + + using var message = CreateGetLatestRequest(subscriptionId, resourceGroupName, galleryName, galleryImageName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + LatestVersionData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = LatestVersionData.DeserializeLatestVersionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((LatestVersionData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Retrieves information about the latest version of an image. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the Shared Image Gallery in which the Image Definition resides. + /// The name of the gallery image definition in which the Image Version resides. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response GetLatest(string subscriptionId, string resourceGroupName, string galleryName, string galleryImageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + Argument.AssertNotNullOrEmpty(galleryImageName, nameof(galleryImageName)); + + using var message = CreateGetLatestRequest(subscriptionId, resourceGroupName, galleryName, galleryImageName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + LatestVersionData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = LatestVersionData.DeserializeLatestVersionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((LatestVersionData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + internal HttpMessage CreateListByGalleryImageRequest(string subscriptionId, string resourceGroupName, string galleryName, string galleryImageName) { var message = _pipeline.CreateMessage(); 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/RestOperations/SnapshotsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SnapshotsRestOperations.cs index 7fc01fd46f29..c148cf8ba591 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SnapshotsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SnapshotsRestOperations.cs @@ -33,7 +33,7 @@ public SnapshotsRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-07-02"; + _apiVersion = apiVersion ?? "2023-01-02"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageData.cs index 53cbb39080d7..b36595ccee3e 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageData.cs @@ -28,7 +28,7 @@ internal 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. @@ -56,7 +56,7 @@ internal SharedGalleryImageData(string name, AzureLocation? location, string uni Eula = eula; } - /// 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; } 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