diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/api/Azure.ResourceManager.DesktopVirtualization.netstandard2.0.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/api/Azure.ResourceManager.DesktopVirtualization.netstandard2.0.cs index 9ff50bd148e1..472b06e6e502 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/api/Azure.ResourceManager.DesktopVirtualization.netstandard2.0.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/api/Azure.ResourceManager.DesktopVirtualization.netstandard2.0.cs @@ -1,7 +1,59 @@ namespace Azure.ResourceManager.DesktopVirtualization { + public partial class AppAttachPackageCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected AppAttachPackageCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string appAttachPackageName, Azure.ResourceManager.DesktopVirtualization.AppAttachPackageData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string appAttachPackageName, Azure.ResourceManager.DesktopVirtualization.AppAttachPackageData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string appAttachPackageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string appAttachPackageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string appAttachPackageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string appAttachPackageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string appAttachPackageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string appAttachPackageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class AppAttachPackageData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AppAttachPackageData(Azure.Core.AzureLocation location, Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackageProperties properties) { } + public Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackageProperties Properties { get { throw null; } set { } } + Azure.ResourceManager.DesktopVirtualization.AppAttachPackageData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.DesktopVirtualization.AppAttachPackageData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class AppAttachPackageResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected AppAttachPackageResource() { } + public virtual Azure.ResourceManager.DesktopVirtualization.AppAttachPackageData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string appAttachPackageName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { 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; } + Azure.ResourceManager.DesktopVirtualization.AppAttachPackageData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.DesktopVirtualization.AppAttachPackageData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackagePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackagePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } public static partial class DesktopVirtualizationExtensions { + public static Azure.Response GetAppAttachPackage(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string appAttachPackageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetAppAttachPackageAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string appAttachPackageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.DesktopVirtualization.AppAttachPackageResource GetAppAttachPackageResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.DesktopVirtualization.AppAttachPackageCollection GetAppAttachPackages(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetAppAttachPackages(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetAppAttachPackagesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Response GetHostPool(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string hostPoolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetHostPoolAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string hostPoolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.DesktopVirtualization.HostPoolPrivateEndpointConnectionResource GetHostPoolPrivateEndpointConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } @@ -48,6 +100,7 @@ public partial class DesktopVirtualizationPrivateEndpointConnectionDataData : Az { public DesktopVirtualizationPrivateEndpointConnectionDataData() { } public Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationPrivateLinkServiceConnectionState ConnectionState { get { throw null; } set { } } + public System.Collections.Generic.IReadOnlyList GroupIds { get { throw null; } } public Azure.Core.ResourceIdentifier PrivateEndpointId { get { throw null; } } public Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationPrivateEndpointConnectionProvisioningState? ProvisioningState { get { throw null; } } Azure.ResourceManager.DesktopVirtualization.DesktopVirtualizationPrivateEndpointConnectionDataData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -81,6 +134,7 @@ public partial class HostPoolData : Azure.ResourceManager.Models.TrackedResource { public HostPoolData(Azure.Core.AzureLocation location, Azure.ResourceManager.DesktopVirtualization.Models.HostPoolType hostPoolType, Azure.ResourceManager.DesktopVirtualization.Models.HostPoolLoadBalancerType loadBalancerType, Azure.ResourceManager.DesktopVirtualization.Models.PreferredAppGroupType preferredAppGroupType) { } public Azure.ResourceManager.DesktopVirtualization.Models.SessionHostAgentUpdateProperties AgentUpdate { get { throw null; } set { } } + public System.Collections.Generic.IReadOnlyList AppAttachPackageReferences { get { throw null; } } public System.Collections.Generic.IReadOnlyList ApplicationGroupReferences { get { throw null; } } public string CustomRdpProperty { get { throw null; } set { } } public string Description { get { throw null; } set { } } @@ -190,6 +244,8 @@ protected HostPoolResource() { } public virtual Azure.Pageable GetUserSessions(string filter, System.Threading.CancellationToken cancellationToken) { throw null; } public virtual Azure.AsyncPageable GetUserSessionsAsync(string filter = null, int? pageSize = default(int?), bool? isDescending = default(bool?), int? initialSkip = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetUserSessionsAsync(string filter, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Pageable ImportAppAttachPackageInfos(Azure.ResourceManager.DesktopVirtualization.Models.ImportPackageInfoContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable ImportAppAttachPackageInfosAsync(Azure.ResourceManager.DesktopVirtualization.Models.ImportPackageInfoContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { 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 RetrieveRegistrationToken(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -824,7 +880,7 @@ protected VirtualWorkspaceCollection() { } public partial class VirtualWorkspaceData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public VirtualWorkspaceData(Azure.Core.AzureLocation location) { } - public System.Collections.Generic.IList ApplicationGroupReferences { get { throw null; } } + public System.Collections.Generic.IList ApplicationGroupReferences { get { throw null; } set { } } public string Description { get { throw null; } set { } } public Azure.ETag? ETag { get { throw null; } } public string FriendlyName { get { throw null; } set { } } @@ -915,6 +971,7 @@ namespace Azure.ResourceManager.DesktopVirtualization.Mocking public partial class MockableDesktopVirtualizationArmClient : Azure.ResourceManager.ArmResource { protected MockableDesktopVirtualizationArmClient() { } + public virtual Azure.ResourceManager.DesktopVirtualization.AppAttachPackageResource GetAppAttachPackageResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.DesktopVirtualization.HostPoolPrivateEndpointConnectionResource GetHostPoolPrivateEndpointConnectionResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.DesktopVirtualization.HostPoolResource GetHostPoolResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.DesktopVirtualization.MsixPackageResource GetMsixPackageResource(Azure.Core.ResourceIdentifier id) { throw null; } @@ -932,6 +989,9 @@ protected MockableDesktopVirtualizationArmClient() { } public partial class MockableDesktopVirtualizationResourceGroupResource : Azure.ResourceManager.ArmResource { protected MockableDesktopVirtualizationResourceGroupResource() { } + public virtual Azure.Response GetAppAttachPackage(string appAttachPackageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAppAttachPackageAsync(string appAttachPackageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.DesktopVirtualization.AppAttachPackageCollection GetAppAttachPackages() { throw null; } public virtual Azure.Response GetHostPool(string hostPoolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetHostPoolAsync(string hostPoolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.DesktopVirtualization.HostPoolCollection GetHostPools() { throw null; } @@ -948,6 +1008,8 @@ protected MockableDesktopVirtualizationResourceGroupResource() { } public partial class MockableDesktopVirtualizationSubscriptionResource : Azure.ResourceManager.ArmResource { protected MockableDesktopVirtualizationSubscriptionResource() { } + public virtual Azure.Pageable GetAppAttachPackages(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAppAttachPackagesAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetHostPools(int? pageSize = default(int?), bool? isDescending = default(bool?), int? initialSkip = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.Pageable GetHostPools(System.Threading.CancellationToken cancellationToken) { throw null; } @@ -968,16 +1030,112 @@ protected MockableDesktopVirtualizationSubscriptionResource() { } } namespace Azure.ResourceManager.DesktopVirtualization.Models { + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AppAttachPackageArchitecture : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AppAttachPackageArchitecture(string value) { throw null; } + public static Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackageArchitecture ALL { get { throw null; } } + public static Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackageArchitecture ARM { get { throw null; } } + public static Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackageArchitecture ARM64 { get { throw null; } } + public static Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackageArchitecture Neutral { get { throw null; } } + public static Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackageArchitecture X64 { get { throw null; } } + public static Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackageArchitecture X86 { get { throw null; } } + public static Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackageArchitecture X86A64 { get { throw null; } } + public bool Equals(Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackageArchitecture 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.DesktopVirtualization.Models.AppAttachPackageArchitecture left, Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackageArchitecture right) { throw null; } + public static implicit operator Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackageArchitecture (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackageArchitecture left, Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackageArchitecture right) { throw null; } + public override string ToString() { throw null; } + } + public partial class AppAttachPackageInfoProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AppAttachPackageInfoProperties() { } + public System.DateTimeOffset? CertificateExpiry { get { throw null; } set { } } + public string CertificateName { get { throw null; } set { } } + public string DisplayName { get { throw null; } set { } } + public string ImagePath { get { throw null; } set { } } + public bool? IsActive { get { throw null; } set { } } + public Azure.ResourceManager.DesktopVirtualization.Models.PackageTimestamped? IsPackageTimestamped { get { throw null; } set { } } + public bool? IsRegularRegistration { get { throw null; } set { } } + public System.DateTimeOffset? LastUpdated { get { throw null; } set { } } + public string PackageAlias { get { throw null; } set { } } + public System.Collections.Generic.IList PackageApplications { get { throw null; } } + public System.Collections.Generic.IList PackageDependencies { get { throw null; } set { } } + public string PackageFamilyName { get { throw null; } set { } } + public string PackageFullName { get { throw null; } set { } } + public string PackageName { get { throw null; } set { } } + public string PackageRelativePath { get { throw null; } set { } } + public string Version { get { throw null; } set { } } + Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackageInfoProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackageInfoProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class AppAttachPackagePatch : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AppAttachPackagePatch() { } + public Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackagePatchProperties Properties { get { throw null; } set { } } + Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackagePatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackagePatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class AppAttachPackagePatchProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AppAttachPackagePatchProperties() { } + public Azure.ResourceManager.DesktopVirtualization.Models.FailHealthCheckOnStagingFailure? FailHealthCheckOnStagingFailure { get { throw null; } set { } } + public System.Collections.Generic.IList HostPoolReferences { get { throw null; } } + public Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackageInfoProperties Image { get { throw null; } set { } } + public string KeyVaultURL { get { throw null; } set { } } + Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackagePatchProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackagePatchProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class AppAttachPackageProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AppAttachPackageProperties() { } + public Azure.ResourceManager.DesktopVirtualization.Models.FailHealthCheckOnStagingFailure? FailHealthCheckOnStagingFailure { get { throw null; } set { } } + public System.Collections.Generic.IList HostPoolReferences { get { throw null; } } + public Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackageInfoProperties Image { get { throw null; } set { } } + public string KeyVaultURL { get { throw null; } set { } } + public Azure.ResourceManager.DesktopVirtualization.Models.ProvisioningState? ProvisioningState { get { throw null; } } + Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackageProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackageProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public static partial class ArmDesktopVirtualizationModelFactory { - public static Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationPrivateEndpointConnection DesktopVirtualizationPrivateEndpointConnection(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationPrivateLinkServiceConnectionState connectionState = null, Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationPrivateEndpointConnectionProvisioningState?)) { throw null; } - public static Azure.ResourceManager.DesktopVirtualization.DesktopVirtualizationPrivateEndpointConnectionDataData DesktopVirtualizationPrivateEndpointConnectionDataData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationPrivateLinkServiceConnectionState connectionState = null, Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationPrivateEndpointConnectionProvisioningState?)) { throw null; } + public static Azure.ResourceManager.DesktopVirtualization.AppAttachPackageData AppAttachPackageData(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.ResourceManager.DesktopVirtualization.Models.AppAttachPackageProperties properties = null) { throw null; } + public static Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackagePatch AppAttachPackagePatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackagePatchProperties properties = null) { throw null; } + public static Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackageProperties AppAttachPackageProperties(Azure.ResourceManager.DesktopVirtualization.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.DesktopVirtualization.Models.ProvisioningState?), Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackageInfoProperties image = null, System.Collections.Generic.IEnumerable hostPoolReferences = null, string keyVaultURL = null, Azure.ResourceManager.DesktopVirtualization.Models.FailHealthCheckOnStagingFailure? failHealthCheckOnStagingFailure = default(Azure.ResourceManager.DesktopVirtualization.Models.FailHealthCheckOnStagingFailure?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationPrivateEndpointConnection DesktopVirtualizationPrivateEndpointConnection(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, Azure.Core.ResourceIdentifier privateEndpointId, Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationPrivateLinkServiceConnectionState connectionState, Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationPrivateEndpointConnectionProvisioningState? provisioningState) { throw null; } + public static Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationPrivateEndpointConnection DesktopVirtualizationPrivateEndpointConnection(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.IEnumerable groupIds = null, Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationPrivateLinkServiceConnectionState connectionState = null, Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationPrivateEndpointConnectionProvisioningState?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.DesktopVirtualization.DesktopVirtualizationPrivateEndpointConnectionDataData DesktopVirtualizationPrivateEndpointConnectionDataData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, Azure.Core.ResourceIdentifier privateEndpointId, Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationPrivateLinkServiceConnectionState connectionState, Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationPrivateEndpointConnectionProvisioningState? provisioningState) { throw null; } + public static Azure.ResourceManager.DesktopVirtualization.DesktopVirtualizationPrivateEndpointConnectionDataData DesktopVirtualizationPrivateEndpointConnectionDataData(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.IEnumerable groupIds = null, Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationPrivateLinkServiceConnectionState connectionState = null, Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationPrivateEndpointConnectionProvisioningState?)) { throw null; } public static Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationPrivateLinkResourceData DesktopVirtualizationPrivateLinkResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; } public static Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationStartMenuItem DesktopVirtualizationStartMenuItem(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string appAlias = null, string filePath = null, string commandLineArguments = null, string iconPath = null, int? iconIndex = default(int?)) { throw null; } - public static Azure.ResourceManager.DesktopVirtualization.Models.ExpandMsixImage ExpandMsixImage(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string packageAlias = null, string imagePath = null, string packageName = null, string packageFamilyName = null, string packageFullName = null, string displayName = null, string packageRelativePath = null, bool? isRegularRegistration = default(bool?), bool? isActive = default(bool?), System.Collections.Generic.IEnumerable packageDependencies = null, string version = null, System.DateTimeOffset? lastUpdatedOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable packageApplications = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.DesktopVirtualization.Models.ExpandMsixImage ExpandMsixImage(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string packageAlias, string imagePath, string packageName, string packageFamilyName, string packageFullName, string displayName, string packageRelativePath, bool? isRegularRegistration, bool? isActive, System.Collections.Generic.IEnumerable packageDependencies, string version, System.DateTimeOffset? lastUpdatedOn, System.Collections.Generic.IEnumerable packageApplications) { throw null; } + public static Azure.ResourceManager.DesktopVirtualization.Models.ExpandMsixImage ExpandMsixImage(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string packageAlias = null, string imagePath = null, string packageName = null, string packageFamilyName = null, string packageFullName = null, string displayName = null, string packageRelativePath = null, bool? isRegularRegistration = default(bool?), bool? isActive = default(bool?), System.Collections.Generic.IEnumerable packageDependencies = null, string version = null, System.DateTimeOffset? lastUpdatedOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable packageApplications = null, string certificateName = null, System.DateTimeOffset? certificateExpiry = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.DesktopVirtualization.HostPoolData HostPoolData(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), string objectId = null, string friendlyName = null, string description = null, Azure.ResourceManager.DesktopVirtualization.Models.HostPoolType hostPoolType = default(Azure.ResourceManager.DesktopVirtualization.Models.HostPoolType), Azure.ResourceManager.DesktopVirtualization.Models.PersonalDesktopAssignmentType? personalDesktopAssignmentType = default(Azure.ResourceManager.DesktopVirtualization.Models.PersonalDesktopAssignmentType?), string customRdpProperty = null, int? maxSessionLimit = default(int?), Azure.ResourceManager.DesktopVirtualization.Models.HostPoolLoadBalancerType loadBalancerType = default(Azure.ResourceManager.DesktopVirtualization.Models.HostPoolLoadBalancerType), int? ring = default(int?), bool? isValidationEnvironment = default(bool?), Azure.ResourceManager.DesktopVirtualization.Models.HostPoolRegistrationInfo registrationInfo = null, string vmTemplate = null, System.Collections.Generic.IEnumerable applicationGroupReferences = null, System.Collections.Generic.IEnumerable appAttachPackageReferences = null, string ssoAdfsAuthority = null, string ssoClientId = null, string ssoClientSecretKeyVaultPath = null, Azure.ResourceManager.DesktopVirtualization.Models.HostPoolSsoSecretType? ssoSecretType = default(Azure.ResourceManager.DesktopVirtualization.Models.HostPoolSsoSecretType?), Azure.ResourceManager.DesktopVirtualization.Models.PreferredAppGroupType preferredAppGroupType = default(Azure.ResourceManager.DesktopVirtualization.Models.PreferredAppGroupType), bool? startVmOnConnect = default(bool?), bool? isCloudPCResource = default(bool?), Azure.ResourceManager.DesktopVirtualization.Models.HostPoolPublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.DesktopVirtualization.Models.HostPoolPublicNetworkAccess?), Azure.ResourceManager.DesktopVirtualization.Models.SessionHostAgentUpdateProperties agentUpdate = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.Core.ResourceIdentifier managedBy = null, string kind = null, Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationSku sku = null, Azure.ResourceManager.Models.ArmPlan plan = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.DesktopVirtualization.HostPoolData HostPoolData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, string objectId, string friendlyName, string description, Azure.ResourceManager.DesktopVirtualization.Models.HostPoolType hostPoolType, Azure.ResourceManager.DesktopVirtualization.Models.PersonalDesktopAssignmentType? personalDesktopAssignmentType, string customRdpProperty, int? maxSessionLimit, Azure.ResourceManager.DesktopVirtualization.Models.HostPoolLoadBalancerType loadBalancerType, int? ring, bool? isValidationEnvironment, Azure.ResourceManager.DesktopVirtualization.Models.HostPoolRegistrationInfo registrationInfo, string vmTemplate, System.Collections.Generic.IEnumerable applicationGroupReferences, string ssoAdfsAuthority, string ssoClientId, string ssoClientSecretKeyVaultPath, Azure.ResourceManager.DesktopVirtualization.Models.HostPoolSsoSecretType? ssoSecretType, Azure.ResourceManager.DesktopVirtualization.Models.PreferredAppGroupType preferredAppGroupType, bool? startVmOnConnect, bool? isCloudPCResource, Azure.ResourceManager.DesktopVirtualization.Models.SessionHostAgentUpdateProperties agentUpdate, Azure.Core.ResourceIdentifier managedBy, string kind, Azure.ETag? etag, Azure.ResourceManager.Models.ManagedServiceIdentity identity, Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationSku sku, Azure.ResourceManager.Models.ArmPlan plan) { throw null; } - public static Azure.ResourceManager.DesktopVirtualization.HostPoolData HostPoolData(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), string objectId = null, string friendlyName = null, string description = null, Azure.ResourceManager.DesktopVirtualization.Models.HostPoolType hostPoolType = default(Azure.ResourceManager.DesktopVirtualization.Models.HostPoolType), Azure.ResourceManager.DesktopVirtualization.Models.PersonalDesktopAssignmentType? personalDesktopAssignmentType = default(Azure.ResourceManager.DesktopVirtualization.Models.PersonalDesktopAssignmentType?), string customRdpProperty = null, int? maxSessionLimit = default(int?), Azure.ResourceManager.DesktopVirtualization.Models.HostPoolLoadBalancerType loadBalancerType = default(Azure.ResourceManager.DesktopVirtualization.Models.HostPoolLoadBalancerType), int? ring = default(int?), bool? isValidationEnvironment = default(bool?), Azure.ResourceManager.DesktopVirtualization.Models.HostPoolRegistrationInfo registrationInfo = null, string vmTemplate = null, System.Collections.Generic.IEnumerable applicationGroupReferences = null, string ssoAdfsAuthority = null, string ssoClientId = null, string ssoClientSecretKeyVaultPath = null, Azure.ResourceManager.DesktopVirtualization.Models.HostPoolSsoSecretType? ssoSecretType = default(Azure.ResourceManager.DesktopVirtualization.Models.HostPoolSsoSecretType?), Azure.ResourceManager.DesktopVirtualization.Models.PreferredAppGroupType preferredAppGroupType = default(Azure.ResourceManager.DesktopVirtualization.Models.PreferredAppGroupType), bool? startVmOnConnect = default(bool?), bool? isCloudPCResource = default(bool?), Azure.ResourceManager.DesktopVirtualization.Models.HostPoolPublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.DesktopVirtualization.Models.HostPoolPublicNetworkAccess?), Azure.ResourceManager.DesktopVirtualization.Models.SessionHostAgentUpdateProperties agentUpdate = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.Core.ResourceIdentifier managedBy = null, string kind = null, Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationSku sku = null, Azure.ResourceManager.Models.ArmPlan plan = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.DesktopVirtualization.HostPoolData HostPoolData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, string objectId, string friendlyName, string description, Azure.ResourceManager.DesktopVirtualization.Models.HostPoolType hostPoolType, Azure.ResourceManager.DesktopVirtualization.Models.PersonalDesktopAssignmentType? personalDesktopAssignmentType, string customRdpProperty, int? maxSessionLimit, Azure.ResourceManager.DesktopVirtualization.Models.HostPoolLoadBalancerType loadBalancerType, int? ring, bool? isValidationEnvironment, Azure.ResourceManager.DesktopVirtualization.Models.HostPoolRegistrationInfo registrationInfo, string vmTemplate, System.Collections.Generic.IEnumerable applicationGroupReferences, string ssoAdfsAuthority, string ssoClientId, string ssoClientSecretKeyVaultPath, Azure.ResourceManager.DesktopVirtualization.Models.HostPoolSsoSecretType? ssoSecretType, Azure.ResourceManager.DesktopVirtualization.Models.PreferredAppGroupType preferredAppGroupType, bool? startVmOnConnect, bool? isCloudPCResource, Azure.ResourceManager.DesktopVirtualization.Models.HostPoolPublicNetworkAccess? publicNetworkAccess, Azure.ResourceManager.DesktopVirtualization.Models.SessionHostAgentUpdateProperties agentUpdate, System.Collections.Generic.IEnumerable privateEndpointConnections, Azure.Core.ResourceIdentifier managedBy, string kind, Azure.ETag? etag, Azure.ResourceManager.Models.ManagedServiceIdentity identity, Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationSku sku, Azure.ResourceManager.Models.ArmPlan plan) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.DesktopVirtualization.Models.HostPoolPatch HostPoolPatch(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, string friendlyName, string description, string customRdpProperty, int? maxSessionLimit, Azure.ResourceManager.DesktopVirtualization.Models.PersonalDesktopAssignmentType? personalDesktopAssignmentType, Azure.ResourceManager.DesktopVirtualization.Models.HostPoolLoadBalancerType? loadBalancerType, int? ring, bool? isValidationEnvironment, Azure.ResourceManager.DesktopVirtualization.Models.HostPoolRegistrationInfoPatch registrationInfo, string vmTemplate, string ssoAdfsAuthority, string ssoClientId, string ssoClientSecretKeyVaultPath, Azure.ResourceManager.DesktopVirtualization.Models.HostPoolSsoSecretType? ssoSecretType, Azure.ResourceManager.DesktopVirtualization.Models.PreferredAppGroupType? preferredAppGroupType, bool? startVmOnConnect, Azure.ResourceManager.DesktopVirtualization.Models.SessionHostAgentUpdatePatchProperties agentUpdate) { throw null; } public static Azure.ResourceManager.DesktopVirtualization.Models.HostPoolPatch HostPoolPatch(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, string friendlyName = null, string description = null, string customRdpProperty = null, int? maxSessionLimit = default(int?), Azure.ResourceManager.DesktopVirtualization.Models.PersonalDesktopAssignmentType? personalDesktopAssignmentType = default(Azure.ResourceManager.DesktopVirtualization.Models.PersonalDesktopAssignmentType?), Azure.ResourceManager.DesktopVirtualization.Models.HostPoolLoadBalancerType? loadBalancerType = default(Azure.ResourceManager.DesktopVirtualization.Models.HostPoolLoadBalancerType?), int? ring = default(int?), bool? isValidationEnvironment = default(bool?), Azure.ResourceManager.DesktopVirtualization.Models.HostPoolRegistrationInfoPatch registrationInfo = null, string vmTemplate = null, string ssoAdfsAuthority = null, string ssoClientId = null, string ssoClientSecretKeyVaultPath = null, Azure.ResourceManager.DesktopVirtualization.Models.HostPoolSsoSecretType? ssoSecretType = default(Azure.ResourceManager.DesktopVirtualization.Models.HostPoolSsoSecretType?), Azure.ResourceManager.DesktopVirtualization.Models.PreferredAppGroupType? preferredAppGroupType = default(Azure.ResourceManager.DesktopVirtualization.Models.PreferredAppGroupType?), bool? startVmOnConnect = default(bool?), Azure.ResourceManager.DesktopVirtualization.Models.HostPoolPublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.DesktopVirtualization.Models.HostPoolPublicNetworkAccess?), Azure.ResourceManager.DesktopVirtualization.Models.SessionHostAgentUpdatePatchProperties agentUpdate = null) { throw null; } @@ -1026,6 +1184,7 @@ public partial class DesktopVirtualizationPrivateEndpointConnection : Azure.Reso { public DesktopVirtualizationPrivateEndpointConnection() { } public Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationPrivateLinkServiceConnectionState ConnectionState { get { throw null; } set { } } + public System.Collections.Generic.IReadOnlyList GroupIds { get { throw null; } } public Azure.Core.ResourceIdentifier PrivateEndpointId { get { throw null; } } public Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationPrivateEndpointConnectionProvisioningState? ProvisioningState { get { throw null; } } Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationPrivateEndpointConnection System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1171,6 +1330,8 @@ public DesktopVirtualizationStartMenuItem() { } public partial class ExpandMsixImage : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public ExpandMsixImage() { } + public System.DateTimeOffset? CertificateExpiry { get { throw null; } set { } } + public string CertificateName { get { throw null; } set { } } public string DisplayName { get { throw null; } set { } } public string ImagePath { get { throw null; } set { } } public bool? IsActive { get { throw null; } set { } } @@ -1191,6 +1352,25 @@ public ExpandMsixImage() { } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct FailHealthCheckOnStagingFailure : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public FailHealthCheckOnStagingFailure(string value) { throw null; } + public static Azure.ResourceManager.DesktopVirtualization.Models.FailHealthCheckOnStagingFailure DoNotFail { get { throw null; } } + public static Azure.ResourceManager.DesktopVirtualization.Models.FailHealthCheckOnStagingFailure NeedsAssistance { get { throw null; } } + public static Azure.ResourceManager.DesktopVirtualization.Models.FailHealthCheckOnStagingFailure Unhealthy { get { throw null; } } + public bool Equals(Azure.ResourceManager.DesktopVirtualization.Models.FailHealthCheckOnStagingFailure 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.DesktopVirtualization.Models.FailHealthCheckOnStagingFailure left, Azure.ResourceManager.DesktopVirtualization.Models.FailHealthCheckOnStagingFailure right) { throw null; } + public static implicit operator Azure.ResourceManager.DesktopVirtualization.Models.FailHealthCheckOnStagingFailure (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.DesktopVirtualization.Models.FailHealthCheckOnStagingFailure left, Azure.ResourceManager.DesktopVirtualization.Models.FailHealthCheckOnStagingFailure right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct HostPoolLoadBalancerType : System.IEquatable { private readonly object _dummy; @@ -1229,7 +1409,7 @@ public HostPoolPatch() { } public string SsoClientSecretKeyVaultPath { get { throw null; } set { } } public Azure.ResourceManager.DesktopVirtualization.Models.HostPoolSsoSecretType? SsoSecretType { get { throw null; } set { } } public bool? StartVmOnConnect { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Tags { get { throw null; } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } set { } } public string VmTemplate { get { throw null; } set { } } Azure.ResourceManager.DesktopVirtualization.Models.HostPoolPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -1338,6 +1518,17 @@ public HostPoolRegistrationInfoPatch() { } public static bool operator !=(Azure.ResourceManager.DesktopVirtualization.Models.HostPoolType left, Azure.ResourceManager.DesktopVirtualization.Models.HostPoolType right) { throw null; } public override string ToString() { throw null; } } + public partial class ImportPackageInfoContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ImportPackageInfoContent() { } + public Azure.ResourceManager.DesktopVirtualization.Models.AppAttachPackageArchitecture? PackageArchitecture { get { throw null; } set { } } + public string Path { get { throw null; } set { } } + Azure.ResourceManager.DesktopVirtualization.Models.ImportPackageInfoContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.DesktopVirtualization.Models.ImportPackageInfoContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class MaintenanceWindowPatchProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public MaintenanceWindowPatchProperties() { } @@ -1423,6 +1614,24 @@ public MsixPackagePatch() { } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct PackageTimestamped : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public PackageTimestamped(string value) { throw null; } + public static Azure.ResourceManager.DesktopVirtualization.Models.PackageTimestamped NotTimestamped { get { throw null; } } + public static Azure.ResourceManager.DesktopVirtualization.Models.PackageTimestamped Timestamped { get { throw null; } } + public bool Equals(Azure.ResourceManager.DesktopVirtualization.Models.PackageTimestamped 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.DesktopVirtualization.Models.PackageTimestamped left, Azure.ResourceManager.DesktopVirtualization.Models.PackageTimestamped right) { throw null; } + public static implicit operator Azure.ResourceManager.DesktopVirtualization.Models.PackageTimestamped (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.DesktopVirtualization.Models.PackageTimestamped left, Azure.ResourceManager.DesktopVirtualization.Models.PackageTimestamped right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct PersonalDesktopAssignmentType : System.IEquatable { private readonly object _dummy; @@ -1460,6 +1669,26 @@ public MsixPackagePatch() { } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.DesktopVirtualization.Models.ProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.DesktopVirtualization.Models.ProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.DesktopVirtualization.Models.ProvisioningState Provisioning { get { throw null; } } + public static Azure.ResourceManager.DesktopVirtualization.Models.ProvisioningState Succeeded { get { throw null; } } + public bool Equals(Azure.ResourceManager.DesktopVirtualization.Models.ProvisioningState 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.DesktopVirtualization.Models.ProvisioningState left, Azure.ResourceManager.DesktopVirtualization.Models.ProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.DesktopVirtualization.Models.ProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.DesktopVirtualization.Models.ProvisioningState left, Azure.ResourceManager.DesktopVirtualization.Models.ProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct RemoteApplicationType : System.IEquatable { private readonly object _dummy; @@ -1527,7 +1756,7 @@ public ScalingPlanPatch() { } [System.ObsoleteAttribute("This property is obsolete and might be removed in a future version", false)] public Azure.ResourceManager.DesktopVirtualization.Models.HostPoolType? HostPoolType { get { throw null; } set { } } public System.Collections.Generic.IList Schedules { get { throw null; } } - public System.Collections.Generic.IDictionary Tags { get { throw null; } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } set { } } public string TimeZone { get { throw null; } set { } } Azure.ResourceManager.DesktopVirtualization.Models.ScalingPlanPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -1681,7 +1910,7 @@ public partial class SessionHostAgentUpdatePatchProperties : System.ClientModel. { public SessionHostAgentUpdatePatchProperties() { } public bool? DoesUseSessionHostLocalTime { get { throw null; } set { } } - public System.Collections.Generic.IList MaintenanceWindows { get { throw null; } } + public System.Collections.Generic.IList MaintenanceWindows { get { throw null; } set { } } public string MaintenanceWindowTimeZone { get { throw null; } set { } } public Azure.ResourceManager.DesktopVirtualization.Models.SessionHostComponentUpdateType? UpdateType { get { throw null; } set { } } Azure.ResourceManager.DesktopVirtualization.Models.SessionHostAgentUpdatePatchProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1694,7 +1923,7 @@ public partial class SessionHostAgentUpdateProperties : System.ClientModel.Primi { public SessionHostAgentUpdateProperties() { } public bool? DoesUseSessionHostLocalTime { get { throw null; } set { } } - public System.Collections.Generic.IList MaintenanceWindows { get { throw null; } } + public System.Collections.Generic.IList MaintenanceWindows { get { throw null; } set { } } public string MaintenanceWindowTimeZone { get { throw null; } set { } } public Azure.ResourceManager.DesktopVirtualization.Models.SessionHostComponentUpdateType? UpdateType { get { throw null; } set { } } Azure.ResourceManager.DesktopVirtualization.Models.SessionHostAgentUpdateProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1977,7 +2206,7 @@ public VirtualApplicationGroupPatch() { } public string Description { get { throw null; } set { } } public string FriendlyName { get { throw null; } set { } } public bool? ShowInFeed { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Tags { get { throw null; } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } set { } } Azure.ResourceManager.DesktopVirtualization.Models.VirtualApplicationGroupPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.DesktopVirtualization.Models.VirtualApplicationGroupPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -2016,7 +2245,7 @@ public VirtualApplicationPatch() { } public string MsixPackageApplicationId { get { throw null; } set { } } public string MsixPackageFamilyName { get { throw null; } set { } } public bool? ShowInPortal { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Tags { get { throw null; } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } set { } } Azure.ResourceManager.DesktopVirtualization.Models.VirtualApplicationPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.DesktopVirtualization.Models.VirtualApplicationPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -2046,7 +2275,7 @@ public partial class VirtualDesktopPatch : System.ClientModel.Primitives.IJsonMo public VirtualDesktopPatch() { } public string Description { get { throw null; } set { } } public string FriendlyName { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Tags { get { throw null; } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } set { } } Azure.ResourceManager.DesktopVirtualization.Models.VirtualDesktopPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.DesktopVirtualization.Models.VirtualDesktopPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -2056,11 +2285,11 @@ public VirtualDesktopPatch() { } public partial class VirtualWorkspacePatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public VirtualWorkspacePatch() { } - public System.Collections.Generic.IList ApplicationGroupReferences { get { throw null; } } + public System.Collections.Generic.IList ApplicationGroupReferences { get { throw null; } set { } } public string Description { get { throw null; } set { } } public string FriendlyName { get { throw null; } set { } } public Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationPublicNetworkAccess? PublicNetworkAccess { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Tags { get { throw null; } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } set { } } Azure.ResourceManager.DesktopVirtualization.Models.VirtualWorkspacePatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.DesktopVirtualization.Models.VirtualWorkspacePatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_AppAttachPackageCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_AppAttachPackageCollection.cs new file mode 100644 index 000000000000..1b5fe669de30 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_AppAttachPackageCollection.cs @@ -0,0 +1,243 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager.DesktopVirtualization.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.DesktopVirtualization.Samples +{ + public partial class Sample_AppAttachPackageCollection + { + // AppAttachPackage_Get + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_AppAttachPackageGet() + { + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/AppAttachPackage_Get.json + // this example is just showing the usage of "AppAttachPackage_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "daefabc0-95b4-48b3-b645-8a753a63c4fa"; + string resourceGroupName = "resourceGroup1"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this AppAttachPackageResource + AppAttachPackageCollection collection = resourceGroupResource.GetAppAttachPackages(); + + // invoke the operation + string appAttachPackageName = "packagefullname"; + AppAttachPackageResource result = await collection.GetAsync(appAttachPackageName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + AppAttachPackageData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // AppAttachPackage_Get + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_AppAttachPackageGet() + { + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/AppAttachPackage_Get.json + // this example is just showing the usage of "AppAttachPackage_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "daefabc0-95b4-48b3-b645-8a753a63c4fa"; + string resourceGroupName = "resourceGroup1"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this AppAttachPackageResource + AppAttachPackageCollection collection = resourceGroupResource.GetAppAttachPackages(); + + // invoke the operation + string appAttachPackageName = "packagefullname"; + bool result = await collection.ExistsAsync(appAttachPackageName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // AppAttachPackage_Get + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetIfExists_AppAttachPackageGet() + { + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/AppAttachPackage_Get.json + // this example is just showing the usage of "AppAttachPackage_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "daefabc0-95b4-48b3-b645-8a753a63c4fa"; + string resourceGroupName = "resourceGroup1"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this AppAttachPackageResource + AppAttachPackageCollection collection = resourceGroupResource.GetAppAttachPackages(); + + // invoke the operation + string appAttachPackageName = "packagefullname"; + NullableResponse response = await collection.GetIfExistsAsync(appAttachPackageName); + AppAttachPackageResource result = response.HasValue ? response.Value : null; + + if (result == null) + { + Console.WriteLine($"Succeeded with null as result"); + } + else + { + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + AppAttachPackageData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + + // AppAttachPackage_Create + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_AppAttachPackageCreate() + { + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/AppAttachPackage_Create.json + // this example is just showing the usage of "AppAttachPackage_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "daefabc0-95b4-48b3-b645-8a753a63c4fa"; + string resourceGroupName = "resourceGroup1"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this AppAttachPackageResource + AppAttachPackageCollection collection = resourceGroupResource.GetAppAttachPackages(); + + // invoke the operation + string appAttachPackageName = "msixpackagefullname"; + AppAttachPackageData data = new AppAttachPackageData(new AzureLocation("southcentralus"), new AppAttachPackageProperties() + { + Image = new AppAttachPackageInfoProperties() + { + PackageAlias = "msixpackagealias", + ImagePath = "imagepath", + PackageName = "MsixPackageName", + PackageFamilyName = "MsixPackage_FamilyName", + PackageFullName = "MsixPackage_FullName", + DisplayName = "displayname", + PackageRelativePath = "packagerelativepath", + IsRegularRegistration = false, + IsActive = false, + PackageDependencies = +{ +new MsixPackageDependencies() +{ +DependencyName = "MsixPackage_Dependency_Name", +Publisher = "MsixPackage_Dependency_Publisher", +MinVersion = "packageDep_version", +} +}, + Version = "packageversion", + LastUpdated = DateTimeOffset.Parse("2008-09-22T14:01:54.9571247Z"), + PackageApplications = +{ +new MsixPackageApplications() +{ +AppId = "AppId", +Description = "PackageApplicationDescription", +AppUserModelId = "AppUserModelId", +FriendlyName = "FriendlyName", +IconImageName = "Iconimagename", +RawIcon = BinaryData.FromString("\"VGhpcyBpcyBhIHN0cmluZyB0byBoYXNo\""), +RawPng = BinaryData.FromString("\"VGhpcyBpcyBhIHN0cmluZyB0byBoYXNo\""), +} +}, + CertificateName = "certName", + CertificateExpiry = DateTimeOffset.Parse("2023-01-02T17:18:19.1234567Z"), + }, + HostPoolReferences = +{ +}, + KeyVaultURL = "", + FailHealthCheckOnStagingFailure = FailHealthCheckOnStagingFailure.NeedsAssistance, + }); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, appAttachPackageName, data); + AppAttachPackageResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + AppAttachPackageData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // AppAttachPackage_ListByResourceGroup + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_AppAttachPackageListByResourceGroup() + { + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/AppAttachPackage_ListByResourceGroup.json + // this example is just showing the usage of "AppAttachPackage_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "daefabc0-95b4-48b3-b645-8a753a63c4fa"; + string resourceGroupName = "resourceGroup1"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this AppAttachPackageResource + AppAttachPackageCollection collection = resourceGroupResource.GetAppAttachPackages(); + + // invoke the operation and iterate over the result + string filter = "HostPoolName eq 'hostpool1'"; + await foreach (AppAttachPackageResource item in collection.GetAllAsync(filter: filter)) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + AppAttachPackageData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_AppAttachPackageResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_AppAttachPackageResource.cs new file mode 100644 index 000000000000..232a2fa4da20 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_AppAttachPackageResource.cs @@ -0,0 +1,142 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager.DesktopVirtualization.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.DesktopVirtualization.Samples +{ + public partial class Sample_AppAttachPackageResource + { + // AppAttachPackage_Get + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_AppAttachPackageGet() + { + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/AppAttachPackage_Get.json + // this example is just showing the usage of "AppAttachPackage_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this AppAttachPackageResource created on azure + // for more information of creating AppAttachPackageResource, please refer to the document of AppAttachPackageResource + string subscriptionId = "daefabc0-95b4-48b3-b645-8a753a63c4fa"; + string resourceGroupName = "resourceGroup1"; + string appAttachPackageName = "packagefullname"; + ResourceIdentifier appAttachPackageResourceId = AppAttachPackageResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, appAttachPackageName); + AppAttachPackageResource appAttachPackage = client.GetAppAttachPackageResource(appAttachPackageResourceId); + + // invoke the operation + AppAttachPackageResource result = await appAttachPackage.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + AppAttachPackageData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // AppAttachPackage_Delete + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_AppAttachPackageDelete() + { + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/AppAttachPackage_Delete.json + // this example is just showing the usage of "AppAttachPackage_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this AppAttachPackageResource created on azure + // for more information of creating AppAttachPackageResource, please refer to the document of AppAttachPackageResource + string subscriptionId = "daefabc0-95b4-48b3-b645-8a753a63c4fa"; + string resourceGroupName = "resourceGroup1"; + string appAttachPackageName = "packagefullname"; + ResourceIdentifier appAttachPackageResourceId = AppAttachPackageResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, appAttachPackageName); + AppAttachPackageResource appAttachPackage = client.GetAppAttachPackageResource(appAttachPackageResourceId); + + // invoke the operation + await appAttachPackage.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + + // AppAttachPackage_Update + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_AppAttachPackageUpdate() + { + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/AppAttachPackage_Update.json + // this example is just showing the usage of "AppAttachPackage_Update" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this AppAttachPackageResource created on azure + // for more information of creating AppAttachPackageResource, please refer to the document of AppAttachPackageResource + string subscriptionId = "daefabc0-95b4-48b3-b645-8a753a63c4fa"; + string resourceGroupName = "resourceGroup1"; + string appAttachPackageName = "msixpackagefullname"; + ResourceIdentifier appAttachPackageResourceId = AppAttachPackageResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, appAttachPackageName); + AppAttachPackageResource appAttachPackage = client.GetAppAttachPackageResource(appAttachPackageResourceId); + + // invoke the operation + AppAttachPackagePatch patch = new AppAttachPackagePatch(); + AppAttachPackageResource result = await appAttachPackage.UpdateAsync(patch); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + AppAttachPackageData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // AppAttachPackage_ListBySubscription + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAppAttachPackages_AppAttachPackageListBySubscription() + { + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/AppAttachPackage_ListBySubscription.json + // this example is just showing the usage of "AppAttachPackage_ListBySubscription" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SubscriptionResource created on azure + // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource + string subscriptionId = "daefabc0-95b4-48b3-b645-8a753a63c4fa"; + ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); + SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); + + // invoke the operation and iterate over the result + string filter = "HostPoolName eq 'hostpool1'"; + await foreach (AppAttachPackageResource item in subscriptionResource.GetAppAttachPackagesAsync(filter: filter)) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + AppAttachPackageData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolCollection.cs index c3fa3cb6d393..325646ad84c5 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_HostPoolCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_HostPoolGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/HostPool_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/HostPool_Get.json // this example is just showing the usage of "HostPools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_HostPoolGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_HostPoolGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/HostPool_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/HostPool_Get.json // this example is just showing the usage of "HostPools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_HostPoolGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_HostPoolGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/HostPool_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/HostPool_Get.json // this example is just showing the usage of "HostPools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task GetIfExists_HostPoolGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_HostPoolCreate() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/HostPool_Create.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/HostPool_Create.json // this example is just showing the usage of "HostPools_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -204,7 +204,7 @@ public async Task CreateOrUpdate_HostPoolCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_HostPoolListByResourceGroup() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/HostPool_ListByResourceGroup.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/HostPool_ListByResourceGroup.json // this example is just showing the usage of "HostPools_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolPrivateEndpointConnectionCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolPrivateEndpointConnectionCollection.cs index f225b765013b..9526967aa856 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolPrivateEndpointConnectionCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolPrivateEndpointConnectionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_HostPoolPrivateEndpointConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_PrivateEndpointConnectionListByHostPool() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/PrivateEndpointConnection_ListByHostPool.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_ListByHostPool.json // this example is just showing the usage of "PrivateEndpointConnections_ListByHostPool" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task GetAll_PrivateEndpointConnectionListByHostPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_PrivateEndpointConnectionGetByHostPool() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/PrivateEndpointConnection_GetByHostPool.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_GetByHostPool.json // this example is just showing the usage of "PrivateEndpointConnections_GetByHostPool" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,7 +92,7 @@ public async Task Get_PrivateEndpointConnectionGetByHostPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_PrivateEndpointConnectionGetByHostPool() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/PrivateEndpointConnection_GetByHostPool.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_GetByHostPool.json // this example is just showing the usage of "PrivateEndpointConnections_GetByHostPool" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Exists_PrivateEndpointConnectionGetByHostPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_PrivateEndpointConnectionGetByHostPool() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/PrivateEndpointConnection_GetByHostPool.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_GetByHostPool.json // this example is just showing the usage of "PrivateEndpointConnections_GetByHostPool" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -166,7 +166,7 @@ public async Task GetIfExists_PrivateEndpointConnectionGetByHostPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_PrivateEndpointConnectionUpdateByHostPool() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/PrivateEndpointConnection_UpdateByHostPool.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_UpdateByHostPool.json // this example is just showing the usage of "PrivateEndpointConnections_UpdateByHostPool" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolPrivateEndpointConnectionResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolPrivateEndpointConnectionResource.cs index 2d4f560f03dc..35a5e18c837f 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolPrivateEndpointConnectionResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolPrivateEndpointConnectionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_HostPoolPrivateEndpointConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_PrivateEndpointConnectionGetByHostPool() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/PrivateEndpointConnection_GetByHostPool.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_GetByHostPool.json // this example is just showing the usage of "PrivateEndpointConnections_GetByHostPool" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_PrivateEndpointConnectionGetByHostPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_PrivateEndpointConnectionDeleteByHostPool() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/PrivateEndpointConnection_DeleteByHostPool.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_DeleteByHostPool.json // this example is just showing the usage of "PrivateEndpointConnections_DeleteByHostPool" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task Delete_PrivateEndpointConnectionDeleteByHostPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_PrivateEndpointConnectionUpdateByHostPool() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/PrivateEndpointConnection_UpdateByHostPool.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_UpdateByHostPool.json // this example is just showing the usage of "PrivateEndpointConnections_UpdateByHostPool" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolResource.cs index 79ca83107792..d6cc46b67ed5 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolResource.cs @@ -21,7 +21,7 @@ public partial class Sample_HostPoolResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetPrivateLinkResources_PrivateLinkResourcesListByHostPool() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/PrivateLinkResources_ListByHostPool.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateLinkResources_ListByHostPool.json // this example is just showing the usage of "PrivateLinkResources_ListByHostPool" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task GetPrivateLinkResources_PrivateLinkResourcesListByHostPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetScalingPlans_ScalingPlanListByHostPool() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ScalingPlan_ListByHostPool.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlan_ListByHostPool.json // this example is just showing the usage of "ScalingPlans_ListByHostPool" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task GetScalingPlans_ScalingPlanListByHostPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_HostPoolGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/HostPool_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/HostPool_Get.json // this example is just showing the usage of "HostPools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -119,7 +119,7 @@ public async Task Get_HostPoolGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_HostPoolDelete() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/HostPool_Delete.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/HostPool_Delete.json // this example is just showing the usage of "HostPools_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -147,7 +147,7 @@ public async Task Delete_HostPoolDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_HostPoolUpdate() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/HostPool_Update.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/HostPool_Update.json // this example is just showing the usage of "HostPools_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -221,7 +221,7 @@ public async Task Update_HostPoolUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetHostPools_HostPoolList() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/HostPool_List.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/HostPool_List.json // this example is just showing the usage of "HostPools_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -256,7 +256,7 @@ public async Task GetHostPools_HostPoolList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task RetrieveRegistrationToken_HostPoolsRetrieveRegistrationTokenPost() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/HostPools_RetrieveRegistrationToken_Post.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/HostPools_RetrieveRegistrationToken_Post.json // this example is just showing the usage of "HostPools_RetrieveRegistrationToken" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -283,7 +283,7 @@ public async Task RetrieveRegistrationToken_HostPoolsRetrieveRegistrationTokenPo [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetUserSessions_UserSessionListByHostPool() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/UserSession_ListByHostPool.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/UserSession_ListByHostPool.json // this example is just showing the usage of "UserSessions_ListByHostPool" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -316,12 +316,51 @@ public async Task GetUserSessions_UserSessionListByHostPool() Console.WriteLine($"Succeeded"); } + // AppAttachPackageInfo_Import + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task ImportAppAttachPackageInfos_AppAttachPackageInfoImport() + { + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/AppAttachPackageInfo_Import_Post.json + // this example is just showing the usage of "AppAttachPackageInfo_Import" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this HostPoolResource created on azure + // for more information of creating HostPoolResource, please refer to the document of HostPoolResource + string subscriptionId = "daefabc0-95b4-48b3-b645-8a753a63c4fa"; + string resourceGroupName = "resourceGroup1"; + string hostPoolName = "hostpool1"; + ResourceIdentifier hostPoolResourceId = HostPoolResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, hostPoolName); + HostPoolResource hostPool = client.GetHostPoolResource(hostPoolResourceId); + + // invoke the operation and iterate over the result + ImportPackageInfoContent content = new ImportPackageInfoContent() + { + Path = "imagepath", + PackageArchitecture = AppAttachPackageArchitecture.X64, + }; + await foreach (AppAttachPackageResource item in hostPool.ImportAppAttachPackageInfosAsync(content)) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + AppAttachPackageData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + // MsixImage_Expand [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task ExpandMsixImages_MsixImageExpand() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/MsixImage_Expand_Post.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/MsixImage_Expand_Post.json // this example is just showing the usage of "MsixImages_Expand" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_MsixPackageCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_MsixPackageCollection.cs index dbaad0a85cef..d06d19cba012 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_MsixPackageCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_MsixPackageCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_MsixPackageCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_MSIXPackageGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/MsixPackage_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/MsixPackage_Get.json // this example is just showing the usage of "MSIXPackages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_MSIXPackageGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_MSIXPackageGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/MsixPackage_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/MsixPackage_Get.json // this example is just showing the usage of "MSIXPackages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Exists_MSIXPackageGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_MSIXPackageGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/MsixPackage_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/MsixPackage_Get.json // this example is just showing the usage of "MSIXPackages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetIfExists_MSIXPackageGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_MSIXPackageCreate() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/MsixPackage_Create.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/MsixPackage_Create.json // this example is just showing the usage of "MSIXPackages_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -199,7 +199,7 @@ public async Task CreateOrUpdate_MSIXPackageCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_MSIXPackageList() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/MsixPackage_List.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/MsixPackage_List.json // this example is just showing the usage of "MSIXPackages_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_MsixPackageResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_MsixPackageResource.cs index db15968b0b74..99c796e941b8 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_MsixPackageResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_MsixPackageResource.cs @@ -20,7 +20,7 @@ public partial class Sample_MsixPackageResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_MSIXPackageGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/MsixPackage_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/MsixPackage_Get.json // this example is just showing the usage of "MSIXPackages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_MSIXPackageGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_MSIXPackageDelete() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/MsixPackage_Delete.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/MsixPackage_Delete.json // this example is just showing the usage of "MSIXPackages_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task Delete_MSIXPackageDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_MSIXPackageUpdate() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/MsixPackage_Update.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/MsixPackage_Update.json // this example is just showing the usage of "MSIXPackages_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanCollection.cs index d64ccd00f145..43711a4b076b 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_ScalingPlanCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ScalingPlansGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ScalingPlan_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlan_Get.json // this example is just showing the usage of "ScalingPlans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_ScalingPlansGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ScalingPlansGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ScalingPlan_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlan_Get.json // this example is just showing the usage of "ScalingPlans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_ScalingPlansGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_ScalingPlansGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ScalingPlan_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlan_Get.json // this example is just showing the usage of "ScalingPlans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task GetIfExists_ScalingPlansGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ScalingPlansCreate() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ScalingPlan_Create.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlan_Create.json // this example is just showing the usage of "ScalingPlans_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -208,7 +208,7 @@ public async Task CreateOrUpdate_ScalingPlansCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ScalingPlansListByResourceGroup() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ScalingPlan_ListByResourceGroup.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlan_ListByResourceGroup.json // this example is just showing the usage of "ScalingPlans_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPersonalScheduleCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPersonalScheduleCollection.cs index 1151b5c3273b..3542c7d82580 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPersonalScheduleCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPersonalScheduleCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_ScalingPlanPersonalScheduleCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ScalingPlanPersonalSchedulesGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ScalingPlanPersonalSchedule_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPersonalSchedule_Get.json // this example is just showing the usage of "ScalingPlanPersonalSchedules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_ScalingPlanPersonalSchedulesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ScalingPlanPersonalSchedulesGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ScalingPlanPersonalSchedule_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPersonalSchedule_Get.json // this example is just showing the usage of "ScalingPlanPersonalSchedules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Exists_ScalingPlanPersonalSchedulesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_ScalingPlanPersonalSchedulesGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ScalingPlanPersonalSchedule_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPersonalSchedule_Get.json // this example is just showing the usage of "ScalingPlanPersonalSchedules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetIfExists_ScalingPlanPersonalSchedulesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ScalingPlanPersonalSchedulesCreate() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ScalingPlanPersonalSchedule_Create.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPersonalSchedule_Create.json // this example is just showing the usage of "ScalingPlanPersonalSchedules_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -197,7 +197,7 @@ public async Task CreateOrUpdate_ScalingPlanPersonalSchedulesCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ScalingPlanPersonalSchedulesList() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ScalingPlanPersonalSchedule_List.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPersonalSchedule_List.json // this example is just showing the usage of "ScalingPlanPersonalSchedules_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPersonalScheduleResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPersonalScheduleResource.cs index 85bec9b808c0..730781580278 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPersonalScheduleResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPersonalScheduleResource.cs @@ -20,7 +20,7 @@ public partial class Sample_ScalingPlanPersonalScheduleResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ScalingPlanPersonalSchedulesGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ScalingPlanPersonalSchedule_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPersonalSchedule_Get.json // this example is just showing the usage of "ScalingPlanPersonalSchedules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_ScalingPlanPersonalSchedulesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_ScalingPlanPersonalSchedulesDelete() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ScalingPlanPersonalSchedule_Delete.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPersonalSchedule_Delete.json // this example is just showing the usage of "ScalingPlanPersonalSchedules_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task Delete_ScalingPlanPersonalSchedulesDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ScalingPlanPersonalSchedulesUpdate() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ScalingPlanPersonalSchedule_Update.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPersonalSchedule_Update.json // this example is just showing the usage of "ScalingPlanPersonalSchedules_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPooledScheduleCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPooledScheduleCollection.cs index 0bf65535c49f..f891e3a40f2e 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPooledScheduleCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPooledScheduleCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_ScalingPlanPooledScheduleCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ScalingPlanPooledSchedulesGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ScalingPlanPooledSchedule_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPooledSchedule_Get.json // this example is just showing the usage of "ScalingPlanPooledSchedules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_ScalingPlanPooledSchedulesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ScalingPlanPooledSchedulesGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ScalingPlanPooledSchedule_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPooledSchedule_Get.json // this example is just showing the usage of "ScalingPlanPooledSchedules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Exists_ScalingPlanPooledSchedulesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_ScalingPlanPooledSchedulesGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ScalingPlanPooledSchedule_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPooledSchedule_Get.json // this example is just showing the usage of "ScalingPlanPooledSchedules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetIfExists_ScalingPlanPooledSchedulesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ScalingPlanPooledSchedulesCreate() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ScalingPlanPooledSchedule_Create.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPooledSchedule_Create.json // this example is just showing the usage of "ScalingPlanPooledSchedules_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -187,7 +187,7 @@ public async Task CreateOrUpdate_ScalingPlanPooledSchedulesCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ScalingPlanPooledSchedulesList() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ScalingPlanPooledSchedule_List.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPooledSchedule_List.json // this example is just showing the usage of "ScalingPlanPooledSchedules_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPooledScheduleResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPooledScheduleResource.cs index bdd3499656df..ba8dc1bb6437 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPooledScheduleResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPooledScheduleResource.cs @@ -20,7 +20,7 @@ public partial class Sample_ScalingPlanPooledScheduleResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ScalingPlanPooledSchedulesGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ScalingPlanPooledSchedule_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPooledSchedule_Get.json // this example is just showing the usage of "ScalingPlanPooledSchedules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_ScalingPlanPooledSchedulesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_ScalingPlanPooledSchedulesDelete() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ScalingPlanPooledSchedule_Delete.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPooledSchedule_Delete.json // this example is just showing the usage of "ScalingPlanPooledSchedules_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task Delete_ScalingPlanPooledSchedulesDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ScalingPlanPooledSchedulesUpdate() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ScalingPlanPooledSchedule_Update.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPooledSchedule_Update.json // this example is just showing the usage of "ScalingPlanPooledSchedules_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanResource.cs index 9d8a5509209e..b802d3b3074f 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ScalingPlanResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ScalingPlansGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ScalingPlan_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlan_Get.json // this example is just showing the usage of "ScalingPlans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_ScalingPlansGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_ScalingPlansDelete() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ScalingPlan_Delete.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlan_Delete.json // this example is just showing the usage of "ScalingPlans_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Delete_ScalingPlansDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ScalingPlansUpdate() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ScalingPlan_Update.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlan_Update.json // this example is just showing the usage of "ScalingPlans_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -111,7 +111,7 @@ public async Task Update_ScalingPlansUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetScalingPlans_ScalingPlansListBySubscription() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ScalingPlan_ListBySubscription.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlan_ListBySubscription.json // this example is just showing the usage of "ScalingPlans_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_SessionHostCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_SessionHostCollection.cs index 9b8fecc292da..fdc1a2ee2619 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_SessionHostCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_SessionHostCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_SessionHostCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_SessionHostGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/SessionHost_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/SessionHost_Get.json // this example is just showing the usage of "SessionHosts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_SessionHostGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_SessionHostGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/SessionHost_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/SessionHost_Get.json // this example is just showing the usage of "SessionHosts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_SessionHostGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_SessionHostGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/SessionHost_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/SessionHost_Get.json // this example is just showing the usage of "SessionHosts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task GetIfExists_SessionHostGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_SessionHostList() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/SessionHost_List.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/SessionHost_List.json // this example is just showing the usage of "SessionHosts_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_SessionHostResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_SessionHostResource.cs index 34a99fdfe0f7..87069426e788 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_SessionHostResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_SessionHostResource.cs @@ -20,7 +20,7 @@ public partial class Sample_SessionHostResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_SessionHostGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/SessionHost_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/SessionHost_Get.json // this example is just showing the usage of "SessionHosts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_SessionHostGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_SessionHostDelete() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/SessionHost_Delete.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/SessionHost_Delete.json // this example is just showing the usage of "SessionHosts_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -81,7 +81,7 @@ public async Task Delete_SessionHostDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_SessionHostUpdate() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/SessionHost_Update.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/SessionHost_Update.json // this example is just showing the usage of "SessionHosts_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_UserSessionCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_UserSessionCollection.cs index 57b95390169b..4eb163a350d6 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_UserSessionCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_UserSessionCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_UserSessionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_UserSessionGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/UserSession_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/UserSession_Get.json // this example is just showing the usage of "UserSessions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_UserSessionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_UserSessionGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/UserSession_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/UserSession_Get.json // this example is just showing the usage of "UserSessions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Exists_UserSessionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_UserSessionGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/UserSession_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/UserSession_Get.json // this example is just showing the usage of "UserSessions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,7 +131,7 @@ public async Task GetIfExists_UserSessionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_UserSessionList() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/UserSession_List.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/UserSession_List.json // this example is just showing the usage of "UserSessions_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_UserSessionResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_UserSessionResource.cs index 196fd20887f5..57d7d4849227 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_UserSessionResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_UserSessionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_UserSessionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_UserSessionGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/UserSession_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/UserSession_Get.json // this example is just showing the usage of "UserSessions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_UserSessionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_UserSessionDelete() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/UserSession_Delete.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/UserSession_Delete.json // this example is just showing the usage of "UserSessions_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Delete_UserSessionDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Disconnect_UserSessionDisconnectPost() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/UserSession_Disconnect_Post.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/UserSession_Disconnect_Post.json // this example is just showing the usage of "UserSessions_Disconnect" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -112,7 +112,7 @@ public async Task Disconnect_UserSessionDisconnectPost() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task SendMessage_UserSessionSendMessagePost() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/UserSession_SendMessage_Post.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/UserSession_SendMessage_Post.json // this example is just showing the usage of "UserSessions_SendMessage" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationCollection.cs index 2501005ddb86..bd13d3d660cb 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualApplicationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ApplicationGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/Application_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Application_Get.json // this example is just showing the usage of "Applications_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_ApplicationGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ApplicationGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/Application_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Application_Get.json // this example is just showing the usage of "Applications_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Exists_ApplicationGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_ApplicationGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/Application_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Application_Get.json // this example is just showing the usage of "Applications_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetIfExists_ApplicationGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ApplicationCreate() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/Application_Create.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Application_Create.json // this example is just showing the usage of "Applications_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -175,7 +175,7 @@ public async Task CreateOrUpdate_ApplicationCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ApplicationsList() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/Application_List.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Application_List.json // this example is just showing the usage of "Applications_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationGroupCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationGroupCollection.cs index eb800d86f5d9..b77c998352ec 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationGroupCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationGroupCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_VirtualApplicationGroupCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ApplicationGroupGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ApplicationGroup_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ApplicationGroup_Get.json // this example is just showing the usage of "ApplicationGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_ApplicationGroupGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ApplicationGroupGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ApplicationGroup_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ApplicationGroup_Get.json // this example is just showing the usage of "ApplicationGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_ApplicationGroupGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_ApplicationGroupGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ApplicationGroup_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ApplicationGroup_Get.json // this example is just showing the usage of "ApplicationGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task GetIfExists_ApplicationGroupGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ApplicationGroupCreate() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ApplicationGroup_Create.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ApplicationGroup_Create.json // this example is just showing the usage of "ApplicationGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -173,7 +173,7 @@ public async Task CreateOrUpdate_ApplicationGroupCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ApplicationGroupListByResourceGroup() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ApplicationGroup_ListByResourceGroup.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ApplicationGroup_ListByResourceGroup.json // this example is just showing the usage of "ApplicationGroups_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationGroupResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationGroupResource.cs index 9e926639bcf0..44e165921a8e 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationGroupResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationGroupResource.cs @@ -21,7 +21,7 @@ public partial class Sample_VirtualApplicationGroupResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ApplicationGroupGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ApplicationGroup_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ApplicationGroup_Get.json // this example is just showing the usage of "ApplicationGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_ApplicationGroupGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_ApplicationGroupDelete() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ApplicationGroup_Delete.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ApplicationGroup_Delete.json // this example is just showing the usage of "ApplicationGroups_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Delete_ApplicationGroupDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ApplicationGroupsUpdate() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ApplicationGroup_Update.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ApplicationGroup_Update.json // this example is just showing the usage of "ApplicationGroups_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Update_ApplicationGroupsUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVirtualApplicationGroups_ApplicationGroupList() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/ApplicationGroup_ListBySubscription.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ApplicationGroup_ListBySubscription.json // this example is just showing the usage of "ApplicationGroups_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -154,7 +154,7 @@ public async Task GetVirtualApplicationGroups_ApplicationGroupList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetStartMenuItems_StartMenuItemList() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/StartMenuItem_List.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/StartMenuItem_List.json // this example is just showing the usage of "StartMenuItems_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationResource.cs index b9d94b887e8d..a3f0316893fe 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationResource.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualApplicationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ApplicationGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/Application_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Application_Get.json // this example is just showing the usage of "Applications_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_ApplicationGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_ApplicationDelete() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/Application_Delete.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Application_Delete.json // this example is just showing the usage of "Applications_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task Delete_ApplicationDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ApplicationUpdate() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/Application_Update.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Application_Update.json // this example is just showing the usage of "Applications_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualDesktopCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualDesktopCollection.cs index f29897684d1e..01cf8c2339d1 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualDesktopCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualDesktopCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_VirtualDesktopCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_DesktopGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/Desktop_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Desktop_Get.json // this example is just showing the usage of "Desktops_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_DesktopGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_DesktopGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/Desktop_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Desktop_Get.json // this example is just showing the usage of "Desktops_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_DesktopGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_DesktopGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/Desktop_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Desktop_Get.json // this example is just showing the usage of "Desktops_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task GetIfExists_DesktopGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_DesktopList() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/Desktop_List.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Desktop_List.json // this example is just showing the usage of "Desktops_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualDesktopResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualDesktopResource.cs index 43db36b6b46e..d3947064612a 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualDesktopResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualDesktopResource.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualDesktopResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_DesktopGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/Desktop_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Desktop_Get.json // this example is just showing the usage of "Desktops_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_DesktopGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_DesktopUpdate() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/Desktop_Update.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Desktop_Update.json // this example is just showing the usage of "Desktops_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualWorkspaceCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualWorkspaceCollection.cs index 48aeea22dc48..2c4b62869a8f 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualWorkspaceCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualWorkspaceCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualWorkspaceCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_WorkspaceGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/Workspace_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Workspace_Get.json // this example is just showing the usage of "Workspaces_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_WorkspaceGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_WorkspaceGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/Workspace_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Workspace_Get.json // this example is just showing the usage of "Workspaces_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task Exists_WorkspaceGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_WorkspaceGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/Workspace_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Workspace_Get.json // this example is just showing the usage of "Workspaces_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetIfExists_WorkspaceGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_WorkspaceCreate() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/Workspace_Create.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Workspace_Create.json // this example is just showing the usage of "Workspaces_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -171,7 +171,7 @@ public async Task CreateOrUpdate_WorkspaceCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_WorkspaceListByResourceGroup() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/Workspace_ListByResourceGroup.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Workspace_ListByResourceGroup.json // this example is just showing the usage of "Workspaces_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualWorkspaceResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualWorkspaceResource.cs index f9c8ad902148..4219a8610097 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualWorkspaceResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualWorkspaceResource.cs @@ -21,7 +21,7 @@ public partial class Sample_VirtualWorkspaceResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_WorkspaceGet() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/Workspace_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Workspace_Get.json // this example is just showing the usage of "Workspaces_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_WorkspaceGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_WorkspaceDelete() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/Workspace_Delete.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Workspace_Delete.json // this example is just showing the usage of "Workspaces_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Delete_WorkspaceDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_WorkspaceUpdate() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/Workspace_Update.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Workspace_Update.json // this example is just showing the usage of "Workspaces_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -120,7 +120,7 @@ public async Task Update_WorkspaceUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVirtualWorkspaces_WorkspaceListBySubscription() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/Workspace_ListBySubscription.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Workspace_ListBySubscription.json // this example is just showing the usage of "Workspaces_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -152,7 +152,7 @@ public async Task GetVirtualWorkspaces_WorkspaceListBySubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetPrivateLinkResources_PrivateLinkResourcesListByWorkspace() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/PrivateLinkResources_ListByWorkspace.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateLinkResources_ListByWorkspace.json // this example is just showing the usage of "PrivateLinkResources_ListByWorkspace" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_WorkspacePrivateEndpointConnectionCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_WorkspacePrivateEndpointConnectionCollection.cs index ccd60cf8db69..50b7cec0eee7 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_WorkspacePrivateEndpointConnectionCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_WorkspacePrivateEndpointConnectionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_WorkspacePrivateEndpointConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_PrivateEndpointConnectionListByWorkspace() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/PrivateEndpointConnection_ListByWorkspace.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_ListByWorkspace.json // this example is just showing the usage of "PrivateEndpointConnections_ListByWorkspace" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task GetAll_PrivateEndpointConnectionListByWorkspace() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_PrivateEndpointConnectionGetByWorkspace() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/PrivateEndpointConnection_GetByWorkspace.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_GetByWorkspace.json // this example is just showing the usage of "PrivateEndpointConnections_GetByWorkspace" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,7 +92,7 @@ public async Task Get_PrivateEndpointConnectionGetByWorkspace() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_PrivateEndpointConnectionGetByWorkspace() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/PrivateEndpointConnection_GetByWorkspace.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_GetByWorkspace.json // this example is just showing the usage of "PrivateEndpointConnections_GetByWorkspace" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Exists_PrivateEndpointConnectionGetByWorkspace() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_PrivateEndpointConnectionGetByWorkspace() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/PrivateEndpointConnection_GetByWorkspace.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_GetByWorkspace.json // this example is just showing the usage of "PrivateEndpointConnections_GetByWorkspace" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -166,7 +166,7 @@ public async Task GetIfExists_PrivateEndpointConnectionGetByWorkspace() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_PrivateEndpointConnectionUpdateByWorkspace() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/PrivateEndpointConnection_UpdateByWorkspace.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_UpdateByWorkspace.json // this example is just showing the usage of "PrivateEndpointConnections_UpdateByWorkspace" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_WorkspacePrivateEndpointConnectionResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_WorkspacePrivateEndpointConnectionResource.cs index fd1126c8fc4c..75455c55becd 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_WorkspacePrivateEndpointConnectionResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_WorkspacePrivateEndpointConnectionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_WorkspacePrivateEndpointConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_PrivateEndpointConnectionGetByWorkspace() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/PrivateEndpointConnection_GetByWorkspace.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_GetByWorkspace.json // this example is just showing the usage of "PrivateEndpointConnections_GetByWorkspace" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_PrivateEndpointConnectionGetByWorkspace() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_PrivateEndpointConnectionDeleteByWorkspace() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/PrivateEndpointConnection_DeleteByWorkspace.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_DeleteByWorkspace.json // this example is just showing the usage of "PrivateEndpointConnections_DeleteByWorkspace" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task Delete_PrivateEndpointConnectionDeleteByWorkspace() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_PrivateEndpointConnectionUpdateByWorkspace() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/examples/PrivateEndpointConnection_UpdateByWorkspace.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_UpdateByWorkspace.json // this example is just showing the usage of "PrivateEndpointConnections_UpdateByWorkspace" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageCollection.cs new file mode 100644 index 000000000000..a8a7cee93187 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageCollection.cs @@ -0,0 +1,500 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetAppAttachPackages method from an instance of . + /// + public partial class AppAttachPackageCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _appAttachPackageClientDiagnostics; + private readonly AppAttachPackageRestOperations _appAttachPackageRestClient; + + /// Initializes a new instance of the class for mocking. + protected AppAttachPackageCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal AppAttachPackageCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _appAttachPackageClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.DesktopVirtualization", AppAttachPackageResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(AppAttachPackageResource.ResourceType, out string appAttachPackageApiVersion); + _appAttachPackageRestClient = new AppAttachPackageRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, appAttachPackageApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceGroupResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceGroupResource.ResourceType), nameof(id)); + } + + /// + /// Create or update an App Attach package. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName} + /// + /// + /// Operation Id + /// AppAttachPackage_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-04-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the App Attach package. + /// Object containing App Attach Package definitions. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string appAttachPackageName, AppAttachPackageData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(appAttachPackageName, nameof(appAttachPackageName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _appAttachPackageRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, appAttachPackageName, data, cancellationToken).ConfigureAwait(false); + var uri = _appAttachPackageRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, appAttachPackageName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new AppAttachPackageResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update an App Attach package. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName} + /// + /// + /// Operation Id + /// AppAttachPackage_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-04-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the App Attach package. + /// Object containing App Attach Package definitions. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string appAttachPackageName, AppAttachPackageData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(appAttachPackageName, nameof(appAttachPackageName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _appAttachPackageRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, appAttachPackageName, data, cancellationToken); + var uri = _appAttachPackageRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, appAttachPackageName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new AppAttachPackageResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get an app attach package. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName} + /// + /// + /// Operation Id + /// AppAttachPackage_Get + /// + /// + /// Default Api Version + /// 2024-04-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the App Attach package. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string appAttachPackageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(appAttachPackageName, nameof(appAttachPackageName)); + + using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageCollection.Get"); + scope.Start(); + try + { + var response = await _appAttachPackageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, appAttachPackageName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new AppAttachPackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get an app attach package. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName} + /// + /// + /// Operation Id + /// AppAttachPackage_Get + /// + /// + /// Default Api Version + /// 2024-04-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the App Attach package. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string appAttachPackageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(appAttachPackageName, nameof(appAttachPackageName)); + + using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageCollection.Get"); + scope.Start(); + try + { + var response = _appAttachPackageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, appAttachPackageName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new AppAttachPackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List App Attach packages in resource group. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages + /// + /// + /// Operation Id + /// AppAttachPackage_ListByResourceGroup + /// + /// + /// Default Api Version + /// 2024-04-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// OData filter expression. Valid properties for filtering are package name and host pool. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string filter = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _appAttachPackageRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, filter); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _appAttachPackageRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, filter); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new AppAttachPackageResource(Client, AppAttachPackageData.DeserializeAppAttachPackageData(e)), _appAttachPackageClientDiagnostics, Pipeline, "AppAttachPackageCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// List App Attach packages in resource group. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages + /// + /// + /// Operation Id + /// AppAttachPackage_ListByResourceGroup + /// + /// + /// Default Api Version + /// 2024-04-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// OData filter expression. Valid properties for filtering are package name and host pool. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string filter = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _appAttachPackageRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, filter); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _appAttachPackageRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, filter); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new AppAttachPackageResource(Client, AppAttachPackageData.DeserializeAppAttachPackageData(e)), _appAttachPackageClientDiagnostics, Pipeline, "AppAttachPackageCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName} + /// + /// + /// Operation Id + /// AppAttachPackage_Get + /// + /// + /// Default Api Version + /// 2024-04-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the App Attach package. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string appAttachPackageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(appAttachPackageName, nameof(appAttachPackageName)); + + using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageCollection.Exists"); + scope.Start(); + try + { + var response = await _appAttachPackageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, appAttachPackageName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName} + /// + /// + /// Operation Id + /// AppAttachPackage_Get + /// + /// + /// Default Api Version + /// 2024-04-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the App Attach package. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string appAttachPackageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(appAttachPackageName, nameof(appAttachPackageName)); + + using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageCollection.Exists"); + scope.Start(); + try + { + var response = _appAttachPackageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, appAttachPackageName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName} + /// + /// + /// Operation Id + /// AppAttachPackage_Get + /// + /// + /// Default Api Version + /// 2024-04-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the App Attach package. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetIfExistsAsync(string appAttachPackageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(appAttachPackageName, nameof(appAttachPackageName)); + + using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageCollection.GetIfExists"); + scope.Start(); + try + { + var response = await _appAttachPackageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, appAttachPackageName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new AppAttachPackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName} + /// + /// + /// Operation Id + /// AppAttachPackage_Get + /// + /// + /// Default Api Version + /// 2024-04-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the App Attach package. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual NullableResponse GetIfExists(string appAttachPackageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(appAttachPackageName, nameof(appAttachPackageName)); + + using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageCollection.GetIfExists"); + scope.Start(); + try + { + var response = _appAttachPackageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, appAttachPackageName, cancellationToken: cancellationToken); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new AppAttachPackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageData.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageData.Serialization.cs new file mode 100644 index 000000000000..ddbb32d199c5 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageData.Serialization.cs @@ -0,0 +1,211 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.DesktopVirtualization.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + public partial class AppAttachPackageData : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AppAttachPackageData)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + if (Optional.IsCollectionDefined(Tags)) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + writer.WritePropertyName("location"u8); + writer.WriteStringValue(Location); + if (options.Format != "W") + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (options.Format != "W") + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (options.Format != "W") + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(ResourceType); + } + if (options.Format != "W" && Optional.IsDefined(SystemData)) + { + writer.WritePropertyName("systemData"u8); + JsonSerializer.Serialize(writer, SystemData); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + AppAttachPackageData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AppAttachPackageData)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAppAttachPackageData(document.RootElement, options); + } + + internal static AppAttachPackageData DeserializeAppAttachPackageData(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + AppAttachPackageProperties properties = default; + IDictionary tags = default; + AzureLocation location = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + SystemData systemData = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("properties"u8)) + { + properties = AppAttachPackageProperties.DeserializeAppAttachPackageProperties(property.Value, options); + continue; + } + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + if (property.NameEquals("location"u8)) + { + location = new AzureLocation(property.Value.GetString()); + 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; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new AppAttachPackageData( + id, + name, + type, + systemData, + tags ?? new ChangeTrackingDictionary(), + location, + properties, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(AppAttachPackageData)} does not support writing '{options.Format}' format."); + } + } + + AppAttachPackageData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeAppAttachPackageData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AppAttachPackageData)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageData.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageData.cs new file mode 100644 index 000000000000..aa7ace2d849e --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageData.cs @@ -0,0 +1,88 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.DesktopVirtualization.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + /// + /// A class representing the AppAttachPackage data model. + /// Schema for App Attach Package properties. + /// + public partial class AppAttachPackageData : TrackedResourceData + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The location. + /// Detailed properties for App Attach Package. + /// is null. + public AppAttachPackageData(AzureLocation location, AppAttachPackageProperties properties) : base(location) + { + Argument.AssertNotNull(properties, nameof(properties)); + + Properties = properties; + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Detailed properties for App Attach Package. + /// Keeps track of any properties unknown to the library. + internal AppAttachPackageData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, AppAttachPackageProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + { + Properties = properties; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal AppAttachPackageData() + { + } + + /// Detailed properties for App Attach Package. + public AppAttachPackageProperties Properties { get; set; } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageResource.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageResource.Serialization.cs new file mode 100644 index 000000000000..70d3e04f6878 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageResource.Serialization.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + public partial class AppAttachPackageResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + AppAttachPackageData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + + AppAttachPackageData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageResource.cs new file mode 100644 index 000000000000..61eb87ae10fa --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageResource.cs @@ -0,0 +1,344 @@ +// 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.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.DesktopVirtualization.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + /// + /// A Class representing an AppAttachPackage along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetAppAttachPackageResource method. + /// Otherwise you can get one from its parent resource using the GetAppAttachPackage method. + /// + public partial class AppAttachPackageResource : ArmResource + { + /// Generate the resource identifier of a instance. + /// The subscriptionId. + /// The resourceGroupName. + /// The appAttachPackageName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string appAttachPackageName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _appAttachPackageClientDiagnostics; + private readonly AppAttachPackageRestOperations _appAttachPackageRestClient; + private readonly AppAttachPackageData _data; + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.DesktopVirtualization/appAttachPackages"; + + /// Initializes a new instance of the class for mocking. + protected AppAttachPackageResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal AppAttachPackageResource(ArmClient client, AppAttachPackageData 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 AppAttachPackageResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _appAttachPackageClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.DesktopVirtualization", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string appAttachPackageApiVersion); + _appAttachPackageRestClient = new AppAttachPackageRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, appAttachPackageApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// 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 AppAttachPackageData 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)); + } + + /// + /// Get an app attach package. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName} + /// + /// + /// Operation Id + /// AppAttachPackage_Get + /// + /// + /// Default Api Version + /// 2024-04-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageResource.Get"); + scope.Start(); + try + { + var response = await _appAttachPackageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new AppAttachPackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get an app attach package. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName} + /// + /// + /// Operation Id + /// AppAttachPackage_Get + /// + /// + /// Default Api Version + /// 2024-04-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageResource.Get"); + scope.Start(); + try + { + var response = _appAttachPackageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new AppAttachPackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Remove an App Attach Package. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName} + /// + /// + /// Operation Id + /// AppAttachPackage_Delete + /// + /// + /// Default Api Version + /// 2024-04-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageResource.Delete"); + scope.Start(); + try + { + var response = await _appAttachPackageRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var uri = _appAttachPackageRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Remove an App Attach Package. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName} + /// + /// + /// Operation Id + /// AppAttachPackage_Delete + /// + /// + /// Default Api Version + /// 2024-04-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageResource.Delete"); + scope.Start(); + try + { + var response = _appAttachPackageRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var uri = _appAttachPackageRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update an App Attach Package + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName} + /// + /// + /// Operation Id + /// AppAttachPackage_Update + /// + /// + /// Default Api Version + /// 2024-04-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// Object containing App Attach Package definition. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(AppAttachPackagePatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageResource.Update"); + scope.Start(); + try + { + var response = await _appAttachPackageRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AppAttachPackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update an App Attach Package + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName} + /// + /// + /// Operation Id + /// AppAttachPackage_Update + /// + /// + /// Default Api Version + /// 2024-04-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// Object containing App Attach Package definition. + /// The cancellation token to use. + /// is null. + public virtual Response Update(AppAttachPackagePatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageResource.Update"); + scope.Start(); + try + { + var response = _appAttachPackageRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken); + return Response.FromValue(new AppAttachPackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ArmDesktopVirtualizationModelFactory.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ArmDesktopVirtualizationModelFactory.cs index 930f6adf18bb..eb7815e755eb 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ArmDesktopVirtualizationModelFactory.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ArmDesktopVirtualizationModelFactory.cs @@ -32,7 +32,7 @@ public static partial class ArmDesktopVirtualizationModelFactory /// Enabled allows this resource to be accessed from both public and private networks, Disabled allows this resource to only be accessed via private endpoints. /// List of private endpoint connection associated with the specified resource. /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. - /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. /// Gets or sets the identity. Current supported identity types: SystemAssigned. /// The resource model definition representing SKU. @@ -72,17 +72,21 @@ public static VirtualWorkspaceData VirtualWorkspaceData(ResourceIdentifier id = /// The name. /// The resourceType. /// The systemData. - /// The resource of private end point. + /// The group ids for the private endpoint resource. + /// The private endpoint resource. /// A collection of information about the state of the connection between service consumer and provider. /// The provisioning state of the private endpoint connection resource. /// A new instance for mocking. - public static DesktopVirtualizationPrivateEndpointConnection DesktopVirtualizationPrivateEndpointConnection(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier privateEndpointId = null, DesktopVirtualizationPrivateLinkServiceConnectionState connectionState = null, DesktopVirtualizationPrivateEndpointConnectionProvisioningState? provisioningState = null) + public static DesktopVirtualizationPrivateEndpointConnection DesktopVirtualizationPrivateEndpointConnection(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable groupIds = null, ResourceIdentifier privateEndpointId = null, DesktopVirtualizationPrivateLinkServiceConnectionState connectionState = null, DesktopVirtualizationPrivateEndpointConnectionProvisioningState? provisioningState = null) { + groupIds ??= new List(); + return new DesktopVirtualizationPrivateEndpointConnection( id, name, resourceType, systemData, + groupIds?.ToList(), privateEndpointId != null ? ResourceManagerModelFactory.SubResource(privateEndpointId) : null, connectionState, provisioningState, @@ -94,17 +98,21 @@ public static DesktopVirtualizationPrivateEndpointConnection DesktopVirtualizati /// The name. /// The resourceType. /// The systemData. - /// The resource of private end point. + /// The group ids for the private endpoint resource. + /// The private endpoint resource. /// A collection of information about the state of the connection between service consumer and provider. /// The provisioning state of the private endpoint connection resource. /// A new instance for mocking. - public static DesktopVirtualizationPrivateEndpointConnectionDataData DesktopVirtualizationPrivateEndpointConnectionDataData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier privateEndpointId = null, DesktopVirtualizationPrivateLinkServiceConnectionState connectionState = null, DesktopVirtualizationPrivateEndpointConnectionProvisioningState? provisioningState = null) + public static DesktopVirtualizationPrivateEndpointConnectionDataData DesktopVirtualizationPrivateEndpointConnectionDataData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable groupIds = null, ResourceIdentifier privateEndpointId = null, DesktopVirtualizationPrivateLinkServiceConnectionState connectionState = null, DesktopVirtualizationPrivateEndpointConnectionProvisioningState? provisioningState = null) { + groupIds ??= new List(); + return new DesktopVirtualizationPrivateEndpointConnectionDataData( id, name, resourceType, systemData, + groupIds?.ToList(), privateEndpointId != null ? ResourceManagerModelFactory.SubResource(privateEndpointId) : null, connectionState, provisioningState, @@ -152,7 +160,7 @@ public static DesktopVirtualizationPrivateLinkResourceData DesktopVirtualization /// List of ScalingPlanPooledSchedule definitions. /// List of ScalingHostPoolReference definitions. /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. - /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. /// Gets or sets the identity. Current supported identity types: SystemAssigned. /// The resource model definition representing SKU. @@ -378,7 +386,7 @@ public static ScalingPlanPersonalScheduleData ScalingPlanPersonalScheduleData(Re /// Is cloud pc resource. /// Boolean representing whether the applicationGroup is show in the feed. /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. - /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. /// Gets or sets the identity. Current supported identity types: SystemAssigned. /// The resource model definition representing SKU. @@ -554,6 +562,7 @@ public static VirtualDesktopData VirtualDesktopData(ResourceIdentifier id = null /// The registration info of HostPool. /// VM template for sessionhosts configuration within hostpool. /// List of applicationGroup links. + /// List of App Attach Package links. /// URL to customer ADFS server for signing WVD SSO certificates. /// ClientId for the registered Relying Party used to issue WVD SSO certificates. /// Path to Azure KeyVault storing the secret used for communication to ADFS. @@ -565,16 +574,17 @@ public static VirtualDesktopData VirtualDesktopData(ResourceIdentifier id = null /// The session host configuration for updating agent, monitoring agent, and stack component. /// List of private endpoint connection associated with the specified resource. /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. - /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. /// Gets or sets the identity. Current supported identity types: SystemAssigned. /// The resource model definition representing SKU. /// Gets or sets the plan. /// A new instance for mocking. - public static HostPoolData HostPoolData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string objectId = null, string friendlyName = null, string description = null, HostPoolType hostPoolType = default, PersonalDesktopAssignmentType? personalDesktopAssignmentType = null, string customRdpProperty = null, int? maxSessionLimit = null, HostPoolLoadBalancerType loadBalancerType = default, int? ring = null, bool? isValidationEnvironment = null, HostPoolRegistrationInfo registrationInfo = null, string vmTemplate = null, IEnumerable applicationGroupReferences = null, string ssoAdfsAuthority = null, string ssoClientId = null, string ssoClientSecretKeyVaultPath = null, HostPoolSsoSecretType? ssoSecretType = null, PreferredAppGroupType preferredAppGroupType = default, bool? startVmOnConnect = null, bool? isCloudPCResource = null, HostPoolPublicNetworkAccess? publicNetworkAccess = null, SessionHostAgentUpdateProperties agentUpdate = null, IEnumerable privateEndpointConnections = null, ResourceIdentifier managedBy = null, string kind = null, ETag? etag = null, ManagedServiceIdentity identity = null, DesktopVirtualizationSku sku = null, ArmPlan plan = null) + public static HostPoolData HostPoolData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string objectId = null, string friendlyName = null, string description = null, HostPoolType hostPoolType = default, PersonalDesktopAssignmentType? personalDesktopAssignmentType = null, string customRdpProperty = null, int? maxSessionLimit = null, HostPoolLoadBalancerType loadBalancerType = default, int? ring = null, bool? isValidationEnvironment = null, HostPoolRegistrationInfo registrationInfo = null, string vmTemplate = null, IEnumerable applicationGroupReferences = null, IEnumerable appAttachPackageReferences = null, string ssoAdfsAuthority = null, string ssoClientId = null, string ssoClientSecretKeyVaultPath = null, HostPoolSsoSecretType? ssoSecretType = null, PreferredAppGroupType preferredAppGroupType = default, bool? startVmOnConnect = null, bool? isCloudPCResource = null, HostPoolPublicNetworkAccess? publicNetworkAccess = null, SessionHostAgentUpdateProperties agentUpdate = null, IEnumerable privateEndpointConnections = null, ResourceIdentifier managedBy = null, string kind = null, ETag? etag = null, ManagedServiceIdentity identity = null, DesktopVirtualizationSku sku = null, ArmPlan plan = null) { tags ??= new Dictionary(); applicationGroupReferences ??= new List(); + appAttachPackageReferences ??= new List(); privateEndpointConnections ??= new List(); return new HostPoolData( @@ -597,6 +607,7 @@ public static HostPoolData HostPoolData(ResourceIdentifier id = null, string nam registrationInfo, vmTemplate, applicationGroupReferences?.ToList(), + appAttachPackageReferences?.ToList(), ssoAdfsAuthority, ssoClientId, ssoClientSecretKeyVaultPath, @@ -807,7 +818,7 @@ public static SessionHostPatch SessionHostPatch(ResourceIdentifier id = null, st /// Specifies how to register Package in feed. /// Make this version of the package the active one across the hostpool. /// List of package dependencies. - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. /// Date Package was last updated, found in the appxmanifest.xml. /// List of package applications. /// A new instance for mocking. @@ -857,6 +868,50 @@ public static MsixPackagePatch MsixPackagePatch(ResourceIdentifier id = null, st serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Detailed properties for App Attach Package. + /// A new instance for mocking. + public static AppAttachPackageData AppAttachPackageData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, AppAttachPackageProperties properties = null) + { + tags ??= new Dictionary(); + + return new AppAttachPackageData( + id, + name, + resourceType, + systemData, + tags, + location, + properties, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The provisioning state of the App Attach Package. + /// Detailed properties for App Attach Package. + /// List of Hostpool resource Ids. + /// URL path to certificate name located in keyVault. + /// Parameter indicating how the health check should behave if this package fails staging. + /// A new instance for mocking. + public static AppAttachPackageProperties AppAttachPackageProperties(ProvisioningState? provisioningState = null, AppAttachPackageInfoProperties image = null, IEnumerable hostPoolReferences = null, string keyVaultURL = null, FailHealthCheckOnStagingFailure? failHealthCheckOnStagingFailure = null) + { + hostPoolReferences ??= new List(); + + return new AppAttachPackageProperties( + provisioningState, + image, + hostPoolReferences?.ToList(), + keyVaultURL, + failHealthCheckOnStagingFailure, + serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// The id. /// The name. @@ -872,11 +927,13 @@ public static MsixPackagePatch MsixPackagePatch(ResourceIdentifier id = null, st /// Specifies how to register Package in feed. /// Make this version of the package the active one across the hostpool. /// List of package dependencies. - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. /// Date Package was last updated, found in the appxmanifest.xml. /// List of package applications. + /// Certificate name found in the appxmanifest.xml. + /// Date certificate expires, found in the appxmanifest.xml. /// A new instance for mocking. - public static ExpandMsixImage ExpandMsixImage(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string packageAlias = null, string imagePath = null, string packageName = null, string packageFamilyName = null, string packageFullName = null, string displayName = null, string packageRelativePath = null, bool? isRegularRegistration = null, bool? isActive = null, IEnumerable packageDependencies = null, string version = null, DateTimeOffset? lastUpdatedOn = null, IEnumerable packageApplications = null) + public static ExpandMsixImage ExpandMsixImage(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string packageAlias = null, string imagePath = null, string packageName = null, string packageFamilyName = null, string packageFullName = null, string displayName = null, string packageRelativePath = null, bool? isRegularRegistration = null, bool? isActive = null, IEnumerable packageDependencies = null, string version = null, DateTimeOffset? lastUpdatedOn = null, IEnumerable packageApplications = null, string certificateName = null, DateTimeOffset? certificateExpiry = null) { packageDependencies ??= new List(); packageApplications ??= new List(); @@ -899,7 +956,125 @@ public static ExpandMsixImage ExpandMsixImage(ResourceIdentifier id = null, stri version, lastUpdatedOn, packageApplications?.ToList(), + certificateName, + certificateExpiry, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Detailed properties for App Attach Package. + /// A new instance for mocking. + public static AppAttachPackagePatch AppAttachPackagePatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AppAttachPackagePatchProperties properties = null) + { + return new AppAttachPackagePatch( + id, + name, + resourceType, + systemData, + properties, serializedAdditionalRawData: null); } + + /// Initializes a new instance of DesktopVirtualizationPrivateEndpointConnection. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The resource of private end point. + /// A collection of information about the state of the connection between service consumer and provider. + /// The provisioning state of the private endpoint connection resource. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static DesktopVirtualizationPrivateEndpointConnection DesktopVirtualizationPrivateEndpointConnection(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ResourceIdentifier privateEndpointId, DesktopVirtualizationPrivateLinkServiceConnectionState connectionState, DesktopVirtualizationPrivateEndpointConnectionProvisioningState? provisioningState) + { + return DesktopVirtualizationPrivateEndpointConnection(id: id, name: name, resourceType: resourceType, systemData: systemData, groupIds: default, privateEndpointId: privateEndpointId, connectionState: connectionState, provisioningState: provisioningState); + } + + /// Initializes a new instance of DesktopVirtualizationPrivateEndpointConnectionDataData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The resource of private end point. + /// A collection of information about the state of the connection between service consumer and provider. + /// The provisioning state of the private endpoint connection resource. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static DesktopVirtualizationPrivateEndpointConnectionDataData DesktopVirtualizationPrivateEndpointConnectionDataData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ResourceIdentifier privateEndpointId, DesktopVirtualizationPrivateLinkServiceConnectionState connectionState, DesktopVirtualizationPrivateEndpointConnectionProvisioningState? provisioningState) + { + return DesktopVirtualizationPrivateEndpointConnectionDataData(id: id, name: name, resourceType: resourceType, systemData: systemData, groupIds: default, privateEndpointId: privateEndpointId, connectionState: connectionState, provisioningState: provisioningState); + } + + /// Initializes a new instance of HostPoolData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// ObjectId of HostPool. (internal use). + /// Friendly name of HostPool. + /// Description of HostPool. + /// HostPool type for desktop. + /// PersonalDesktopAssignment type for HostPool. + /// Custom rdp property of HostPool. + /// The max session limit of HostPool. + /// The type of the load balancer. + /// The ring number of HostPool. + /// Is validation environment. + /// The registration info of HostPool. + /// VM template for sessionhosts configuration within hostpool. + /// List of applicationGroup links. + /// URL to customer ADFS server for signing WVD SSO certificates. + /// ClientId for the registered Relying Party used to issue WVD SSO certificates. + /// Path to Azure KeyVault storing the secret used for communication to ADFS. + /// The type of single sign on Secret Type. + /// The type of preferred application group type, default to Desktop Application Group. + /// The flag to turn on/off StartVMOnConnect feature. + /// Is cloud pc resource. + /// Enabled allows this resource to be accessed from both public and private networks, Disabled allows this resource to only be accessed via private endpoints. + /// The session host configuration for updating agent, monitoring agent, and stack component. + /// List of private endpoint connection associated with the specified resource. + /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. + /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. + /// Gets or sets the identity. Current supported identity types: SystemAssigned. + /// The resource model definition representing SKU. + /// Gets or sets the plan. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static HostPoolData HostPoolData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string objectId, string friendlyName, string description, HostPoolType hostPoolType, PersonalDesktopAssignmentType? personalDesktopAssignmentType, string customRdpProperty, int? maxSessionLimit, HostPoolLoadBalancerType loadBalancerType, int? ring, bool? isValidationEnvironment, HostPoolRegistrationInfo registrationInfo, string vmTemplate, IEnumerable applicationGroupReferences, string ssoAdfsAuthority, string ssoClientId, string ssoClientSecretKeyVaultPath, HostPoolSsoSecretType? ssoSecretType, PreferredAppGroupType preferredAppGroupType, bool? startVmOnConnect, bool? isCloudPCResource, HostPoolPublicNetworkAccess? publicNetworkAccess, SessionHostAgentUpdateProperties agentUpdate, IEnumerable privateEndpointConnections, ResourceIdentifier managedBy, string kind, ETag? etag, ManagedServiceIdentity identity, DesktopVirtualizationSku sku, ArmPlan plan) + { + return HostPoolData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, objectId: objectId, friendlyName: friendlyName, description: description, hostPoolType: hostPoolType, personalDesktopAssignmentType: personalDesktopAssignmentType, customRdpProperty: customRdpProperty, maxSessionLimit: maxSessionLimit, loadBalancerType: loadBalancerType, ring: ring, isValidationEnvironment: isValidationEnvironment, registrationInfo: registrationInfo, vmTemplate: vmTemplate, applicationGroupReferences: applicationGroupReferences, appAttachPackageReferences: default, ssoAdfsAuthority: ssoAdfsAuthority, ssoClientId: ssoClientId, ssoClientSecretKeyVaultPath: ssoClientSecretKeyVaultPath, ssoSecretType: ssoSecretType, preferredAppGroupType: preferredAppGroupType, startVmOnConnect: startVmOnConnect, isCloudPCResource: isCloudPCResource, publicNetworkAccess: publicNetworkAccess, agentUpdate: agentUpdate, privateEndpointConnections: privateEndpointConnections, managedBy: managedBy, kind: kind, etag: etag, identity: identity, sku: sku, plan: plan); + } + + /// Initializes a new instance of ExpandMsixImage. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Alias of MSIX Package. + /// VHD/CIM image path on Network Share. + /// Package Name from appxmanifest.xml. + /// Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. + /// Package Full Name from appxmanifest.xml. + /// User friendly Name to be displayed in the portal. + /// Relative Path to the package inside the image. + /// Specifies how to register Package in feed. + /// Make this version of the package the active one across the hostpool. + /// List of package dependencies. + /// Package Version found in the appxmanifest.xml. + /// Date Package was last updated, found in the appxmanifest.xml. + /// List of package applications. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static ExpandMsixImage ExpandMsixImage(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string packageAlias, string imagePath, string packageName, string packageFamilyName, string packageFullName, string displayName, string packageRelativePath, bool? isRegularRegistration, bool? isActive, IEnumerable packageDependencies, string version, DateTimeOffset? lastUpdatedOn, IEnumerable packageApplications) + { + return ExpandMsixImage(id: id, name: name, resourceType: resourceType, systemData: systemData, packageAlias: packageAlias, imagePath: imagePath, packageName: packageName, packageFamilyName: packageFamilyName, packageFullName: packageFullName, displayName: displayName, packageRelativePath: packageRelativePath, isRegularRegistration: isRegularRegistration, isActive: isActive, packageDependencies: packageDependencies, version: version, lastUpdatedOn: lastUpdatedOn, packageApplications: packageApplications, certificateName: default, certificateExpiry: default); + } } } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/DesktopVirtualizationPrivateEndpointConnectionDataData.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/DesktopVirtualizationPrivateEndpointConnectionDataData.Serialization.cs index a89ce1347fe8..4d9d4784de5c 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/DesktopVirtualizationPrivateEndpointConnectionDataData.Serialization.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/DesktopVirtualizationPrivateEndpointConnectionDataData.Serialization.cs @@ -51,6 +51,16 @@ void IJsonModel.Write(Ut } writer.WritePropertyName("properties"u8); writer.WriteStartObject(); + if (options.Format != "W" && Optional.IsCollectionDefined(GroupIds)) + { + writer.WritePropertyName("groupIds"u8); + writer.WriteStartArray(); + foreach (var item in GroupIds) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } if (Optional.IsDefined(PrivateEndpoint)) { writer.WritePropertyName("privateEndpoint"u8); @@ -109,6 +119,7 @@ internal static DesktopVirtualizationPrivateEndpointConnectionDataData Deseriali string name = default; ResourceType type = default; SystemData systemData = default; + IReadOnlyList groupIds = default; SubResource privateEndpoint = default; DesktopVirtualizationPrivateLinkServiceConnectionState privateLinkServiceConnectionState = default; DesktopVirtualizationPrivateEndpointConnectionProvisioningState? provisioningState = default; @@ -149,6 +160,20 @@ internal static DesktopVirtualizationPrivateEndpointConnectionDataData Deseriali } foreach (var property0 in property.Value.EnumerateObject()) { + if (property0.NameEquals("groupIds"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + groupIds = array; + continue; + } if (property0.NameEquals("privateEndpoint"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -190,6 +215,7 @@ internal static DesktopVirtualizationPrivateEndpointConnectionDataData Deseriali name, type, systemData, + groupIds ?? new ChangeTrackingList(), privateEndpoint, privateLinkServiceConnectionState, provisioningState, diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/DesktopVirtualizationPrivateEndpointConnectionDataData.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/DesktopVirtualizationPrivateEndpointConnectionDataData.cs index a85319bc460f..e9dd1801e0ab 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/DesktopVirtualizationPrivateEndpointConnectionDataData.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/DesktopVirtualizationPrivateEndpointConnectionDataData.cs @@ -55,6 +55,7 @@ public partial class DesktopVirtualizationPrivateEndpointConnectionDataData : Re /// Initializes a new instance of . public DesktopVirtualizationPrivateEndpointConnectionDataData() { + GroupIds = new ChangeTrackingList(); } /// Initializes a new instance of . @@ -62,19 +63,23 @@ public DesktopVirtualizationPrivateEndpointConnectionDataData() /// The name. /// The resourceType. /// The systemData. - /// The resource of private end point. + /// The group ids for the private endpoint resource. + /// The private endpoint resource. /// A collection of information about the state of the connection between service consumer and provider. /// The provisioning state of the private endpoint connection resource. /// Keeps track of any properties unknown to the library. - internal DesktopVirtualizationPrivateEndpointConnectionDataData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, SubResource privateEndpoint, DesktopVirtualizationPrivateLinkServiceConnectionState connectionState, DesktopVirtualizationPrivateEndpointConnectionProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal DesktopVirtualizationPrivateEndpointConnectionDataData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IReadOnlyList groupIds, SubResource privateEndpoint, DesktopVirtualizationPrivateLinkServiceConnectionState connectionState, DesktopVirtualizationPrivateEndpointConnectionProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { + GroupIds = groupIds; PrivateEndpoint = privateEndpoint; ConnectionState = connectionState; ProvisioningState = provisioningState; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The resource of private end point. + /// The group ids for the private endpoint resource. + public IReadOnlyList GroupIds { get; } + /// The private endpoint resource. internal SubResource PrivateEndpoint { get; set; } /// Gets Id. public ResourceIdentifier PrivateEndpointId diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/DesktopVirtualizationExtensions.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/DesktopVirtualizationExtensions.cs index 2028aea73431..641ebfdd02b5 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/DesktopVirtualizationExtensions.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/DesktopVirtualizationExtensions.cs @@ -279,6 +279,25 @@ public static MsixPackageResource GetMsixPackageResource(this ArmClient client, return GetMockableDesktopVirtualizationArmClient(client).GetMsixPackageResource(id); } + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static AppAttachPackageResource GetAppAttachPackageResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableDesktopVirtualizationArmClient(client).GetAppAttachPackageResource(id); + } + /// /// Gets a collection of VirtualWorkspaceResources in the ResourceGroupResource. /// @@ -309,7 +328,7 @@ public static VirtualWorkspaceCollection GetVirtualWorkspaces(this ResourceGroup /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -347,7 +366,7 @@ public static async Task> GetVirtualWorkspace /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -402,7 +421,7 @@ public static ScalingPlanCollection GetScalingPlans(this ResourceGroupResource r /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -440,7 +459,7 @@ public static async Task> GetScalingPlanAsync(this /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -495,7 +514,7 @@ public static VirtualApplicationGroupCollection GetVirtualApplicationGroups(this /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -533,7 +552,7 @@ public static async Task> GetVirtualAp /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -588,7 +607,7 @@ public static HostPoolCollection GetHostPools(this ResourceGroupResource resourc /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -626,7 +645,7 @@ public static async Task> GetHostPoolAsync(this Resou /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -651,6 +670,99 @@ public static Response GetHostPool(this ResourceGroupResource return GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetHostPool(hostPoolName, cancellationToken); } + /// + /// Gets a collection of AppAttachPackageResources in the ResourceGroupResource. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// is null. + /// An object representing collection of AppAttachPackageResources and their operations over a AppAttachPackageResource. + public static AppAttachPackageCollection GetAppAttachPackages(this ResourceGroupResource resourceGroupResource) + { + Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); + + return GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetAppAttachPackages(); + } + + /// + /// Get an app attach package. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName} + /// + /// + /// Operation Id + /// AppAttachPackage_Get + /// + /// + /// Default Api Version + /// 2024-04-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The name of the App Attach package. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public static async Task> GetAppAttachPackageAsync(this ResourceGroupResource resourceGroupResource, string appAttachPackageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); + + return await GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetAppAttachPackageAsync(appAttachPackageName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get an app attach package. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName} + /// + /// + /// Operation Id + /// AppAttachPackage_Get + /// + /// + /// Default Api Version + /// 2024-04-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The name of the App Attach package. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public static Response GetAppAttachPackage(this ResourceGroupResource resourceGroupResource, string appAttachPackageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); + + return GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetAppAttachPackage(appAttachPackageName, cancellationToken); + } + /// /// List workspaces in subscription. /// @@ -664,7 +776,7 @@ public static Response GetHostPool(this ResourceGroupResource /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -700,7 +812,7 @@ public static AsyncPageable GetVirtualWorkspacesAsync( /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -736,7 +848,7 @@ public static Pageable GetVirtualWorkspaces(this Subsc /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -775,7 +887,7 @@ public static AsyncPageable GetScalingPlansAsync(this Subsc /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -814,7 +926,7 @@ public static Pageable GetScalingPlans(this SubscriptionRes /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -851,7 +963,7 @@ public static AsyncPageable GetVirtualApplicati /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -888,7 +1000,7 @@ public static Pageable GetVirtualApplicationGro /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -927,7 +1039,7 @@ public static AsyncPageable GetHostPoolsAsync(this Subscriptio /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -952,5 +1064,79 @@ public static Pageable GetHostPools(this SubscriptionResource return GetMockableDesktopVirtualizationSubscriptionResource(subscriptionResource).GetHostPools(pageSize, isDescending, initialSkip, cancellationToken); } + + /// + /// List App Attach packages in subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/appAttachPackages + /// + /// + /// Operation Id + /// AppAttachPackage_ListBySubscription + /// + /// + /// Default Api Version + /// 2024-04-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// OData filter expression. Valid properties for filtering are package name, host pool, and resource group. + /// The cancellation token to use. + /// is null. + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetAppAttachPackagesAsync(this SubscriptionResource subscriptionResource, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); + + return GetMockableDesktopVirtualizationSubscriptionResource(subscriptionResource).GetAppAttachPackagesAsync(filter, cancellationToken); + } + + /// + /// List App Attach packages in subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/appAttachPackages + /// + /// + /// Operation Id + /// AppAttachPackage_ListBySubscription + /// + /// + /// Default Api Version + /// 2024-04-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// OData filter expression. Valid properties for filtering are package name, host pool, and resource group. + /// The cancellation token to use. + /// is null. + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetAppAttachPackages(this SubscriptionResource subscriptionResource, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); + + return GetMockableDesktopVirtualizationSubscriptionResource(subscriptionResource).GetAppAttachPackages(filter, cancellationToken); + } } } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationArmClient.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationArmClient.cs index 6a6c541d27be..7efa6c0ac63f 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationArmClient.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationArmClient.cs @@ -189,5 +189,17 @@ public virtual MsixPackageResource GetMsixPackageResource(ResourceIdentifier id) MsixPackageResource.ValidateResourceId(id); return new MsixPackageResource(Client, id); } + + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual AppAttachPackageResource GetAppAttachPackageResource(ResourceIdentifier id) + { + AppAttachPackageResource.ValidateResourceId(id); + return new AppAttachPackageResource(Client, id); + } } } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationResourceGroupResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationResourceGroupResource.cs index 1a6fb78d071c..45290221f07e 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationResourceGroupResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationResourceGroupResource.cs @@ -53,7 +53,7 @@ public virtual VirtualWorkspaceCollection GetVirtualWorkspaces() /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -84,7 +84,7 @@ public virtual async Task> GetVirtualWorkspac /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -122,7 +122,7 @@ public virtual ScalingPlanCollection GetScalingPlans() /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -153,7 +153,7 @@ public virtual async Task> GetScalingPlanAsync(str /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -191,7 +191,7 @@ public virtual VirtualApplicationGroupCollection GetVirtualApplicationGroups() /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -222,7 +222,7 @@ public virtual async Task> GetVirtualA /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -260,7 +260,7 @@ public virtual HostPoolCollection GetHostPools() /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -291,7 +291,7 @@ public virtual async Task> GetHostPoolAsync(string ho /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -308,5 +308,74 @@ public virtual Response GetHostPool(string hostPoolName, Cance { return GetHostPools().Get(hostPoolName, cancellationToken); } + + /// Gets a collection of AppAttachPackageResources in the ResourceGroupResource. + /// An object representing collection of AppAttachPackageResources and their operations over a AppAttachPackageResource. + public virtual AppAttachPackageCollection GetAppAttachPackages() + { + return GetCachedClient(client => new AppAttachPackageCollection(client, Id)); + } + + /// + /// Get an app attach package. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName} + /// + /// + /// Operation Id + /// AppAttachPackage_Get + /// + /// + /// Default Api Version + /// 2024-04-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the App Attach package. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetAppAttachPackageAsync(string appAttachPackageName, CancellationToken cancellationToken = default) + { + return await GetAppAttachPackages().GetAsync(appAttachPackageName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get an app attach package. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName} + /// + /// + /// Operation Id + /// AppAttachPackage_Get + /// + /// + /// Default Api Version + /// 2024-04-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the App Attach package. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetAppAttachPackage(string appAttachPackageName, CancellationToken cancellationToken = default) + { + return GetAppAttachPackages().Get(appAttachPackageName, cancellationToken); + } } } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationSubscriptionResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationSubscriptionResource.cs index b3aa6913ae60..b29ed49e7ebc 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationSubscriptionResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationSubscriptionResource.cs @@ -23,6 +23,8 @@ public partial class MockableDesktopVirtualizationSubscriptionResource : ArmReso private ApplicationGroupsRestOperations _virtualApplicationGroupApplicationGroupsRestClient; private ClientDiagnostics _hostPoolClientDiagnostics; private HostPoolsRestOperations _hostPoolRestClient; + private ClientDiagnostics _appAttachPackageClientDiagnostics; + private AppAttachPackageRestOperations _appAttachPackageRestClient; /// Initializes a new instance of the class for mocking. protected MockableDesktopVirtualizationSubscriptionResource() @@ -44,6 +46,8 @@ internal MockableDesktopVirtualizationSubscriptionResource(ArmClient client, Res private ApplicationGroupsRestOperations VirtualApplicationGroupApplicationGroupsRestClient => _virtualApplicationGroupApplicationGroupsRestClient ??= new ApplicationGroupsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(VirtualApplicationGroupResource.ResourceType)); private ClientDiagnostics HostPoolClientDiagnostics => _hostPoolClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.DesktopVirtualization", HostPoolResource.ResourceType.Namespace, Diagnostics); private HostPoolsRestOperations HostPoolRestClient => _hostPoolRestClient ??= new HostPoolsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(HostPoolResource.ResourceType)); + private ClientDiagnostics AppAttachPackageClientDiagnostics => _appAttachPackageClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.DesktopVirtualization", AppAttachPackageResource.ResourceType.Namespace, Diagnostics); + private AppAttachPackageRestOperations AppAttachPackageRestClient => _appAttachPackageRestClient ??= new AppAttachPackageRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(AppAttachPackageResource.ResourceType)); private string GetApiVersionOrNull(ResourceType resourceType) { @@ -64,7 +68,7 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -94,7 +98,7 @@ public virtual AsyncPageable GetVirtualWorkspacesAsync /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -124,7 +128,7 @@ public virtual Pageable GetVirtualWorkspaces(Cancellat /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -157,7 +161,7 @@ public virtual AsyncPageable GetScalingPlansAsync(int? page /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -190,7 +194,7 @@ public virtual Pageable GetScalingPlans(int? pageSize = nul /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -221,7 +225,7 @@ public virtual AsyncPageable GetVirtualApplicat /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -252,7 +256,7 @@ public virtual Pageable GetVirtualApplicationGr /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -285,7 +289,7 @@ public virtual AsyncPageable GetHostPoolsAsync(int? pageSize = /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -304,5 +308,67 @@ public virtual Pageable GetHostPools(int? pageSize = null, boo HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => HostPoolRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, pageSizeHint, isDescending, initialSkip); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new HostPoolResource(Client, HostPoolData.DeserializeHostPoolData(e)), HostPoolClientDiagnostics, Pipeline, "MockableDesktopVirtualizationSubscriptionResource.GetHostPools", "value", "nextLink", cancellationToken); } + + /// + /// List App Attach packages in subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/appAttachPackages + /// + /// + /// Operation Id + /// AppAttachPackage_ListBySubscription + /// + /// + /// Default Api Version + /// 2024-04-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// OData filter expression. Valid properties for filtering are package name, host pool, and resource group. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAppAttachPackagesAsync(string filter = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => AppAttachPackageRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, filter); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => AppAttachPackageRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, filter); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new AppAttachPackageResource(Client, AppAttachPackageData.DeserializeAppAttachPackageData(e)), AppAttachPackageClientDiagnostics, Pipeline, "MockableDesktopVirtualizationSubscriptionResource.GetAppAttachPackages", "value", "nextLink", cancellationToken); + } + + /// + /// List App Attach packages in subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/appAttachPackages + /// + /// + /// Operation Id + /// AppAttachPackage_ListBySubscription + /// + /// + /// Default Api Version + /// 2024-04-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// OData filter expression. Valid properties for filtering are package name, host pool, and resource group. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAppAttachPackages(string filter = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => AppAttachPackageRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, filter); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => AppAttachPackageRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, filter); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new AppAttachPackageResource(Client, AppAttachPackageData.DeserializeAppAttachPackageData(e)), AppAttachPackageClientDiagnostics, Pipeline, "MockableDesktopVirtualizationSubscriptionResource.GetAppAttachPackages", "value", "nextLink", cancellationToken); + } } } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolCollection.cs index f96b42a6d456..76c4a8cdf508 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpdateAsync(Wa /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string hostPoolNa /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string hostPoolName, CancellationT /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -290,7 +290,7 @@ public virtual AsyncPageable GetAllAsync(int? pageSize = null, /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -323,7 +323,7 @@ public virtual Pageable GetAll(int? pageSize = null, bool? isD /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -366,7 +366,7 @@ public virtual async Task> ExistsAsync(string hostPoolName, Cance /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -409,7 +409,7 @@ public virtual Response Exists(string hostPoolName, CancellationToken canc /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -454,7 +454,7 @@ public virtual async Task> GetIfExistsAsync(s /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolData.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolData.Serialization.cs index 468cc7e45b76..abe2b38a2656 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolData.Serialization.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolData.Serialization.cs @@ -112,8 +112,15 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOpti writer.WriteStringValue(HostPoolType.ToString()); if (Optional.IsDefined(PersonalDesktopAssignmentType)) { - writer.WritePropertyName("personalDesktopAssignmentType"u8); - writer.WriteStringValue(PersonalDesktopAssignmentType.Value.ToString()); + if (PersonalDesktopAssignmentType != null) + { + writer.WritePropertyName("personalDesktopAssignmentType"u8); + writer.WriteStringValue(PersonalDesktopAssignmentType.Value.ToString()); + } + else + { + writer.WriteNull("personalDesktopAssignmentType"); + } } if (Optional.IsDefined(CustomRdpProperty)) { @@ -122,25 +129,53 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOpti } if (Optional.IsDefined(MaxSessionLimit)) { - writer.WritePropertyName("maxSessionLimit"u8); - writer.WriteNumberValue(MaxSessionLimit.Value); + if (MaxSessionLimit != null) + { + writer.WritePropertyName("maxSessionLimit"u8); + writer.WriteNumberValue(MaxSessionLimit.Value); + } + else + { + writer.WriteNull("maxSessionLimit"); + } } writer.WritePropertyName("loadBalancerType"u8); writer.WriteStringValue(LoadBalancerType.ToString()); if (Optional.IsDefined(Ring)) { - writer.WritePropertyName("ring"u8); - writer.WriteNumberValue(Ring.Value); + if (Ring != null) + { + writer.WritePropertyName("ring"u8); + writer.WriteNumberValue(Ring.Value); + } + else + { + writer.WriteNull("ring"); + } } if (Optional.IsDefined(IsValidationEnvironment)) { - writer.WritePropertyName("validationEnvironment"u8); - writer.WriteBooleanValue(IsValidationEnvironment.Value); + if (IsValidationEnvironment != null) + { + writer.WritePropertyName("validationEnvironment"u8); + writer.WriteBooleanValue(IsValidationEnvironment.Value); + } + else + { + writer.WriteNull("validationEnvironment"); + } } if (Optional.IsDefined(RegistrationInfo)) { - writer.WritePropertyName("registrationInfo"u8); - writer.WriteObjectValue(RegistrationInfo, options); + if (RegistrationInfo != null) + { + writer.WritePropertyName("registrationInfo"u8); + writer.WriteObjectValue(RegistrationInfo, options); + } + else + { + writer.WriteNull("registrationInfo"); + } } if (Optional.IsDefined(VmTemplate)) { @@ -149,9 +184,26 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOpti } if (options.Format != "W" && Optional.IsCollectionDefined(ApplicationGroupReferences)) { - writer.WritePropertyName("applicationGroupReferences"u8); + if (ApplicationGroupReferences != null) + { + writer.WritePropertyName("applicationGroupReferences"u8); + writer.WriteStartArray(); + foreach (var item in ApplicationGroupReferences) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("applicationGroupReferences"); + } + } + if (options.Format != "W" && Optional.IsCollectionDefined(AppAttachPackageReferences)) + { + writer.WritePropertyName("appAttachPackageReferences"u8); writer.WriteStartArray(); - foreach (var item in ApplicationGroupReferences) + foreach (var item in AppAttachPackageReferences) { writer.WriteStringValue(item); } @@ -174,40 +226,82 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOpti } if (Optional.IsDefined(SsoSecretType)) { - writer.WritePropertyName("ssoSecretType"u8); - writer.WriteStringValue(SsoSecretType.Value.ToString()); + if (SsoSecretType != null) + { + writer.WritePropertyName("ssoSecretType"u8); + writer.WriteStringValue(SsoSecretType.Value.ToString()); + } + else + { + writer.WriteNull("ssoSecretType"); + } } writer.WritePropertyName("preferredAppGroupType"u8); writer.WriteStringValue(PreferredAppGroupType.ToString()); if (Optional.IsDefined(StartVmOnConnect)) { - writer.WritePropertyName("startVMOnConnect"u8); - writer.WriteBooleanValue(StartVmOnConnect.Value); + if (StartVmOnConnect != null) + { + writer.WritePropertyName("startVMOnConnect"u8); + writer.WriteBooleanValue(StartVmOnConnect.Value); + } + else + { + writer.WriteNull("startVMOnConnect"); + } } if (options.Format != "W" && Optional.IsDefined(IsCloudPCResource)) { - writer.WritePropertyName("cloudPcResource"u8); - writer.WriteBooleanValue(IsCloudPCResource.Value); + if (IsCloudPCResource != null) + { + writer.WritePropertyName("cloudPcResource"u8); + writer.WriteBooleanValue(IsCloudPCResource.Value); + } + else + { + writer.WriteNull("cloudPcResource"); + } } if (Optional.IsDefined(PublicNetworkAccess)) { - writer.WritePropertyName("publicNetworkAccess"u8); - writer.WriteStringValue(PublicNetworkAccess.Value.ToString()); + if (PublicNetworkAccess != null) + { + writer.WritePropertyName("publicNetworkAccess"u8); + writer.WriteStringValue(PublicNetworkAccess.Value.ToString()); + } + else + { + writer.WriteNull("publicNetworkAccess"); + } } if (Optional.IsDefined(AgentUpdate)) { - writer.WritePropertyName("agentUpdate"u8); - writer.WriteObjectValue(AgentUpdate, options); + if (AgentUpdate != null) + { + writer.WritePropertyName("agentUpdate"u8); + writer.WriteObjectValue(AgentUpdate, options); + } + else + { + writer.WriteNull("agentUpdate"); + } } if (options.Format != "W" && Optional.IsCollectionDefined(PrivateEndpointConnections)) { - writer.WritePropertyName("privateEndpointConnections"u8); - writer.WriteStartArray(); - foreach (var item in PrivateEndpointConnections) + if (PrivateEndpointConnections != null) { - writer.WriteObjectValue(item, options); + writer.WritePropertyName("privateEndpointConnections"u8); + writer.WriteStartArray(); + foreach (var item in PrivateEndpointConnections) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("privateEndpointConnections"); } - writer.WriteEndArray(); } writer.WriteEndObject(); if (options.Format != "W" && _serializedAdditionalRawData != null) @@ -273,6 +367,7 @@ internal static HostPoolData DeserializeHostPoolData(JsonElement element, ModelR HostPoolRegistrationInfo registrationInfo = default; string vmTemplate = default; IReadOnlyList applicationGroupReferences = default; + IReadOnlyList appAttachPackageReferences = default; string ssoadfsAuthority = default; string ssoClientId = default; string ssoClientSecretKeyVaultPath = default; @@ -413,6 +508,7 @@ internal static HostPoolData DeserializeHostPoolData(JsonElement element, ModelR { if (property0.Value.ValueKind == JsonValueKind.Null) { + personalDesktopAssignmentType = null; continue; } personalDesktopAssignmentType = new PersonalDesktopAssignmentType(property0.Value.GetString()); @@ -427,6 +523,7 @@ internal static HostPoolData DeserializeHostPoolData(JsonElement element, ModelR { if (property0.Value.ValueKind == JsonValueKind.Null) { + maxSessionLimit = null; continue; } maxSessionLimit = property0.Value.GetInt32(); @@ -441,6 +538,7 @@ internal static HostPoolData DeserializeHostPoolData(JsonElement element, ModelR { if (property0.Value.ValueKind == JsonValueKind.Null) { + ring = null; continue; } ring = property0.Value.GetInt32(); @@ -450,6 +548,7 @@ internal static HostPoolData DeserializeHostPoolData(JsonElement element, ModelR { if (property0.Value.ValueKind == JsonValueKind.Null) { + validationEnvironment = null; continue; } validationEnvironment = property0.Value.GetBoolean(); @@ -459,6 +558,7 @@ internal static HostPoolData DeserializeHostPoolData(JsonElement element, ModelR { if (property0.Value.ValueKind == JsonValueKind.Null) { + registrationInfo = null; continue; } registrationInfo = HostPoolRegistrationInfo.DeserializeHostPoolRegistrationInfo(property0.Value, options); @@ -473,6 +573,7 @@ internal static HostPoolData DeserializeHostPoolData(JsonElement element, ModelR { if (property0.Value.ValueKind == JsonValueKind.Null) { + applicationGroupReferences = null; continue; } List array = new List(); @@ -483,6 +584,20 @@ internal static HostPoolData DeserializeHostPoolData(JsonElement element, ModelR applicationGroupReferences = array; continue; } + if (property0.NameEquals("appAttachPackageReferences"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + appAttachPackageReferences = array; + continue; + } if (property0.NameEquals("ssoadfsAuthority"u8)) { ssoadfsAuthority = property0.Value.GetString(); @@ -502,6 +617,7 @@ internal static HostPoolData DeserializeHostPoolData(JsonElement element, ModelR { if (property0.Value.ValueKind == JsonValueKind.Null) { + ssoSecretType = null; continue; } ssoSecretType = new HostPoolSsoSecretType(property0.Value.GetString()); @@ -516,6 +632,7 @@ internal static HostPoolData DeserializeHostPoolData(JsonElement element, ModelR { if (property0.Value.ValueKind == JsonValueKind.Null) { + startVmOnConnect = null; continue; } startVmOnConnect = property0.Value.GetBoolean(); @@ -525,6 +642,7 @@ internal static HostPoolData DeserializeHostPoolData(JsonElement element, ModelR { if (property0.Value.ValueKind == JsonValueKind.Null) { + cloudPCResource = null; continue; } cloudPCResource = property0.Value.GetBoolean(); @@ -534,6 +652,7 @@ internal static HostPoolData DeserializeHostPoolData(JsonElement element, ModelR { if (property0.Value.ValueKind == JsonValueKind.Null) { + publicNetworkAccess = null; continue; } publicNetworkAccess = new HostPoolPublicNetworkAccess(property0.Value.GetString()); @@ -543,6 +662,7 @@ internal static HostPoolData DeserializeHostPoolData(JsonElement element, ModelR { if (property0.Value.ValueKind == JsonValueKind.Null) { + agentUpdate = null; continue; } agentUpdate = SessionHostAgentUpdateProperties.DeserializeSessionHostAgentUpdateProperties(property0.Value, options); @@ -552,6 +672,7 @@ internal static HostPoolData DeserializeHostPoolData(JsonElement element, ModelR { if (property0.Value.ValueKind == JsonValueKind.Null) { + privateEndpointConnections = null; continue; } List array = new List(); @@ -591,6 +712,7 @@ internal static HostPoolData DeserializeHostPoolData(JsonElement element, ModelR registrationInfo, vmTemplate, applicationGroupReferences ?? new ChangeTrackingList(), + appAttachPackageReferences ?? new ChangeTrackingList(), ssoadfsAuthority, ssoClientId, ssoClientSecretKeyVaultPath, diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolData.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolData.cs index 0a96e6e2f807..0e1de18f1e7e 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolData.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolData.cs @@ -61,6 +61,7 @@ public HostPoolData(AzureLocation location, HostPoolType hostPoolType, HostPoolL HostPoolType = hostPoolType; LoadBalancerType = loadBalancerType; ApplicationGroupReferences = new ChangeTrackingList(); + AppAttachPackageReferences = new ChangeTrackingList(); PreferredAppGroupType = preferredAppGroupType; PrivateEndpointConnections = new ChangeTrackingList(); } @@ -85,6 +86,7 @@ public HostPoolData(AzureLocation location, HostPoolType hostPoolType, HostPoolL /// The registration info of HostPool. /// VM template for sessionhosts configuration within hostpool. /// List of applicationGroup links. + /// List of App Attach Package links. /// URL to customer ADFS server for signing WVD SSO certificates. /// ClientId for the registered Relying Party used to issue WVD SSO certificates. /// Path to Azure KeyVault storing the secret used for communication to ADFS. @@ -96,13 +98,13 @@ public HostPoolData(AzureLocation location, HostPoolType hostPoolType, HostPoolL /// The session host configuration for updating agent, monitoring agent, and stack component. /// List of private endpoint connection associated with the specified resource. /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. - /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. /// Gets or sets the identity. Current supported identity types: SystemAssigned. /// The resource model definition representing SKU. /// Gets or sets the plan. /// Keeps track of any properties unknown to the library. - internal HostPoolData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string objectId, string friendlyName, string description, HostPoolType hostPoolType, PersonalDesktopAssignmentType? personalDesktopAssignmentType, string customRdpProperty, int? maxSessionLimit, HostPoolLoadBalancerType loadBalancerType, int? ring, bool? isValidationEnvironment, HostPoolRegistrationInfo registrationInfo, string vmTemplate, IReadOnlyList applicationGroupReferences, string ssoAdfsAuthority, string ssoClientId, string ssoClientSecretKeyVaultPath, HostPoolSsoSecretType? ssoSecretType, PreferredAppGroupType preferredAppGroupType, bool? startVmOnConnect, bool? isCloudPCResource, HostPoolPublicNetworkAccess? publicNetworkAccess, SessionHostAgentUpdateProperties agentUpdate, IReadOnlyList privateEndpointConnections, ResourceIdentifier managedBy, string kind, ETag? etag, ManagedServiceIdentity identity, DesktopVirtualizationSku sku, ArmPlan plan, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + internal HostPoolData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string objectId, string friendlyName, string description, HostPoolType hostPoolType, PersonalDesktopAssignmentType? personalDesktopAssignmentType, string customRdpProperty, int? maxSessionLimit, HostPoolLoadBalancerType loadBalancerType, int? ring, bool? isValidationEnvironment, HostPoolRegistrationInfo registrationInfo, string vmTemplate, IReadOnlyList applicationGroupReferences, IReadOnlyList appAttachPackageReferences, string ssoAdfsAuthority, string ssoClientId, string ssoClientSecretKeyVaultPath, HostPoolSsoSecretType? ssoSecretType, PreferredAppGroupType preferredAppGroupType, bool? startVmOnConnect, bool? isCloudPCResource, HostPoolPublicNetworkAccess? publicNetworkAccess, SessionHostAgentUpdateProperties agentUpdate, IReadOnlyList privateEndpointConnections, ResourceIdentifier managedBy, string kind, ETag? etag, ManagedServiceIdentity identity, DesktopVirtualizationSku sku, ArmPlan plan, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { ObjectId = objectId; FriendlyName = friendlyName; @@ -117,6 +119,7 @@ internal HostPoolData(ResourceIdentifier id, string name, ResourceType resourceT RegistrationInfo = registrationInfo; VmTemplate = vmTemplate; ApplicationGroupReferences = applicationGroupReferences; + AppAttachPackageReferences = appAttachPackageReferences; SsoAdfsAuthority = ssoAdfsAuthority; SsoClientId = ssoClientId; SsoClientSecretKeyVaultPath = ssoClientSecretKeyVaultPath; @@ -167,6 +170,8 @@ internal HostPoolData() public string VmTemplate { get; set; } /// List of applicationGroup links. public IReadOnlyList ApplicationGroupReferences { get; } + /// List of App Attach Package links. + public IReadOnlyList AppAttachPackageReferences { get; } /// URL to customer ADFS server for signing WVD SSO certificates. public string SsoAdfsAuthority { get; set; } /// ClientId for the registered Relying Party used to issue WVD SSO certificates. @@ -189,7 +194,7 @@ internal HostPoolData() public IReadOnlyList PrivateEndpointConnections { get; } /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. public ResourceIdentifier ManagedBy { get; set; } - /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. public string Kind { get; set; } /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. public ETag? ETag { get; } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolPrivateEndpointConnectionCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolPrivateEndpointConnectionCollection.cs index fd0e393d8e92..33ffc142b577 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolPrivateEndpointConnectionCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolPrivateEndpointConnectionCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrU /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string pr /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -290,7 +290,7 @@ public virtual AsyncPageable GetAllAs /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -323,7 +323,7 @@ public virtual Pageable GetAll(int? p /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -366,7 +366,7 @@ public virtual async Task> ExistsAsync(string privateEndpointConn /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -409,7 +409,7 @@ public virtual Response Exists(string privateEndpointConnectionName, Cance /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -454,7 +454,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolPrivateEndpointConnectionResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolPrivateEndpointConnectionResource.cs index 7e24b13e4935..306816ca5eaf 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolPrivateEndpointConnectionResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolPrivateEndpointConnectionResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(Cancellat /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolResource.cs index e6c9c95b9668..97f440be1dc0 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolResource.cs @@ -44,6 +44,8 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, private readonly ScalingPlansRestOperations _scalingPlanRestClient; private readonly ClientDiagnostics _userSessionClientDiagnostics; private readonly UserSessionsRestOperations _userSessionRestClient; + private readonly ClientDiagnostics _appAttachPackageInfoClientDiagnostics; + private readonly AppAttachPackageInfoRestOperations _appAttachPackageInfoRestClient; private readonly ClientDiagnostics _msixImagesClientDiagnostics; private readonly MsixImagesRestOperations _msixImagesRestClient; private readonly HostPoolData _data; @@ -81,6 +83,8 @@ internal HostPoolResource(ArmClient client, ResourceIdentifier id) : base(client _userSessionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.DesktopVirtualization", UserSessionResource.ResourceType.Namespace, Diagnostics); TryGetApiVersion(UserSessionResource.ResourceType, out string userSessionApiVersion); _userSessionRestClient = new UserSessionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, userSessionApiVersion); + _appAttachPackageInfoClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.DesktopVirtualization", ProviderConstants.DefaultProviderNamespace, Diagnostics); + _appAttachPackageInfoRestClient = new AppAttachPackageInfoRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); _msixImagesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.DesktopVirtualization", ProviderConstants.DefaultProviderNamespace, Diagnostics); _msixImagesRestClient = new MsixImagesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); #if DEBUG @@ -129,7 +133,7 @@ public virtual HostPoolPrivateEndpointConnectionCollection GetHostPoolPrivateEnd /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -160,7 +164,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -198,7 +202,7 @@ public virtual SessionHostCollection GetSessionHosts() /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -229,7 +233,7 @@ public virtual async Task> GetSessionHostAsync(str /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -267,7 +271,7 @@ public virtual MsixPackageCollection GetMsixPackages() /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -298,7 +302,7 @@ public virtual async Task> GetMsixPackageAsync(str /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -329,7 +333,7 @@ public virtual Response GetMsixPackage(string msixPackageFu /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -369,7 +373,7 @@ public virtual async Task> GetAsync(CancellationToken /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -409,7 +413,7 @@ public virtual Response Get(CancellationToken cancellationToke /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -454,7 +458,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? f /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -499,7 +503,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, Canc /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -541,7 +545,7 @@ public virtual async Task> UpdateAsync(HostPoolPatch /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -583,7 +587,7 @@ public virtual Response Update(HostPoolPatch patch, Cancellati /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// @@ -612,7 +616,7 @@ public virtual AsyncPageable GetPr /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// @@ -641,7 +645,7 @@ public virtual Pageable GetPrivate /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -674,7 +678,7 @@ public virtual AsyncPageable GetScalingPlansAsync(int? page /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -707,7 +711,7 @@ public virtual Pageable GetScalingPlans(int? pageSize = nul /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -745,7 +749,7 @@ public virtual async Task> RetrieveRegistrati /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -783,7 +787,7 @@ public virtual Response RetrieveRegistrationToken(Canc /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -817,7 +821,7 @@ public virtual AsyncPageable GetUserSessionsAsync(string fi /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -838,6 +842,66 @@ public virtual Pageable GetUserSessions(string filter = nul return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new UserSessionResource(Client, UserSessionData.DeserializeUserSessionData(e)), _userSessionClientDiagnostics, Pipeline, "HostPoolResource.GetUserSessions", "value", "nextLink", cancellationToken); } + /// + /// Gets information from a package given the path to the package. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/importAppAttachPackageInfo + /// + /// + /// Operation Id + /// AppAttachPackageInfo_Import + /// + /// + /// Default Api Version + /// 2024-04-03 + /// + /// + /// + /// Object containing URI to package image and other optional properties. + /// The cancellation token to use. + /// is null. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable ImportAppAttachPackageInfosAsync(ImportPackageInfoContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + HttpMessage FirstPageRequest(int? pageSizeHint) => _appAttachPackageInfoRestClient.CreateImportRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _appAttachPackageInfoRestClient.CreateImportNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new AppAttachPackageResource(Client, AppAttachPackageData.DeserializeAppAttachPackageData(e)), _appAttachPackageInfoClientDiagnostics, Pipeline, "HostPoolResource.ImportAppAttachPackageInfos", "value", "nextLink", cancellationToken); + } + + /// + /// Gets information from a package given the path to the package. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/importAppAttachPackageInfo + /// + /// + /// Operation Id + /// AppAttachPackageInfo_Import + /// + /// + /// Default Api Version + /// 2024-04-03 + /// + /// + /// + /// Object containing URI to package image and other optional properties. + /// The cancellation token to use. + /// is null. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable ImportAppAttachPackageInfos(ImportPackageInfoContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + HttpMessage FirstPageRequest(int? pageSizeHint) => _appAttachPackageInfoRestClient.CreateImportRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _appAttachPackageInfoRestClient.CreateImportNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new AppAttachPackageResource(Client, AppAttachPackageData.DeserializeAppAttachPackageData(e)), _appAttachPackageInfoClientDiagnostics, Pipeline, "HostPoolResource.ImportAppAttachPackageInfos", "value", "nextLink", cancellationToken); + } + /// /// Expands and Lists MSIX packages in an Image, given the Image Path. /// @@ -851,7 +915,7 @@ public virtual Pageable GetUserSessions(string filter = nul /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// @@ -881,7 +945,7 @@ public virtual AsyncPageable ExpandMsixImagesAsync(MsixImageUri /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// @@ -911,7 +975,7 @@ public virtual Pageable ExpandMsixImages(MsixImageUri msixImage /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -973,7 +1037,7 @@ public virtual async Task> AddTagAsync(string key, st /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -1035,7 +1099,7 @@ public virtual Response AddTag(string key, string value, Cance /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -1092,7 +1156,7 @@ public virtual async Task> SetTagsAsync(IDictionary /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -1149,7 +1213,7 @@ public virtual Response SetTags(IDictionary ta /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -1209,7 +1273,7 @@ public virtual async Task> RemoveTagAsync(string key, /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageArchitecture.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageArchitecture.cs new file mode 100644 index 000000000000..0518dc0d4b8c --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageArchitecture.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + /// Possible device architectures that an app attach package can be configured for. + public readonly partial struct AppAttachPackageArchitecture : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public AppAttachPackageArchitecture(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ARMValue = "ARM"; + private const string ARM64Value = "ARM64"; + private const string X86Value = "x86"; + private const string X64Value = "x64"; + private const string NeutralValue = "Neutral"; + private const string X86A64Value = "x86a64"; + private const string ALLValue = "ALL"; + + /// ARM. + public static AppAttachPackageArchitecture ARM { get; } = new AppAttachPackageArchitecture(ARMValue); + /// ARM64. + public static AppAttachPackageArchitecture ARM64 { get; } = new AppAttachPackageArchitecture(ARM64Value); + /// x86. + public static AppAttachPackageArchitecture X86 { get; } = new AppAttachPackageArchitecture(X86Value); + /// x64. + public static AppAttachPackageArchitecture X64 { get; } = new AppAttachPackageArchitecture(X64Value); + /// Neutral. + public static AppAttachPackageArchitecture Neutral { get; } = new AppAttachPackageArchitecture(NeutralValue); + /// x86a64. + public static AppAttachPackageArchitecture X86A64 { get; } = new AppAttachPackageArchitecture(X86A64Value); + /// ALL. + public static AppAttachPackageArchitecture ALL { get; } = new AppAttachPackageArchitecture(ALLValue); + /// Determines if two values are the same. + public static bool operator ==(AppAttachPackageArchitecture left, AppAttachPackageArchitecture right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(AppAttachPackageArchitecture left, AppAttachPackageArchitecture right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator AppAttachPackageArchitecture(string value) => new AppAttachPackageArchitecture(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is AppAttachPackageArchitecture other && Equals(other); + /// + public bool Equals(AppAttachPackageArchitecture 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/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageInfoProperties.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageInfoProperties.Serialization.cs new file mode 100644 index 000000000000..ab5a1cd5d3c0 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageInfoProperties.Serialization.cs @@ -0,0 +1,400 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + public partial class AppAttachPackageInfoProperties : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AppAttachPackageInfoProperties)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + if (Optional.IsDefined(PackageAlias)) + { + writer.WritePropertyName("packageAlias"u8); + writer.WriteStringValue(PackageAlias); + } + if (Optional.IsDefined(ImagePath)) + { + writer.WritePropertyName("imagePath"u8); + writer.WriteStringValue(ImagePath); + } + if (Optional.IsDefined(PackageName)) + { + writer.WritePropertyName("packageName"u8); + writer.WriteStringValue(PackageName); + } + if (Optional.IsDefined(PackageFamilyName)) + { + writer.WritePropertyName("packageFamilyName"u8); + writer.WriteStringValue(PackageFamilyName); + } + if (Optional.IsDefined(PackageFullName)) + { + writer.WritePropertyName("packageFullName"u8); + writer.WriteStringValue(PackageFullName); + } + if (Optional.IsDefined(DisplayName)) + { + if (DisplayName != null) + { + writer.WritePropertyName("displayName"u8); + writer.WriteStringValue(DisplayName); + } + else + { + writer.WriteNull("displayName"); + } + } + if (Optional.IsDefined(PackageRelativePath)) + { + writer.WritePropertyName("packageRelativePath"u8); + writer.WriteStringValue(PackageRelativePath); + } + if (Optional.IsDefined(IsRegularRegistration)) + { + writer.WritePropertyName("isRegularRegistration"u8); + writer.WriteBooleanValue(IsRegularRegistration.Value); + } + if (Optional.IsDefined(IsActive)) + { + writer.WritePropertyName("isActive"u8); + writer.WriteBooleanValue(IsActive.Value); + } + if (Optional.IsCollectionDefined(PackageDependencies)) + { + if (PackageDependencies != null) + { + writer.WritePropertyName("packageDependencies"u8); + writer.WriteStartArray(); + foreach (var item in PackageDependencies) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("packageDependencies"); + } + } + if (Optional.IsDefined(Version)) + { + writer.WritePropertyName("version"u8); + writer.WriteStringValue(Version); + } + if (Optional.IsDefined(LastUpdated)) + { + writer.WritePropertyName("lastUpdated"u8); + writer.WriteStringValue(LastUpdated.Value, "O"); + } + if (Optional.IsCollectionDefined(PackageApplications)) + { + writer.WritePropertyName("packageApplications"u8); + writer.WriteStartArray(); + foreach (var item in PackageApplications) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(CertificateName)) + { + if (CertificateName != null) + { + writer.WritePropertyName("certificateName"u8); + writer.WriteStringValue(CertificateName); + } + else + { + writer.WriteNull("certificateName"); + } + } + if (Optional.IsDefined(CertificateExpiry)) + { + if (CertificateExpiry != null) + { + writer.WritePropertyName("certificateExpiry"u8); + writer.WriteStringValue(CertificateExpiry.Value, "O"); + } + else + { + writer.WriteNull("certificateExpiry"); + } + } + if (Optional.IsDefined(IsPackageTimestamped)) + { + if (IsPackageTimestamped != null) + { + writer.WritePropertyName("isPackageTimestamped"u8); + writer.WriteStringValue(IsPackageTimestamped.Value.ToString()); + } + else + { + writer.WriteNull("isPackageTimestamped"); + } + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + AppAttachPackageInfoProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AppAttachPackageInfoProperties)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAppAttachPackageInfoProperties(document.RootElement, options); + } + + internal static AppAttachPackageInfoProperties DeserializeAppAttachPackageInfoProperties(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string packageAlias = default; + string imagePath = default; + string packageName = default; + string packageFamilyName = default; + string packageFullName = default; + string displayName = default; + string packageRelativePath = default; + bool? isRegularRegistration = default; + bool? isActive = default; + IList packageDependencies = default; + string version = default; + DateTimeOffset? lastUpdated = default; + IList packageApplications = default; + string certificateName = default; + DateTimeOffset? certificateExpiry = default; + PackageTimestamped? isPackageTimestamped = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("packageAlias"u8)) + { + packageAlias = property.Value.GetString(); + continue; + } + if (property.NameEquals("imagePath"u8)) + { + imagePath = property.Value.GetString(); + continue; + } + if (property.NameEquals("packageName"u8)) + { + packageName = property.Value.GetString(); + continue; + } + if (property.NameEquals("packageFamilyName"u8)) + { + packageFamilyName = property.Value.GetString(); + continue; + } + if (property.NameEquals("packageFullName"u8)) + { + packageFullName = property.Value.GetString(); + continue; + } + if (property.NameEquals("displayName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + displayName = null; + continue; + } + displayName = property.Value.GetString(); + continue; + } + if (property.NameEquals("packageRelativePath"u8)) + { + packageRelativePath = property.Value.GetString(); + continue; + } + if (property.NameEquals("isRegularRegistration"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isRegularRegistration = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("isActive"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isActive = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("packageDependencies"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + packageDependencies = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(MsixPackageDependencies.DeserializeMsixPackageDependencies(item, options)); + } + packageDependencies = array; + continue; + } + if (property.NameEquals("version"u8)) + { + version = property.Value.GetString(); + continue; + } + if (property.NameEquals("lastUpdated"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + lastUpdated = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("packageApplications"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(MsixPackageApplications.DeserializeMsixPackageApplications(item, options)); + } + packageApplications = array; + continue; + } + if (property.NameEquals("certificateName"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + certificateName = null; + continue; + } + certificateName = property.Value.GetString(); + continue; + } + if (property.NameEquals("certificateExpiry"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + certificateExpiry = null; + continue; + } + certificateExpiry = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("isPackageTimestamped"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + isPackageTimestamped = null; + continue; + } + isPackageTimestamped = new PackageTimestamped(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new AppAttachPackageInfoProperties( + packageAlias, + imagePath, + packageName, + packageFamilyName, + packageFullName, + displayName, + packageRelativePath, + isRegularRegistration, + isActive, + packageDependencies ?? new ChangeTrackingList(), + version, + lastUpdated, + packageApplications ?? new ChangeTrackingList(), + certificateName, + certificateExpiry, + isPackageTimestamped, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(AppAttachPackageInfoProperties)} does not support writing '{options.Format}' format."); + } + } + + AppAttachPackageInfoProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeAppAttachPackageInfoProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AppAttachPackageInfoProperties)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageInfoProperties.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageInfoProperties.cs new file mode 100644 index 000000000000..24303658dd11 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageInfoProperties.cs @@ -0,0 +1,127 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + /// Schema for Import Package Information properties. + public partial class AppAttachPackageInfoProperties + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public AppAttachPackageInfoProperties() + { + PackageDependencies = new ChangeTrackingList(); + PackageApplications = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// Alias of App Attach Package. Assigned at import time. + /// VHD/CIM image path on Network Share. + /// Package Name from appxmanifest.xml. + /// Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. + /// Package Full Name from appxmanifest.xml. + /// User friendly Name to be displayed in the portal. + /// Relative Path to the package inside the image. + /// Specifies how to register Package in feed. + /// Make this version of the package the active one across the hostpool. + /// List of package dependencies. + /// Package version found in the appxmanifest.xml. + /// Date Package was last updated, found in the appxmanifest.xml. + /// List of package applications. + /// Certificate name found in the appxmanifest.xml. + /// Date certificate expires, found in the appxmanifest.xml. + /// Is package timestamped so it can ignore the certificate expiry date. + /// Keeps track of any properties unknown to the library. + internal AppAttachPackageInfoProperties(string packageAlias, string imagePath, string packageName, string packageFamilyName, string packageFullName, string displayName, string packageRelativePath, bool? isRegularRegistration, bool? isActive, IList packageDependencies, string version, DateTimeOffset? lastUpdated, IList packageApplications, string certificateName, DateTimeOffset? certificateExpiry, PackageTimestamped? isPackageTimestamped, IDictionary serializedAdditionalRawData) + { + PackageAlias = packageAlias; + ImagePath = imagePath; + PackageName = packageName; + PackageFamilyName = packageFamilyName; + PackageFullName = packageFullName; + DisplayName = displayName; + PackageRelativePath = packageRelativePath; + IsRegularRegistration = isRegularRegistration; + IsActive = isActive; + PackageDependencies = packageDependencies; + Version = version; + LastUpdated = lastUpdated; + PackageApplications = packageApplications; + CertificateName = certificateName; + CertificateExpiry = certificateExpiry; + IsPackageTimestamped = isPackageTimestamped; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Alias of App Attach Package. Assigned at import time. + public string PackageAlias { get; set; } + /// VHD/CIM image path on Network Share. + public string ImagePath { get; set; } + /// Package Name from appxmanifest.xml. + public string PackageName { get; set; } + /// Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. + public string PackageFamilyName { get; set; } + /// Package Full Name from appxmanifest.xml. + public string PackageFullName { get; set; } + /// User friendly Name to be displayed in the portal. + public string DisplayName { get; set; } + /// Relative Path to the package inside the image. + public string PackageRelativePath { get; set; } + /// Specifies how to register Package in feed. + public bool? IsRegularRegistration { get; set; } + /// Make this version of the package the active one across the hostpool. + public bool? IsActive { get; set; } + /// List of package dependencies. + public IList PackageDependencies { get; set; } + /// Package version found in the appxmanifest.xml. + public string Version { get; set; } + /// Date Package was last updated, found in the appxmanifest.xml. + public DateTimeOffset? LastUpdated { get; set; } + /// List of package applications. + public IList PackageApplications { get; } + /// Certificate name found in the appxmanifest.xml. + public string CertificateName { get; set; } + /// Date certificate expires, found in the appxmanifest.xml. + public DateTimeOffset? CertificateExpiry { get; set; } + /// Is package timestamped so it can ignore the certificate expiry date. + public PackageTimestamped? IsPackageTimestamped { get; set; } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageList.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageList.Serialization.cs new file mode 100644 index 000000000000..bc79d33ebea2 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageList.Serialization.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + internal partial class AppAttachPackageList : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AppAttachPackageList)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + AppAttachPackageList IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AppAttachPackageList)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAppAttachPackageList(document.RootElement, options); + } + + internal static AppAttachPackageList DeserializeAppAttachPackageList(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList value = default; + string nextLink = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(AppAttachPackageData.DeserializeAppAttachPackageData(item, options)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new AppAttachPackageList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(AppAttachPackageList)} does not support writing '{options.Format}' format."); + } + } + + AppAttachPackageList IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeAppAttachPackageList(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AppAttachPackageList)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageList.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageList.cs new file mode 100644 index 000000000000..992faa379ea6 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageList.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + /// List of App Attach Package definitions. + internal partial class AppAttachPackageList + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal AppAttachPackageList() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// List of App Attach Package definitions. + /// Link to the next page of results. + /// Keeps track of any properties unknown to the library. + internal AppAttachPackageList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + { + Value = value; + NextLink = nextLink; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// List of App Attach Package definitions. + public IReadOnlyList Value { get; } + /// Link to the next page of results. + public string NextLink { get; } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackagePatch.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackagePatch.Serialization.cs new file mode 100644 index 000000000000..b36e3aba90f6 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackagePatch.Serialization.cs @@ -0,0 +1,181 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + public partial class AppAttachPackagePatch : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AppAttachPackagePatch)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + } + if (options.Format != "W") + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (options.Format != "W") + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (options.Format != "W") + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(ResourceType); + } + if (options.Format != "W" && Optional.IsDefined(SystemData)) + { + writer.WritePropertyName("systemData"u8); + JsonSerializer.Serialize(writer, SystemData); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + AppAttachPackagePatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AppAttachPackagePatch)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAppAttachPackagePatch(document.RootElement, options); + } + + internal static AppAttachPackagePatch DeserializeAppAttachPackagePatch(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + AppAttachPackagePatchProperties properties = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + SystemData systemData = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = AppAttachPackagePatchProperties.DeserializeAppAttachPackagePatchProperties(property.Value, options); + 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; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new AppAttachPackagePatch( + id, + name, + type, + systemData, + properties, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(AppAttachPackagePatch)} does not support writing '{options.Format}' format."); + } + } + + AppAttachPackagePatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeAppAttachPackagePatch(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AppAttachPackagePatch)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackagePatch.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackagePatch.cs new file mode 100644 index 000000000000..01e83371a61f --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackagePatch.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + /// Schema for updatable App Attach Package properties. + public partial class AppAttachPackagePatch : ResourceData + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public AppAttachPackagePatch() + { + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Detailed properties for App Attach Package. + /// Keeps track of any properties unknown to the library. + internal AppAttachPackagePatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AppAttachPackagePatchProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + { + Properties = properties; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Detailed properties for App Attach Package. + public AppAttachPackagePatchProperties Properties { get; set; } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackagePatchProperties.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackagePatchProperties.Serialization.cs new file mode 100644 index 000000000000..e399e4378374 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackagePatchProperties.Serialization.cs @@ -0,0 +1,189 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + public partial class AppAttachPackagePatchProperties : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AppAttachPackagePatchProperties)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + if (Optional.IsDefined(Image)) + { + writer.WritePropertyName("image"u8); + writer.WriteObjectValue(Image, options); + } + if (Optional.IsCollectionDefined(HostPoolReferences)) + { + writer.WritePropertyName("hostPoolReferences"u8); + writer.WriteStartArray(); + foreach (var item in HostPoolReferences) + { + if (item == null) + { + writer.WriteNullValue(); + continue; + } + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(KeyVaultURL)) + { + writer.WritePropertyName("keyVaultURL"u8); + writer.WriteStringValue(KeyVaultURL); + } + if (Optional.IsDefined(FailHealthCheckOnStagingFailure)) + { + writer.WritePropertyName("failHealthCheckOnStagingFailure"u8); + writer.WriteStringValue(FailHealthCheckOnStagingFailure.Value.ToString()); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + AppAttachPackagePatchProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AppAttachPackagePatchProperties)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAppAttachPackagePatchProperties(document.RootElement, options); + } + + internal static AppAttachPackagePatchProperties DeserializeAppAttachPackagePatchProperties(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + AppAttachPackageInfoProperties image = default; + IList hostPoolReferences = default; + string keyVaultURL = default; + FailHealthCheckOnStagingFailure? failHealthCheckOnStagingFailure = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("image"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + image = AppAttachPackageInfoProperties.DeserializeAppAttachPackageInfoProperties(property.Value, options); + continue; + } + if (property.NameEquals("hostPoolReferences"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(new ResourceIdentifier(item.GetString())); + } + } + hostPoolReferences = array; + continue; + } + if (property.NameEquals("keyVaultURL"u8)) + { + keyVaultURL = property.Value.GetString(); + continue; + } + if (property.NameEquals("failHealthCheckOnStagingFailure"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + failHealthCheckOnStagingFailure = new FailHealthCheckOnStagingFailure(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new AppAttachPackagePatchProperties(image, hostPoolReferences ?? new ChangeTrackingList(), keyVaultURL, failHealthCheckOnStagingFailure, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(AppAttachPackagePatchProperties)} does not support writing '{options.Format}' format."); + } + } + + AppAttachPackagePatchProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeAppAttachPackagePatchProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AppAttachPackagePatchProperties)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackagePatchProperties.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackagePatchProperties.cs new file mode 100644 index 000000000000..fffe0c7828ea --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackagePatchProperties.cs @@ -0,0 +1,79 @@ +// 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.DesktopVirtualization.Models +{ + /// Schema for patchable fields on an App Attach Package. + public partial class AppAttachPackagePatchProperties + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public AppAttachPackagePatchProperties() + { + HostPoolReferences = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// Detailed properties for App Attach Package. + /// List of Hostpool resource Ids. + /// URL path to certificate name located in keyVault. + /// Parameter indicating how the health check should behave if this package fails staging. + /// Keeps track of any properties unknown to the library. + internal AppAttachPackagePatchProperties(AppAttachPackageInfoProperties image, IList hostPoolReferences, string keyVaultURL, FailHealthCheckOnStagingFailure? failHealthCheckOnStagingFailure, IDictionary serializedAdditionalRawData) + { + Image = image; + HostPoolReferences = hostPoolReferences; + KeyVaultURL = keyVaultURL; + FailHealthCheckOnStagingFailure = failHealthCheckOnStagingFailure; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Detailed properties for App Attach Package. + public AppAttachPackageInfoProperties Image { get; set; } + /// List of Hostpool resource Ids. + public IList HostPoolReferences { get; } + /// URL path to certificate name located in keyVault. + public string KeyVaultURL { get; set; } + /// Parameter indicating how the health check should behave if this package fails staging. + public FailHealthCheckOnStagingFailure? FailHealthCheckOnStagingFailure { get; set; } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageProperties.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageProperties.Serialization.cs new file mode 100644 index 000000000000..d2367562abe3 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageProperties.Serialization.cs @@ -0,0 +1,198 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + public partial class AppAttachPackageProperties : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AppAttachPackageProperties)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (Optional.IsDefined(Image)) + { + writer.WritePropertyName("image"u8); + writer.WriteObjectValue(Image, options); + } + if (Optional.IsCollectionDefined(HostPoolReferences)) + { + writer.WritePropertyName("hostPoolReferences"u8); + writer.WriteStartArray(); + foreach (var item in HostPoolReferences) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(KeyVaultURL)) + { + writer.WritePropertyName("keyVaultURL"u8); + writer.WriteStringValue(KeyVaultURL); + } + if (Optional.IsDefined(FailHealthCheckOnStagingFailure)) + { + writer.WritePropertyName("failHealthCheckOnStagingFailure"u8); + writer.WriteStringValue(FailHealthCheckOnStagingFailure.Value.ToString()); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + AppAttachPackageProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AppAttachPackageProperties)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAppAttachPackageProperties(document.RootElement, options); + } + + internal static AppAttachPackageProperties DeserializeAppAttachPackageProperties(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ProvisioningState? provisioningState = default; + AppAttachPackageInfoProperties image = default; + IList hostPoolReferences = default; + string keyVaultURL = default; + FailHealthCheckOnStagingFailure? failHealthCheckOnStagingFailure = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("provisioningState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new ProvisioningState(property.Value.GetString()); + continue; + } + if (property.NameEquals("image"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + image = AppAttachPackageInfoProperties.DeserializeAppAttachPackageInfoProperties(property.Value, options); + continue; + } + if (property.NameEquals("hostPoolReferences"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + hostPoolReferences = array; + continue; + } + if (property.NameEquals("keyVaultURL"u8)) + { + keyVaultURL = property.Value.GetString(); + continue; + } + if (property.NameEquals("failHealthCheckOnStagingFailure"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + failHealthCheckOnStagingFailure = new FailHealthCheckOnStagingFailure(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new AppAttachPackageProperties( + provisioningState, + image, + hostPoolReferences ?? new ChangeTrackingList(), + keyVaultURL, + failHealthCheckOnStagingFailure, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(AppAttachPackageProperties)} does not support writing '{options.Format}' format."); + } + } + + AppAttachPackageProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeAppAttachPackageProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AppAttachPackageProperties)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageProperties.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageProperties.cs new file mode 100644 index 000000000000..80fe7ebcf893 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageProperties.cs @@ -0,0 +1,82 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + /// Schema for App Attach Package properties. + public partial class AppAttachPackageProperties + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public AppAttachPackageProperties() + { + HostPoolReferences = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// The provisioning state of the App Attach Package. + /// Detailed properties for App Attach Package. + /// List of Hostpool resource Ids. + /// URL path to certificate name located in keyVault. + /// Parameter indicating how the health check should behave if this package fails staging. + /// Keeps track of any properties unknown to the library. + internal AppAttachPackageProperties(ProvisioningState? provisioningState, AppAttachPackageInfoProperties image, IList hostPoolReferences, string keyVaultURL, FailHealthCheckOnStagingFailure? failHealthCheckOnStagingFailure, IDictionary serializedAdditionalRawData) + { + ProvisioningState = provisioningState; + Image = image; + HostPoolReferences = hostPoolReferences; + KeyVaultURL = keyVaultURL; + FailHealthCheckOnStagingFailure = failHealthCheckOnStagingFailure; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The provisioning state of the App Attach Package. + public ProvisioningState? ProvisioningState { get; } + /// Detailed properties for App Attach Package. + public AppAttachPackageInfoProperties Image { get; set; } + /// List of Hostpool resource Ids. + public IList HostPoolReferences { get; } + /// URL path to certificate name located in keyVault. + public string KeyVaultURL { get; set; } + /// Parameter indicating how the health check should behave if this package fails staging. + public FailHealthCheckOnStagingFailure? FailHealthCheckOnStagingFailure { get; set; } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationPrivateEndpointConnection.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationPrivateEndpointConnection.Serialization.cs index ecd1c7fe2cf2..4578d07c1372 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationPrivateEndpointConnection.Serialization.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationPrivateEndpointConnection.Serialization.cs @@ -50,6 +50,16 @@ void IJsonModel.Write(Utf8JsonWr } writer.WritePropertyName("properties"u8); writer.WriteStartObject(); + if (options.Format != "W" && Optional.IsCollectionDefined(GroupIds)) + { + writer.WritePropertyName("groupIds"u8); + writer.WriteStartArray(); + foreach (var item in GroupIds) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } if (Optional.IsDefined(PrivateEndpoint)) { writer.WritePropertyName("privateEndpoint"u8); @@ -108,6 +118,7 @@ internal static DesktopVirtualizationPrivateEndpointConnection DeserializeDeskto string name = default; ResourceType type = default; SystemData systemData = default; + IReadOnlyList groupIds = default; SubResource privateEndpoint = default; DesktopVirtualizationPrivateLinkServiceConnectionState privateLinkServiceConnectionState = default; DesktopVirtualizationPrivateEndpointConnectionProvisioningState? provisioningState = default; @@ -148,6 +159,20 @@ internal static DesktopVirtualizationPrivateEndpointConnection DeserializeDeskto } foreach (var property0 in property.Value.EnumerateObject()) { + if (property0.NameEquals("groupIds"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + groupIds = array; + continue; + } if (property0.NameEquals("privateEndpoint"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -189,6 +214,7 @@ internal static DesktopVirtualizationPrivateEndpointConnection DeserializeDeskto name, type, systemData, + groupIds ?? new ChangeTrackingList(), privateEndpoint, privateLinkServiceConnectionState, provisioningState, diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationPrivateEndpointConnection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationPrivateEndpointConnection.cs index 5fb80541e455..c8982cd70054 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationPrivateEndpointConnection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationPrivateEndpointConnection.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DesktopVirtualization.Models { - /// The Private Endpoint Connection resource. + /// The private endpoint connection resource. public partial class DesktopVirtualizationPrivateEndpointConnection : ResourceData { /// @@ -51,6 +51,7 @@ public partial class DesktopVirtualizationPrivateEndpointConnection : ResourceDa /// Initializes a new instance of . public DesktopVirtualizationPrivateEndpointConnection() { + GroupIds = new ChangeTrackingList(); } /// Initializes a new instance of . @@ -58,19 +59,23 @@ public DesktopVirtualizationPrivateEndpointConnection() /// The name. /// The resourceType. /// The systemData. - /// The resource of private end point. + /// The group ids for the private endpoint resource. + /// The private endpoint resource. /// A collection of information about the state of the connection between service consumer and provider. /// The provisioning state of the private endpoint connection resource. /// Keeps track of any properties unknown to the library. - internal DesktopVirtualizationPrivateEndpointConnection(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, SubResource privateEndpoint, DesktopVirtualizationPrivateLinkServiceConnectionState connectionState, DesktopVirtualizationPrivateEndpointConnectionProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal DesktopVirtualizationPrivateEndpointConnection(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IReadOnlyList groupIds, SubResource privateEndpoint, DesktopVirtualizationPrivateLinkServiceConnectionState connectionState, DesktopVirtualizationPrivateEndpointConnectionProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { + GroupIds = groupIds; PrivateEndpoint = privateEndpoint; ConnectionState = connectionState; ProvisioningState = provisioningState; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The resource of private end point. + /// The group ids for the private endpoint resource. + public IReadOnlyList GroupIds { get; } + /// The private endpoint resource. internal SubResource PrivateEndpoint { get; set; } /// Gets Id. public ResourceIdentifier PrivateEndpointId diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationSku.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationSku.cs index 4226b7ef40b9..85e8394d1bb7 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationSku.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationSku.cs @@ -46,7 +46,7 @@ public partial class DesktopVirtualizationSku private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The name of the SKU. Ex - P3. It is typically a letter+number code. + /// The name of the SKU. E.g. P3. It is typically a letter+number code. /// is null. public DesktopVirtualizationSku(string name) { @@ -56,7 +56,7 @@ public DesktopVirtualizationSku(string name) } /// Initializes a new instance of . - /// The name of the SKU. Ex - P3. It is typically a letter+number code. + /// The name of the SKU. E.g. P3. It is typically a letter+number code. /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. /// If the service has different generations of hardware, for the same SKU, then that can be captured here. @@ -77,7 +77,7 @@ internal DesktopVirtualizationSku() { } - /// The name of the SKU. Ex - P3. It is typically a letter+number code. + /// The name of the SKU. E.g. P3. It is typically a letter+number code. public string Name { get; set; } /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. public DesktopVirtualizationSkuTier? Tier { get; set; } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ExpandMsixImage.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ExpandMsixImage.Serialization.cs index 3517af38a06b..ddd4bcb2c83c 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ExpandMsixImage.Serialization.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ExpandMsixImage.Serialization.cs @@ -138,6 +138,30 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterO } writer.WriteEndArray(); } + if (Optional.IsDefined(CertificateName)) + { + if (CertificateName != null) + { + writer.WritePropertyName("certificateName"u8); + writer.WriteStringValue(CertificateName); + } + else + { + writer.WriteNull("certificateName"); + } + } + if (Optional.IsDefined(CertificateExpiry)) + { + if (CertificateExpiry != null) + { + writer.WritePropertyName("certificateExpiry"u8); + writer.WriteStringValue(CertificateExpiry.Value, "O"); + } + else + { + writer.WriteNull("certificateExpiry"); + } + } writer.WriteEndObject(); if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -194,6 +218,8 @@ internal static ExpandMsixImage DeserializeExpandMsixImage(JsonElement element, string version = default; DateTimeOffset? lastUpdated = default; IList packageApplications = default; + string certificateName = default; + DateTimeOffset? certificateExpiry = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -332,6 +358,26 @@ internal static ExpandMsixImage DeserializeExpandMsixImage(JsonElement element, packageApplications = array; continue; } + if (property0.NameEquals("certificateName"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + certificateName = null; + continue; + } + certificateName = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("certificateExpiry"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + certificateExpiry = null; + continue; + } + certificateExpiry = property0.Value.GetDateTimeOffset("O"); + continue; + } } continue; } @@ -359,6 +405,8 @@ internal static ExpandMsixImage DeserializeExpandMsixImage(JsonElement element, version, lastUpdated, packageApplications ?? new ChangeTrackingList(), + certificateName, + certificateExpiry, serializedAdditionalRawData); } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ExpandMsixImage.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ExpandMsixImage.cs index 860a113dc353..c551522ec02d 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ExpandMsixImage.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ExpandMsixImage.cs @@ -69,11 +69,13 @@ public ExpandMsixImage() /// Specifies how to register Package in feed. /// Make this version of the package the active one across the hostpool. /// List of package dependencies. - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. /// Date Package was last updated, found in the appxmanifest.xml. /// List of package applications. + /// Certificate name found in the appxmanifest.xml. + /// Date certificate expires, found in the appxmanifest.xml. /// Keeps track of any properties unknown to the library. - internal ExpandMsixImage(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string packageAlias, string imagePath, string packageName, string packageFamilyName, string packageFullName, string displayName, string packageRelativePath, bool? isRegularRegistration, bool? isActive, IList packageDependencies, string version, DateTimeOffset? lastUpdatedOn, IList packageApplications, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal ExpandMsixImage(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string packageAlias, string imagePath, string packageName, string packageFamilyName, string packageFullName, string displayName, string packageRelativePath, bool? isRegularRegistration, bool? isActive, IList packageDependencies, string version, DateTimeOffset? lastUpdatedOn, IList packageApplications, string certificateName, DateTimeOffset? certificateExpiry, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { PackageAlias = packageAlias; ImagePath = imagePath; @@ -88,6 +90,8 @@ internal ExpandMsixImage(ResourceIdentifier id, string name, ResourceType resour Version = version; LastUpdatedOn = lastUpdatedOn; PackageApplications = packageApplications; + CertificateName = certificateName; + CertificateExpiry = certificateExpiry; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -111,11 +115,15 @@ internal ExpandMsixImage(ResourceIdentifier id, string name, ResourceType resour public bool? IsActive { get; set; } /// List of package dependencies. public IList PackageDependencies { get; set; } - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. public string Version { get; set; } /// Date Package was last updated, found in the appxmanifest.xml. public DateTimeOffset? LastUpdatedOn { get; set; } /// List of package applications. public IList PackageApplications { get; } + /// Certificate name found in the appxmanifest.xml. + public string CertificateName { get; set; } + /// Date certificate expires, found in the appxmanifest.xml. + public DateTimeOffset? CertificateExpiry { get; set; } } } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/FailHealthCheckOnStagingFailure.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/FailHealthCheckOnStagingFailure.cs new file mode 100644 index 000000000000..f3e331c04f6c --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/FailHealthCheckOnStagingFailure.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + /// Parameter indicating how the health check should behave if this package fails staging. + public readonly partial struct FailHealthCheckOnStagingFailure : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public FailHealthCheckOnStagingFailure(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string UnhealthyValue = "Unhealthy"; + private const string NeedsAssistanceValue = "NeedsAssistance"; + private const string DoNotFailValue = "DoNotFail"; + + /// Unhealthy. + public static FailHealthCheckOnStagingFailure Unhealthy { get; } = new FailHealthCheckOnStagingFailure(UnhealthyValue); + /// NeedsAssistance. + public static FailHealthCheckOnStagingFailure NeedsAssistance { get; } = new FailHealthCheckOnStagingFailure(NeedsAssistanceValue); + /// DoNotFail. + public static FailHealthCheckOnStagingFailure DoNotFail { get; } = new FailHealthCheckOnStagingFailure(DoNotFailValue); + /// Determines if two values are the same. + public static bool operator ==(FailHealthCheckOnStagingFailure left, FailHealthCheckOnStagingFailure right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(FailHealthCheckOnStagingFailure left, FailHealthCheckOnStagingFailure right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator FailHealthCheckOnStagingFailure(string value) => new FailHealthCheckOnStagingFailure(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is FailHealthCheckOnStagingFailure other && Equals(other); + /// + public bool Equals(FailHealthCheckOnStagingFailure 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/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolPatch.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolPatch.Serialization.cs index b7e50d5e915c..6203886e5890 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolPatch.Serialization.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolPatch.Serialization.cs @@ -29,14 +29,21 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOpt writer.WriteStartObject(); if (Optional.IsCollectionDefined(Tags)) { - writer.WritePropertyName("tags"u8); - writer.WriteStartObject(); - foreach (var item in Tags) + if (Tags != null) { - writer.WritePropertyName(item.Key); - writer.WriteStringValue(item.Value); + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("tags"); } - writer.WriteEndObject(); } if (options.Format != "W") { @@ -77,13 +84,27 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOpt } if (Optional.IsDefined(MaxSessionLimit)) { - writer.WritePropertyName("maxSessionLimit"u8); - writer.WriteNumberValue(MaxSessionLimit.Value); + if (MaxSessionLimit != null) + { + writer.WritePropertyName("maxSessionLimit"u8); + writer.WriteNumberValue(MaxSessionLimit.Value); + } + else + { + writer.WriteNull("maxSessionLimit"); + } } if (Optional.IsDefined(PersonalDesktopAssignmentType)) { - writer.WritePropertyName("personalDesktopAssignmentType"u8); - writer.WriteStringValue(PersonalDesktopAssignmentType.Value.ToString()); + if (PersonalDesktopAssignmentType != null) + { + writer.WritePropertyName("personalDesktopAssignmentType"u8); + writer.WriteStringValue(PersonalDesktopAssignmentType.Value.ToString()); + } + else + { + writer.WriteNull("personalDesktopAssignmentType"); + } } if (Optional.IsDefined(LoadBalancerType)) { @@ -92,18 +113,39 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOpt } if (Optional.IsDefined(Ring)) { - writer.WritePropertyName("ring"u8); - writer.WriteNumberValue(Ring.Value); + if (Ring != null) + { + writer.WritePropertyName("ring"u8); + writer.WriteNumberValue(Ring.Value); + } + else + { + writer.WriteNull("ring"); + } } if (Optional.IsDefined(IsValidationEnvironment)) { - writer.WritePropertyName("validationEnvironment"u8); - writer.WriteBooleanValue(IsValidationEnvironment.Value); + if (IsValidationEnvironment != null) + { + writer.WritePropertyName("validationEnvironment"u8); + writer.WriteBooleanValue(IsValidationEnvironment.Value); + } + else + { + writer.WriteNull("validationEnvironment"); + } } if (Optional.IsDefined(RegistrationInfo)) { - writer.WritePropertyName("registrationInfo"u8); - writer.WriteObjectValue(RegistrationInfo, options); + if (RegistrationInfo != null) + { + writer.WritePropertyName("registrationInfo"u8); + writer.WriteObjectValue(RegistrationInfo, options); + } + else + { + writer.WriteNull("registrationInfo"); + } } if (Optional.IsDefined(VmTemplate)) { @@ -127,8 +169,15 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOpt } if (Optional.IsDefined(SsoSecretType)) { - writer.WritePropertyName("ssoSecretType"u8); - writer.WriteStringValue(SsoSecretType.Value.ToString()); + if (SsoSecretType != null) + { + writer.WritePropertyName("ssoSecretType"u8); + writer.WriteStringValue(SsoSecretType.Value.ToString()); + } + else + { + writer.WriteNull("ssoSecretType"); + } } if (Optional.IsDefined(PreferredAppGroupType)) { @@ -137,18 +186,39 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOpt } if (Optional.IsDefined(StartVmOnConnect)) { - writer.WritePropertyName("startVMOnConnect"u8); - writer.WriteBooleanValue(StartVmOnConnect.Value); + if (StartVmOnConnect != null) + { + writer.WritePropertyName("startVMOnConnect"u8); + writer.WriteBooleanValue(StartVmOnConnect.Value); + } + else + { + writer.WriteNull("startVMOnConnect"); + } } if (Optional.IsDefined(PublicNetworkAccess)) { - writer.WritePropertyName("publicNetworkAccess"u8); - writer.WriteStringValue(PublicNetworkAccess.Value.ToString()); + if (PublicNetworkAccess != null) + { + writer.WritePropertyName("publicNetworkAccess"u8); + writer.WriteStringValue(PublicNetworkAccess.Value.ToString()); + } + else + { + writer.WriteNull("publicNetworkAccess"); + } } if (Optional.IsDefined(AgentUpdate)) { - writer.WritePropertyName("agentUpdate"u8); - writer.WriteObjectValue(AgentUpdate, options); + if (AgentUpdate != null) + { + writer.WritePropertyName("agentUpdate"u8); + writer.WriteObjectValue(AgentUpdate, options); + } + else + { + writer.WriteNull("agentUpdate"); + } } writer.WriteEndObject(); if (options.Format != "W" && _serializedAdditionalRawData != null) @@ -220,6 +290,7 @@ internal static HostPoolPatch DeserializeHostPoolPatch(JsonElement element, Mode { if (property.Value.ValueKind == JsonValueKind.Null) { + tags = null; continue; } Dictionary dictionary = new Dictionary(); @@ -282,6 +353,7 @@ internal static HostPoolPatch DeserializeHostPoolPatch(JsonElement element, Mode { if (property0.Value.ValueKind == JsonValueKind.Null) { + maxSessionLimit = null; continue; } maxSessionLimit = property0.Value.GetInt32(); @@ -291,6 +363,7 @@ internal static HostPoolPatch DeserializeHostPoolPatch(JsonElement element, Mode { if (property0.Value.ValueKind == JsonValueKind.Null) { + personalDesktopAssignmentType = null; continue; } personalDesktopAssignmentType = new PersonalDesktopAssignmentType(property0.Value.GetString()); @@ -309,6 +382,7 @@ internal static HostPoolPatch DeserializeHostPoolPatch(JsonElement element, Mode { if (property0.Value.ValueKind == JsonValueKind.Null) { + ring = null; continue; } ring = property0.Value.GetInt32(); @@ -318,6 +392,7 @@ internal static HostPoolPatch DeserializeHostPoolPatch(JsonElement element, Mode { if (property0.Value.ValueKind == JsonValueKind.Null) { + validationEnvironment = null; continue; } validationEnvironment = property0.Value.GetBoolean(); @@ -327,6 +402,7 @@ internal static HostPoolPatch DeserializeHostPoolPatch(JsonElement element, Mode { if (property0.Value.ValueKind == JsonValueKind.Null) { + registrationInfo = null; continue; } registrationInfo = HostPoolRegistrationInfoPatch.DeserializeHostPoolRegistrationInfoPatch(property0.Value, options); @@ -356,6 +432,7 @@ internal static HostPoolPatch DeserializeHostPoolPatch(JsonElement element, Mode { if (property0.Value.ValueKind == JsonValueKind.Null) { + ssoSecretType = null; continue; } ssoSecretType = new HostPoolSsoSecretType(property0.Value.GetString()); @@ -374,6 +451,7 @@ internal static HostPoolPatch DeserializeHostPoolPatch(JsonElement element, Mode { if (property0.Value.ValueKind == JsonValueKind.Null) { + startVmOnConnect = null; continue; } startVmOnConnect = property0.Value.GetBoolean(); @@ -383,6 +461,7 @@ internal static HostPoolPatch DeserializeHostPoolPatch(JsonElement element, Mode { if (property0.Value.ValueKind == JsonValueKind.Null) { + publicNetworkAccess = null; continue; } publicNetworkAccess = new HostPoolPublicNetworkAccess(property0.Value.GetString()); @@ -392,6 +471,7 @@ internal static HostPoolPatch DeserializeHostPoolPatch(JsonElement element, Mode { if (property0.Value.ValueKind == JsonValueKind.Null) { + agentUpdate = null; continue; } agentUpdate = SessionHostAgentUpdatePatchProperties.DeserializeSessionHostAgentUpdatePatchProperties(property0.Value, options); diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolPatch.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolPatch.cs index 42ca72c2bbb9..c46b1b8790ea 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolPatch.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolPatch.cs @@ -103,7 +103,7 @@ internal HostPoolPatch(ResourceIdentifier id, string name, ResourceType resource } /// tags to be updated. - public IDictionary Tags { get; } + public IDictionary Tags { get; set; } /// Friendly name of HostPool. public string FriendlyName { get; set; } /// Description of HostPool. diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolRegistrationInfo.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolRegistrationInfo.Serialization.cs index 5938a728548b..b1274132b6d1 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolRegistrationInfo.Serialization.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolRegistrationInfo.Serialization.cs @@ -28,8 +28,15 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelRead writer.WriteStartObject(); if (Optional.IsDefined(ExpireOn)) { - writer.WritePropertyName("expirationTime"u8); - writer.WriteStringValue(ExpireOn.Value, "O"); + if (ExpireOn != null) + { + writer.WritePropertyName("expirationTime"u8); + writer.WriteStringValue(ExpireOn.Value, "O"); + } + else + { + writer.WriteNull("expirationTime"); + } } if (Optional.IsDefined(Token)) { @@ -90,6 +97,7 @@ internal static HostPoolRegistrationInfo DeserializeHostPoolRegistrationInfo(Jso { if (property.Value.ValueKind == JsonValueKind.Null) { + expirationTime = null; continue; } expirationTime = property.Value.GetDateTimeOffset("O"); diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolRegistrationInfoPatch.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolRegistrationInfoPatch.Serialization.cs index d7255108c400..bc5278e7f737 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolRegistrationInfoPatch.Serialization.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolRegistrationInfoPatch.Serialization.cs @@ -28,8 +28,15 @@ void IJsonModel.Write(Utf8JsonWriter writer, Mode writer.WriteStartObject(); if (Optional.IsDefined(ExpireOn)) { - writer.WritePropertyName("expirationTime"u8); - writer.WriteStringValue(ExpireOn.Value, "O"); + if (ExpireOn != null) + { + writer.WritePropertyName("expirationTime"u8); + writer.WriteStringValue(ExpireOn.Value, "O"); + } + else + { + writer.WriteNull("expirationTime"); + } } if (Optional.IsDefined(RegistrationTokenOperation)) { @@ -84,6 +91,7 @@ internal static HostPoolRegistrationInfoPatch DeserializeHostPoolRegistrationInf { if (property.Value.ValueKind == JsonValueKind.Null) { + expirationTime = null; continue; } expirationTime = property.Value.GetDateTimeOffset("O"); diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ImportPackageInfoContent.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ImportPackageInfoContent.Serialization.cs new file mode 100644 index 000000000000..ad051e15fbca --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ImportPackageInfoContent.Serialization.cs @@ -0,0 +1,145 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + public partial class ImportPackageInfoContent : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(ImportPackageInfoContent)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + if (Optional.IsDefined(Path)) + { + writer.WritePropertyName("path"u8); + writer.WriteStringValue(Path); + } + if (Optional.IsDefined(PackageArchitecture)) + { + if (PackageArchitecture != null) + { + writer.WritePropertyName("packageArchitecture"u8); + writer.WriteStringValue(PackageArchitecture.Value.ToString()); + } + else + { + writer.WriteNull("packageArchitecture"); + } + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + ImportPackageInfoContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(ImportPackageInfoContent)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeImportPackageInfoContent(document.RootElement, options); + } + + internal static ImportPackageInfoContent DeserializeImportPackageInfoContent(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string path = default; + AppAttachPackageArchitecture? packageArchitecture = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("path"u8)) + { + path = property.Value.GetString(); + continue; + } + if (property.NameEquals("packageArchitecture"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + packageArchitecture = null; + continue; + } + packageArchitecture = new AppAttachPackageArchitecture(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ImportPackageInfoContent(path, packageArchitecture, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(ImportPackageInfoContent)} does not support writing '{options.Format}' format."); + } + } + + ImportPackageInfoContent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeImportPackageInfoContent(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ImportPackageInfoContent)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ImportPackageInfoContent.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ImportPackageInfoContent.cs new file mode 100644 index 000000000000..dfae9a9aa537 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ImportPackageInfoContent.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + /// Information to import app attach package. + public partial class ImportPackageInfoContent + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public ImportPackageInfoContent() + { + } + + /// Initializes a new instance of . + /// URI to Image. + /// Possible device architectures that an app attach package can be configured for. + /// Keeps track of any properties unknown to the library. + internal ImportPackageInfoContent(string path, AppAttachPackageArchitecture? packageArchitecture, IDictionary serializedAdditionalRawData) + { + Path = path; + PackageArchitecture = packageArchitecture; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// URI to Image. + public string Path { get; set; } + /// Possible device architectures that an app attach package can be configured for. + public AppAttachPackageArchitecture? PackageArchitecture { get; set; } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/PackageTimestamped.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/PackageTimestamped.cs new file mode 100644 index 000000000000..953b82ff0159 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/PackageTimestamped.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.DesktopVirtualization.Models +{ + /// Is package timestamped so it can ignore the certificate expiry date. + public readonly partial struct PackageTimestamped : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public PackageTimestamped(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string TimestampedValue = "Timestamped"; + private const string NotTimestampedValue = "NotTimestamped"; + + /// Timestamped. + public static PackageTimestamped Timestamped { get; } = new PackageTimestamped(TimestampedValue); + /// NotTimestamped. + public static PackageTimestamped NotTimestamped { get; } = new PackageTimestamped(NotTimestampedValue); + /// Determines if two values are the same. + public static bool operator ==(PackageTimestamped left, PackageTimestamped right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(PackageTimestamped left, PackageTimestamped right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator PackageTimestamped(string value) => new PackageTimestamped(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is PackageTimestamped other && Equals(other); + /// + public bool Equals(PackageTimestamped 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/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ProvisioningState.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ProvisioningState.cs new file mode 100644 index 000000000000..d5b0f7611e96 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ProvisioningState.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + /// The current provisioning state. + public readonly partial struct ProvisioningState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ProvisioningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string SucceededValue = "Succeeded"; + private const string ProvisioningValue = "Provisioning"; + private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; + + /// Succeeded. + public static ProvisioningState Succeeded { get; } = new ProvisioningState(SucceededValue); + /// Provisioning. + public static ProvisioningState Provisioning { get; } = new ProvisioningState(ProvisioningValue); + /// Failed. + public static ProvisioningState Failed { get; } = new ProvisioningState(FailedValue); + /// Canceled. + public static ProvisioningState Canceled { get; } = new ProvisioningState(CanceledValue); + /// Determines if two values are the same. + public static bool operator ==(ProvisioningState left, ProvisioningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ProvisioningState left, ProvisioningState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ProvisioningState(string value) => new ProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ProvisioningState other && Equals(other); + /// + public bool Equals(ProvisioningState 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/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPatch.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPatch.Serialization.cs index 9af284686a5b..dc3687856972 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPatch.Serialization.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPatch.Serialization.cs @@ -28,14 +28,21 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriter writer.WriteStartObject(); if (Optional.IsCollectionDefined(Tags)) { - writer.WritePropertyName("tags"u8); - writer.WriteStartObject(); - foreach (var item in Tags) + if (Tags != null) { - writer.WritePropertyName(item.Key); - writer.WriteStringValue(item.Value); + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("tags"); } - writer.WriteEndObject(); } writer.WritePropertyName("properties"u8); writer.WriteStartObject(); @@ -133,6 +140,7 @@ internal static ScalingPlanPatch DeserializeScalingPlanPatch(JsonElement element { if (property.Value.ValueKind == JsonValueKind.Null) { + tags = null; continue; } Dictionary dictionary = new Dictionary(); diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPatch.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPatch.cs index a2ee78f4b468..99d042881acb 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPatch.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPatch.cs @@ -75,7 +75,7 @@ internal ScalingPlanPatch(IDictionary tags, string description, } /// tags to be updated. - public IDictionary Tags { get; } + public IDictionary Tags { get; set; } /// Description of scaling plan. public string Description { get; set; } /// User friendly name of scaling plan. diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdatePatchProperties.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdatePatchProperties.Serialization.cs index 93de4526048b..ea6ed4e2b1a0 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdatePatchProperties.Serialization.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdatePatchProperties.Serialization.cs @@ -43,13 +43,20 @@ void IJsonModel.Write(Utf8JsonWriter writ } if (Optional.IsCollectionDefined(MaintenanceWindows)) { - writer.WritePropertyName("maintenanceWindows"u8); - writer.WriteStartArray(); - foreach (var item in MaintenanceWindows) + if (MaintenanceWindows != null) { - writer.WriteObjectValue(item, options); + writer.WritePropertyName("maintenanceWindows"u8); + writer.WriteStartArray(); + foreach (var item in MaintenanceWindows) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("maintenanceWindows"); } - writer.WriteEndArray(); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -124,6 +131,7 @@ internal static SessionHostAgentUpdatePatchProperties DeserializeSessionHostAgen { if (property.Value.ValueKind == JsonValueKind.Null) { + maintenanceWindows = null; continue; } List array = new List(); diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdatePatchProperties.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdatePatchProperties.cs index 699675096cc3..3e6245b1b389 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdatePatchProperties.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdatePatchProperties.cs @@ -73,6 +73,6 @@ internal SessionHostAgentUpdatePatchProperties(SessionHostComponentUpdateType? u /// Time zone for maintenance as defined in https://docs.microsoft.com/en-us/dotnet/api/system.timezoneinfo.findsystemtimezonebyid?view=net-5.0. Must be set if useLocalTime is true. public string MaintenanceWindowTimeZone { get; set; } /// List of maintenance windows. Maintenance windows are 2 hours long. - public IList MaintenanceWindows { get; } + public IList MaintenanceWindows { get; set; } } } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdateProperties.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdateProperties.Serialization.cs index e92f829b2f33..2a82f83648e5 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdateProperties.Serialization.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdateProperties.Serialization.cs @@ -43,13 +43,20 @@ void IJsonModel.Write(Utf8JsonWriter writer, M } if (Optional.IsCollectionDefined(MaintenanceWindows)) { - writer.WritePropertyName("maintenanceWindows"u8); - writer.WriteStartArray(); - foreach (var item in MaintenanceWindows) + if (MaintenanceWindows != null) { - writer.WriteObjectValue(item, options); + writer.WritePropertyName("maintenanceWindows"u8); + writer.WriteStartArray(); + foreach (var item in MaintenanceWindows) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("maintenanceWindows"); } - writer.WriteEndArray(); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -124,6 +131,7 @@ internal static SessionHostAgentUpdateProperties DeserializeSessionHostAgentUpda { if (property.Value.ValueKind == JsonValueKind.Null) { + maintenanceWindows = null; continue; } List array = new List(); diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdateProperties.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdateProperties.cs index 4e2ea1b94d34..ff3b60075f14 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdateProperties.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdateProperties.cs @@ -73,6 +73,6 @@ internal SessionHostAgentUpdateProperties(SessionHostComponentUpdateType? update /// Time zone for maintenance as defined in https://docs.microsoft.com/en-us/dotnet/api/system.timezoneinfo.findsystemtimezonebyid?view=net-5.0. Must be set if useLocalTime is true. public string MaintenanceWindowTimeZone { get; set; } /// List of maintenance windows. Maintenance windows are 2 hours long. - public IList MaintenanceWindows { get; } + public IList MaintenanceWindows { get; set; } } } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualApplicationGroupPatch.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualApplicationGroupPatch.Serialization.cs index 466806d93c5e..207a27a55427 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualApplicationGroupPatch.Serialization.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualApplicationGroupPatch.Serialization.cs @@ -29,14 +29,21 @@ void IJsonModel.Write(Utf8JsonWriter writer, Model writer.WriteStartObject(); if (Optional.IsCollectionDefined(Tags)) { - writer.WritePropertyName("tags"u8); - writer.WriteStartObject(); - foreach (var item in Tags) + if (Tags != null) { - writer.WritePropertyName(item.Key); - writer.WriteStringValue(item.Value); + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("tags"); } - writer.WriteEndObject(); } if (options.Format != "W") { @@ -130,6 +137,7 @@ internal static VirtualApplicationGroupPatch DeserializeVirtualApplicationGroupP { if (property.Value.ValueKind == JsonValueKind.Null) { + tags = null; continue; } Dictionary dictionary = new Dictionary(); diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualApplicationGroupPatch.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualApplicationGroupPatch.cs index a9fc2c5ddfc8..fed83fdce8d4 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualApplicationGroupPatch.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualApplicationGroupPatch.cs @@ -73,7 +73,7 @@ internal VirtualApplicationGroupPatch(ResourceIdentifier id, string name, Resour } /// tags to be updated. - public IDictionary Tags { get; } + public IDictionary Tags { get; set; } /// Description of ApplicationGroup. public string Description { get; set; } /// Friendly name of ApplicationGroup. diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualApplicationPatch.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualApplicationPatch.Serialization.cs index 0be0fed22206..8dabd883b2c0 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualApplicationPatch.Serialization.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualApplicationPatch.Serialization.cs @@ -28,14 +28,21 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReade writer.WriteStartObject(); if (Optional.IsCollectionDefined(Tags)) { - writer.WritePropertyName("tags"u8); - writer.WriteStartObject(); - foreach (var item in Tags) + if (Tags != null) { - writer.WritePropertyName(item.Key); - writer.WriteStringValue(item.Value); + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("tags"); } - writer.WriteEndObject(); } writer.WritePropertyName("properties"u8); writer.WriteStartObject(); @@ -167,6 +174,7 @@ internal static VirtualApplicationPatch DeserializeVirtualApplicationPatch(JsonE { if (property.Value.ValueKind == JsonValueKind.Null) { + tags = null; continue; } Dictionary dictionary = new Dictionary(); diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualApplicationPatch.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualApplicationPatch.cs index 64d6b409c8cb..5c3d02b500df 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualApplicationPatch.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualApplicationPatch.cs @@ -83,7 +83,7 @@ internal VirtualApplicationPatch(IDictionary tags, string descri } /// tags to be updated. - public IDictionary Tags { get; } + public IDictionary Tags { get; set; } /// Description of Application. public string Description { get; set; } /// Friendly name of Application. diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualDesktopPatch.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualDesktopPatch.Serialization.cs index 99833ac74719..06bdf102c02f 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualDesktopPatch.Serialization.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualDesktopPatch.Serialization.cs @@ -28,14 +28,21 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWri writer.WriteStartObject(); if (Optional.IsCollectionDefined(Tags)) { - writer.WritePropertyName("tags"u8); - writer.WriteStartObject(); - foreach (var item in Tags) + if (Tags != null) { - writer.WritePropertyName(item.Key); - writer.WriteStringValue(item.Value); + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("tags"); } - writer.WriteEndObject(); } writer.WritePropertyName("properties"u8); writer.WriteStartObject(); @@ -99,6 +106,7 @@ internal static VirtualDesktopPatch DeserializeVirtualDesktopPatch(JsonElement e { if (property.Value.ValueKind == JsonValueKind.Null) { + tags = null; continue; } Dictionary dictionary = new Dictionary(); diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualDesktopPatch.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualDesktopPatch.cs index a40408cd30c0..d60a30261b37 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualDesktopPatch.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualDesktopPatch.cs @@ -65,7 +65,7 @@ internal VirtualDesktopPatch(IDictionary tags, string descriptio } /// tags to be updated. - public IDictionary Tags { get; } + public IDictionary Tags { get; set; } /// Description of Desktop. public string Description { get; set; } /// Friendly name of Desktop. diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualWorkspacePatch.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualWorkspacePatch.Serialization.cs index 6f9f3eca46cf..9ec5f546d330 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualWorkspacePatch.Serialization.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualWorkspacePatch.Serialization.cs @@ -28,14 +28,21 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderW writer.WriteStartObject(); if (Optional.IsCollectionDefined(Tags)) { - writer.WritePropertyName("tags"u8); - writer.WriteStartObject(); - foreach (var item in Tags) + if (Tags != null) { - writer.WritePropertyName(item.Key); - writer.WriteStringValue(item.Value); + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + else + { + writer.WriteNull("tags"); } - writer.WriteEndObject(); } writer.WritePropertyName("properties"u8); writer.WriteStartObject(); @@ -51,18 +58,32 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderW } if (Optional.IsCollectionDefined(ApplicationGroupReferences)) { - writer.WritePropertyName("applicationGroupReferences"u8); - writer.WriteStartArray(); - foreach (var item in ApplicationGroupReferences) + if (ApplicationGroupReferences != null) { - writer.WriteStringValue(item); + writer.WritePropertyName("applicationGroupReferences"u8); + writer.WriteStartArray(); + foreach (var item in ApplicationGroupReferences) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("applicationGroupReferences"); } - writer.WriteEndArray(); } if (Optional.IsDefined(PublicNetworkAccess)) { - writer.WritePropertyName("publicNetworkAccess"u8); - writer.WriteStringValue(PublicNetworkAccess.Value.ToString()); + if (PublicNetworkAccess != null) + { + writer.WritePropertyName("publicNetworkAccess"u8); + writer.WriteStringValue(PublicNetworkAccess.Value.ToString()); + } + else + { + writer.WriteNull("publicNetworkAccess"); + } } writer.WriteEndObject(); if (options.Format != "W" && _serializedAdditionalRawData != null) @@ -116,6 +137,7 @@ internal static VirtualWorkspacePatch DeserializeVirtualWorkspacePatch(JsonEleme { if (property.Value.ValueKind == JsonValueKind.Null) { + tags = null; continue; } Dictionary dictionary = new Dictionary(); @@ -149,6 +171,7 @@ internal static VirtualWorkspacePatch DeserializeVirtualWorkspacePatch(JsonEleme { if (property0.Value.ValueKind == JsonValueKind.Null) { + applicationGroupReferences = null; continue; } List array = new List(); @@ -163,6 +186,7 @@ internal static VirtualWorkspacePatch DeserializeVirtualWorkspacePatch(JsonEleme { if (property0.Value.ValueKind == JsonValueKind.Null) { + publicNetworkAccess = null; continue; } publicNetworkAccess = new DesktopVirtualizationPublicNetworkAccess(property0.Value.GetString()); diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualWorkspacePatch.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualWorkspacePatch.cs index 8efe5c3c78b9..f1bab9e00329 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualWorkspacePatch.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualWorkspacePatch.cs @@ -70,13 +70,13 @@ internal VirtualWorkspacePatch(IDictionary tags, string descript } /// tags to be updated. - public IDictionary Tags { get; } + public IDictionary Tags { get; set; } /// Description of Workspace. public string Description { get; set; } /// Friendly name of Workspace. public string FriendlyName { get; set; } /// List of applicationGroup links. - public IList ApplicationGroupReferences { get; } + public IList ApplicationGroupReferences { get; set; } /// Enabled to allow this resource to be access from the public network. public DesktopVirtualizationPublicNetworkAccess? PublicNetworkAccess { get; set; } } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/MsixPackageCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/MsixPackageCollection.cs index 9fbd23034156..4aa621f896fd 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/MsixPackageCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/MsixPackageCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpdateAsync /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUn /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string msixPac /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string msixPackageFullName, Can /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -289,7 +289,7 @@ public virtual AsyncPageable GetAllAsync(int? pageSize = nu /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -322,7 +322,7 @@ public virtual Pageable GetAll(int? pageSize = null, bool? /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -365,7 +365,7 @@ public virtual async Task> ExistsAsync(string msixPackageFullName /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -408,7 +408,7 @@ public virtual Response Exists(string msixPackageFullName, CancellationTok /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -453,7 +453,7 @@ public virtual async Task> GetIfExistsAsyn /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/MsixPackageData.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/MsixPackageData.cs index b3b6aa1173ec..92d0c2d1fb0c 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/MsixPackageData.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/MsixPackageData.cs @@ -71,7 +71,7 @@ public MsixPackageData() /// Specifies how to register Package in feed. /// Make this version of the package the active one across the hostpool. /// List of package dependencies. - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. /// Date Package was last updated, found in the appxmanifest.xml. /// List of package applications. /// Keeps track of any properties unknown to the library. @@ -107,7 +107,7 @@ internal MsixPackageData(ResourceIdentifier id, string name, ResourceType resour public bool? IsActive { get; set; } /// List of package dependencies. public IList PackageDependencies { get; } - /// Package Version found in the appxmanifest.xml. + /// Package version found in the appxmanifest.xml. public string Version { get; set; } /// Date Package was last updated, found in the appxmanifest.xml. public DateTimeOffset? LastUpdatedOn { get; set; } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/MsixPackageResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/MsixPackageResource.cs index d07d1470c6b3..01d98bc9d831 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/MsixPackageResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/MsixPackageResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(CancellationTo /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken cancellationT /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> UpdateAsync(MsixPackage /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/AppAttachPackageInfoRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/AppAttachPackageInfoRestOperations.cs new file mode 100644 index 000000000000..6f92bb2b932d --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/AppAttachPackageInfoRestOperations.cs @@ -0,0 +1,229 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.DesktopVirtualization.Models; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + internal partial class AppAttachPackageInfoRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of AppAttachPackageInfoRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public AppAttachPackageInfoRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2024-04-03"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal RequestUriBuilder CreateImportRequestUri(string subscriptionId, string resourceGroupName, string hostPoolName, ImportPackageInfoContent content) + { + 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.DesktopVirtualization/hostPools/", false); + uri.AppendPath(hostPoolName, true); + uri.AppendPath("/importAppAttachPackageInfo", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateImportRequest(string subscriptionId, string resourceGroupName, string hostPoolName, ImportPackageInfoContent content) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + 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.DesktopVirtualization/hostPools/", false); + uri.AppendPath(hostPoolName, true); + uri.AppendPath("/importAppAttachPackageInfo", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); + request.Content = content0; + _userAgent.Apply(message); + return message; + } + + /// Gets information from a package given the path to the package. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the host pool within the specified resource group. + /// Object containing URI to package image and other optional properties. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ImportAsync(string subscriptionId, string resourceGroupName, string hostPoolName, ImportPackageInfoContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(hostPoolName, nameof(hostPoolName)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateImportRequest(subscriptionId, resourceGroupName, hostPoolName, content); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AppAttachPackageList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AppAttachPackageList.DeserializeAppAttachPackageList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets information from a package given the path to the package. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the host pool within the specified resource group. + /// Object containing URI to package image and other optional properties. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response Import(string subscriptionId, string resourceGroupName, string hostPoolName, ImportPackageInfoContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(hostPoolName, nameof(hostPoolName)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateImportRequest(subscriptionId, resourceGroupName, hostPoolName, content); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AppAttachPackageList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AppAttachPackageList.DeserializeAppAttachPackageList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateImportNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, ImportPackageInfoContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateImportNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, ImportPackageInfoContent content) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets information from a package given the path to the package. + /// The URL to the next page of results. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the host pool within the specified resource group. + /// Object containing URI to package image and other optional properties. + /// The cancellation token to use. + /// , , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ImportNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, ImportPackageInfoContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(hostPoolName, nameof(hostPoolName)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateImportNextPageRequest(nextLink, subscriptionId, resourceGroupName, hostPoolName, content); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AppAttachPackageList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AppAttachPackageList.DeserializeAppAttachPackageList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets information from a package given the path to the package. + /// The URL to the next page of results. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the host pool within the specified resource group. + /// Object containing URI to package image and other optional properties. + /// The cancellation token to use. + /// , , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ImportNextPage(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, ImportPackageInfoContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(hostPoolName, nameof(hostPoolName)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateImportNextPageRequest(nextLink, subscriptionId, resourceGroupName, hostPoolName, content); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AppAttachPackageList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AppAttachPackageList.DeserializeAppAttachPackageList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/AppAttachPackageRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/AppAttachPackageRestOperations.cs new file mode 100644 index 000000000000..340b27a8f331 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/AppAttachPackageRestOperations.cs @@ -0,0 +1,765 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.DesktopVirtualization.Models; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + internal partial class AppAttachPackageRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of AppAttachPackageRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public AppAttachPackageRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2024-04-03"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string appAttachPackageName) + { + 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.DesktopVirtualization/appAttachPackages/", false); + uri.AppendPath(appAttachPackageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string appAttachPackageName) + { + 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.DesktopVirtualization/appAttachPackages/", false); + uri.AppendPath(appAttachPackageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get an app attach package. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the App Attach package. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string appAttachPackageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(appAttachPackageName, nameof(appAttachPackageName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, appAttachPackageName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AppAttachPackageData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AppAttachPackageData.DeserializeAppAttachPackageData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((AppAttachPackageData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get an app attach package. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the App Attach package. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string appAttachPackageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(appAttachPackageName, nameof(appAttachPackageName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, appAttachPackageName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AppAttachPackageData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AppAttachPackageData.DeserializeAppAttachPackageData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((AppAttachPackageData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string appAttachPackageName, AppAttachPackageData data) + { + 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.DesktopVirtualization/appAttachPackages/", false); + uri.AppendPath(appAttachPackageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string appAttachPackageName, AppAttachPackageData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + 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.DesktopVirtualization/appAttachPackages/", false); + uri.AppendPath(appAttachPackageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Create or update an App Attach package. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the App Attach package. + /// Object containing App Attach Package definitions. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string appAttachPackageName, AppAttachPackageData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(appAttachPackageName, nameof(appAttachPackageName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, appAttachPackageName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + { + AppAttachPackageData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AppAttachPackageData.DeserializeAppAttachPackageData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create or update an App Attach package. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the App Attach package. + /// Object containing App Attach Package definitions. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string appAttachPackageName, AppAttachPackageData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(appAttachPackageName, nameof(appAttachPackageName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, appAttachPackageName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + { + AppAttachPackageData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AppAttachPackageData.DeserializeAppAttachPackageData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string appAttachPackageName) + { + 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.DesktopVirtualization/appAttachPackages/", false); + uri.AppendPath(appAttachPackageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string appAttachPackageName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + 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.DesktopVirtualization/appAttachPackages/", false); + uri.AppendPath(appAttachPackageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Remove an App Attach Package. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the App Attach package. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string appAttachPackageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(appAttachPackageName, nameof(appAttachPackageName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, appAttachPackageName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Remove an App Attach Package. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the App Attach package. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string appAttachPackageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(appAttachPackageName, nameof(appAttachPackageName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, appAttachPackageName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string appAttachPackageName, AppAttachPackagePatch patch) + { + 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.DesktopVirtualization/appAttachPackages/", false); + uri.AppendPath(appAttachPackageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string appAttachPackageName, AppAttachPackagePatch patch) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + 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.DesktopVirtualization/appAttachPackages/", false); + uri.AppendPath(appAttachPackageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(patch, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Update an App Attach Package. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the App Attach package. + /// Object containing App Attach Package definition. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string appAttachPackageName, AppAttachPackagePatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(appAttachPackageName, nameof(appAttachPackageName)); + Argument.AssertNotNull(patch, nameof(patch)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, appAttachPackageName, patch); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AppAttachPackageData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AppAttachPackageData.DeserializeAppAttachPackageData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Update an App Attach Package. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the App Attach package. + /// Object containing App Attach Package definition. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response Update(string subscriptionId, string resourceGroupName, string appAttachPackageName, AppAttachPackagePatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(appAttachPackageName, nameof(appAttachPackageName)); + Argument.AssertNotNull(patch, nameof(patch)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, appAttachPackageName, patch); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AppAttachPackageData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AppAttachPackageData.DeserializeAppAttachPackageData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string filter) + { + 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.DesktopVirtualization/appAttachPackages", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string filter) + { + 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.DesktopVirtualization/appAttachPackages", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List App Attach packages in resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// OData filter expression. Valid properties for filtering are package name and host pool. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, filter); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AppAttachPackageList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AppAttachPackageList.DeserializeAppAttachPackageList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List App Attach packages in resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// OData filter expression. Valid properties for filtering are package name and host pool. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, filter); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AppAttachPackageList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AppAttachPackageList.DeserializeAppAttachPackageList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/appAttachPackages", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string filter) + { + 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("/providers/Microsoft.DesktopVirtualization/appAttachPackages", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List App Attach packages in subscription. + /// The ID of the target subscription. The value must be an UUID. + /// OData filter expression. Valid properties for filtering are package name, host pool, and resource group. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ListBySubscriptionAsync(string subscriptionId, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListBySubscriptionRequest(subscriptionId, filter); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AppAttachPackageList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AppAttachPackageList.DeserializeAppAttachPackageList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List App Attach packages in subscription. + /// The ID of the target subscription. The value must be an UUID. + /// OData filter expression. Valid properties for filtering are package name, host pool, and resource group. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public Response ListBySubscription(string subscriptionId, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListBySubscriptionRequest(subscriptionId, filter); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AppAttachPackageList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AppAttachPackageList.DeserializeAppAttachPackageList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string filter) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List App Attach packages in resource group. + /// The URL to the next page of results. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// OData filter expression. Valid properties for filtering are package name and host pool. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, filter); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AppAttachPackageList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AppAttachPackageList.DeserializeAppAttachPackageList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List App Attach packages in resource group. + /// The URL to the next page of results. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// OData filter expression. Valid properties for filtering are package name and host pool. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, filter); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AppAttachPackageList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AppAttachPackageList.DeserializeAppAttachPackageList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string filter) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List App Attach packages in subscription. + /// The URL to the next page of results. + /// The ID of the target subscription. The value must be an UUID. + /// OData filter expression. Valid properties for filtering are package name, host pool, and resource group. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, filter); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AppAttachPackageList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AppAttachPackageList.DeserializeAppAttachPackageList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List App Attach packages in subscription. + /// The URL to the next page of results. + /// The ID of the target subscription. The value must be an UUID. + /// OData filter expression. Valid properties for filtering are package name, host pool, and resource group. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, filter); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AppAttachPackageList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AppAttachPackageList.DeserializeAppAttachPackageList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ApplicationGroupsRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ApplicationGroupsRestOperations.cs index 1409d1a0a499..c8a94e098c92 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ApplicationGroupsRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ApplicationGroupsRestOperations.cs @@ -32,7 +32,7 @@ public ApplicationGroupsRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-09-05"; + _apiVersion = apiVersion ?? "2024-04-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -71,7 +71,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou } /// Get an application group. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// The cancellation token to use. @@ -102,7 +102,7 @@ public async Task> GetAsync(string subscri } /// Get an application group. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// The cancellation token to use. @@ -171,7 +171,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r } /// Create or update an applicationGroup. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// Object containing ApplicationGroup definitions. @@ -203,7 +203,7 @@ public async Task> CreateOrUpdateAsync(str } /// Create or update an applicationGroup. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// Object containing ApplicationGroup definitions. @@ -269,7 +269,7 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG } /// Remove an applicationGroup. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// The cancellation token to use. @@ -294,7 +294,7 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } /// Remove an applicationGroup. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// The cancellation token to use. @@ -357,7 +357,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG } /// Update an applicationGroup. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// Object containing ApplicationGroup definitions. @@ -388,7 +388,7 @@ public async Task> UpdateAsync(string subs } /// Update an applicationGroup. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// Object containing ApplicationGroup definitions. @@ -483,7 +483,7 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str } /// List applicationGroups. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// OData filter expression. Valid properties for filtering are applicationGroupType. /// Number of items per page. @@ -514,7 +514,7 @@ public async Task> ListByResourceGroupAsync(strin } /// List applicationGroups. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// OData filter expression. Valid properties for filtering are applicationGroupType. /// Number of items per page. @@ -581,7 +581,7 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, stri } /// List applicationGroups in subscription. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// OData filter expression. Valid properties for filtering are applicationGroupType. /// The cancellation token to use. /// is null. @@ -607,7 +607,7 @@ public async Task> ListBySubscriptionAsync(string } /// List applicationGroups in subscription. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// OData filter expression. Valid properties for filtering are applicationGroupType. /// The cancellation token to use. /// is null. @@ -656,7 +656,7 @@ internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, s /// List applicationGroups. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// OData filter expression. Valid properties for filtering are applicationGroupType. /// Number of items per page. @@ -689,7 +689,7 @@ public async Task> ListByResourceGroupNextPageAsy /// List applicationGroups. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// OData filter expression. Valid properties for filtering are applicationGroupType. /// Number of items per page. @@ -744,7 +744,7 @@ internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, st /// List applicationGroups in subscription. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// OData filter expression. Valid properties for filtering are applicationGroupType. /// The cancellation token to use. /// or is null. @@ -772,7 +772,7 @@ public async Task> ListBySubscriptionNextPageAsyn /// List applicationGroups in subscription. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// OData filter expression. Valid properties for filtering are applicationGroupType. /// The cancellation token to use. /// or is null. diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ApplicationsRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ApplicationsRestOperations.cs index 0af32961e49e..cb015b5c6815 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ApplicationsRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ApplicationsRestOperations.cs @@ -32,7 +32,7 @@ public ApplicationsRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-09-05"; + _apiVersion = apiVersion ?? "2024-04-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -75,7 +75,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou } /// Get an application. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// The name of the application within the specified application group. @@ -108,7 +108,7 @@ public async Task> GetAsync(string subscription } /// Get an application. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// The name of the application within the specified application group. @@ -183,7 +183,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r } /// Create or update an application. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// The name of the application within the specified application group. @@ -217,7 +217,7 @@ public async Task> CreateOrUpdateAsync(string s } /// Create or update an application. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// The name of the application within the specified application group. @@ -289,7 +289,7 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG } /// Remove an application. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// The name of the application within the specified application group. @@ -316,7 +316,7 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } /// Remove an application. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// The name of the application within the specified application group. @@ -385,7 +385,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG } /// Update an application. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// The name of the application within the specified application group. @@ -418,7 +418,7 @@ public async Task> UpdateAsync(string subscript } /// Update an application. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// The name of the application within the specified application group. @@ -511,7 +511,7 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro } /// List applications. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// Number of items per page. @@ -543,7 +543,7 @@ public async Task> ListAsync(string subscriptionId, st } /// List applications. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// Number of items per page. @@ -598,7 +598,7 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript /// List applications. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// Number of items per page. @@ -632,7 +632,7 @@ public async Task> ListNextPageAsync(string nextLink, /// List applications. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// Number of items per page. diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/DesktopsRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/DesktopsRestOperations.cs index 14a66aecf9f5..1e341e7c747c 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/DesktopsRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/DesktopsRestOperations.cs @@ -32,7 +32,7 @@ public DesktopsRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-09-05"; + _apiVersion = apiVersion ?? "2024-04-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -75,7 +75,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou } /// Get a desktop. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// The name of the desktop within the specified desktop group. @@ -108,7 +108,7 @@ public async Task> GetAsync(string subscriptionId, } /// Get a desktop. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// The name of the desktop within the specified desktop group. @@ -183,7 +183,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG } /// Update a desktop. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// The name of the desktop within the specified desktop group. @@ -216,7 +216,7 @@ public async Task> UpdateAsync(string subscriptionI } /// Update a desktop. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// The name of the desktop within the specified desktop group. @@ -309,7 +309,7 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro } /// List desktops. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// Number of items per page. @@ -341,7 +341,7 @@ public async Task> ListAsync(string subscriptionId, string } /// List desktops. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// Number of items per page. @@ -396,7 +396,7 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript /// List desktops. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// Number of items per page. @@ -430,7 +430,7 @@ public async Task> ListNextPageAsync(string nextLink, stri /// List desktops. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// Number of items per page. diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/HostPoolsRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/HostPoolsRestOperations.cs index 4792c056327a..26c0462f2b1c 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/HostPoolsRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/HostPoolsRestOperations.cs @@ -32,7 +32,7 @@ public HostPoolsRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-09-05"; + _apiVersion = apiVersion ?? "2024-04-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -71,7 +71,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou } /// Get a host pool. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The cancellation token to use. @@ -102,7 +102,7 @@ public async Task> GetAsync(string subscriptionId, string } /// Get a host pool. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The cancellation token to use. @@ -171,7 +171,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r } /// Create or update a host pool. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Object containing HostPool definitions. @@ -203,7 +203,7 @@ public async Task> CreateOrUpdateAsync(string subscriptio } /// Create or update a host pool. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Object containing HostPool definitions. @@ -277,7 +277,7 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG } /// Remove a host pool. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Force flag to delete sessionHost. @@ -303,7 +303,7 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } /// Remove a host pool. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Force flag to delete sessionHost. @@ -367,7 +367,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG } /// Update a host pool. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Object containing HostPool definitions. @@ -398,7 +398,7 @@ public async Task> UpdateAsync(string subscriptionId, str } /// Update a host pool. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Object containing HostPool definitions. @@ -485,7 +485,7 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str } /// List hostPools. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Number of items per page. /// Indicates whether the collection is descending. @@ -515,7 +515,7 @@ public async Task> ListByResourceGroupAsync(string subscr } /// List hostPools. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Number of items per page. /// Indicates whether the collection is descending. @@ -597,7 +597,7 @@ internal HttpMessage CreateListRequest(string subscriptionId, int? pageSize, boo } /// List hostPools in subscription. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// Number of items per page. /// Indicates whether the collection is descending. /// Initial number of items to skip. @@ -625,7 +625,7 @@ public async Task> ListAsync(string subscriptionId, int? } /// List hostPools in subscription. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// Number of items per page. /// Indicates whether the collection is descending. /// Initial number of items to skip. @@ -689,7 +689,7 @@ internal HttpMessage CreateRetrieveRegistrationTokenRequest(string subscriptionI } /// Registration token of the host pool. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The cancellation token to use. @@ -718,7 +718,7 @@ public async Task> RetrieveRegistrationTokenA } /// Registration token of the host pool. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The cancellation token to use. @@ -770,7 +770,7 @@ internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, s /// List hostPools. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Number of items per page. /// Indicates whether the collection is descending. @@ -802,7 +802,7 @@ public async Task> ListByResourceGroupNextPageAsync(strin /// List hostPools. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Number of items per page. /// Indicates whether the collection is descending. @@ -856,7 +856,7 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript /// List hostPools in subscription. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// Number of items per page. /// Indicates whether the collection is descending. /// Initial number of items to skip. @@ -886,7 +886,7 @@ public async Task> ListNextPageAsync(string nextLink, str /// List hostPools in subscription. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// Number of items per page. /// Indicates whether the collection is descending. /// Initial number of items to skip. diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/MsixImagesRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/MsixImagesRestOperations.cs index f538e2dc75bd..312e0c8514a8 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/MsixImagesRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/MsixImagesRestOperations.cs @@ -32,7 +32,7 @@ public MsixImagesRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-09-05"; + _apiVersion = apiVersion ?? "2024-04-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -77,7 +77,7 @@ internal HttpMessage CreateExpandRequest(string subscriptionId, string resourceG } /// Expands and Lists MSIX packages in an Image, given the Image Path. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Object containing URI to MSIX Image. @@ -108,7 +108,7 @@ public async Task> ExpandAsync(string subscription } /// Expands and Lists MSIX packages in an Image, given the Image Path. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Object containing URI to MSIX Image. @@ -162,7 +162,7 @@ internal HttpMessage CreateExpandNextPageRequest(string nextLink, string subscri /// Expands and Lists MSIX packages in an Image, given the Image Path. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Object containing URI to MSIX Image. @@ -195,7 +195,7 @@ public async Task> ExpandNextPageAsync(string next /// Expands and Lists MSIX packages in an Image, given the Image Path. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Object containing URI to MSIX Image. diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/MsixPackagesRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/MsixPackagesRestOperations.cs index 55c118b7c4fd..1a34d4570d01 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/MsixPackagesRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/MsixPackagesRestOperations.cs @@ -32,7 +32,7 @@ public MsixPackagesRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-09-05"; + _apiVersion = apiVersion ?? "2024-04-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -75,7 +75,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou } /// Get a msixpackage. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The version specific package full name of the MSIX package within specified hostpool. @@ -108,7 +108,7 @@ public async Task> GetAsync(string subscriptionId, str } /// Get a msixpackage. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The version specific package full name of the MSIX package within specified hostpool. @@ -183,7 +183,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r } /// Create or update a MSIX package. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The version specific package full name of the MSIX package within specified hostpool. @@ -217,7 +217,7 @@ public async Task> CreateOrUpdateAsync(string subscrip } /// Create or update a MSIX package. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The version specific package full name of the MSIX package within specified hostpool. @@ -289,7 +289,7 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG } /// Remove an MSIX Package. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The version specific package full name of the MSIX package within specified hostpool. @@ -316,7 +316,7 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } /// Remove an MSIX Package. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The version specific package full name of the MSIX package within specified hostpool. @@ -385,7 +385,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG } /// Update an MSIX Package. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The version specific package full name of the MSIX package within specified hostpool. @@ -418,7 +418,7 @@ public async Task> UpdateAsync(string subscriptionId, } /// Update an MSIX Package. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The version specific package full name of the MSIX package within specified hostpool. @@ -511,7 +511,7 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro } /// List MSIX packages in hostpool. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Number of items per page. @@ -543,7 +543,7 @@ public async Task> ListAsync(string subscriptionId, st } /// List MSIX packages in hostpool. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Number of items per page. @@ -598,7 +598,7 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript /// List MSIX packages in hostpool. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Number of items per page. @@ -632,7 +632,7 @@ public async Task> ListNextPageAsync(string nextLink, /// List MSIX packages in hostpool. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Number of items per page. diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index d1cffba3b28e..d75f293b623d 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-09-05"; + _apiVersion = apiVersion ?? "2024-04-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -73,7 +73,7 @@ internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string } /// List private endpoint connections. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace. /// The cancellation token to use. @@ -102,7 +102,7 @@ public async Task> L } /// List private endpoint connections. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace. /// The cancellation token to use. @@ -169,7 +169,7 @@ internal HttpMessage CreateGetByWorkspaceRequest(string subscriptionId, string r } /// Get a private endpoint connection. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace. /// The name of the private endpoint connection associated with the Azure resource. @@ -202,7 +202,7 @@ public async Task Get a private endpoint connection. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace. /// The name of the private endpoint connection associated with the Azure resource. @@ -273,7 +273,7 @@ internal HttpMessage CreateDeleteByWorkspaceRequest(string subscriptionId, strin } /// Remove a connection. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace. /// The name of the private endpoint connection associated with the Azure resource. @@ -300,7 +300,7 @@ public async Task DeleteByWorkspaceAsync(string subscriptionId, string } /// Remove a connection. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace. /// The name of the private endpoint connection associated with the Azure resource. @@ -369,7 +369,7 @@ internal HttpMessage CreateUpdateByWorkspaceRequest(string subscriptionId, strin } /// Approve or reject a private endpoint connection. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace. /// The name of the private endpoint connection associated with the Azure resource. @@ -402,7 +402,7 @@ public async Task Approve or reject a private endpoint connection. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace. /// The name of the private endpoint connection associated with the Azure resource. @@ -495,7 +495,7 @@ internal HttpMessage CreateListByHostPoolRequest(string subscriptionId, string r } /// List private endpoint connections associated with hostpool. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Number of items per page. @@ -527,7 +527,7 @@ public async Task> L } /// List private endpoint connections associated with hostpool. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Number of items per page. @@ -597,7 +597,7 @@ internal HttpMessage CreateGetByHostPoolRequest(string subscriptionId, string re } /// Get a private endpoint connection. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The name of the private endpoint connection associated with the Azure resource. @@ -630,7 +630,7 @@ public async Task Get a private endpoint connection. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The name of the private endpoint connection associated with the Azure resource. @@ -701,7 +701,7 @@ internal HttpMessage CreateDeleteByHostPoolRequest(string subscriptionId, string } /// Remove a connection. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The name of the private endpoint connection associated with the Azure resource. @@ -728,7 +728,7 @@ public async Task DeleteByHostPoolAsync(string subscriptionId, string } /// Remove a connection. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The name of the private endpoint connection associated with the Azure resource. @@ -797,7 +797,7 @@ internal HttpMessage CreateUpdateByHostPoolRequest(string subscriptionId, string } /// Approve or reject a private endpoint connection. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The name of the private endpoint connection associated with the Azure resource. @@ -830,7 +830,7 @@ public async Task Approve or reject a private endpoint connection. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The name of the private endpoint connection associated with the Azure resource. @@ -886,7 +886,7 @@ internal HttpMessage CreateListByWorkspaceNextPageRequest(string nextLink, strin /// List private endpoint connections. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace. /// The cancellation token to use. @@ -917,7 +917,7 @@ public async Task> L /// List private endpoint connections. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace. /// The cancellation token to use. @@ -970,7 +970,7 @@ internal HttpMessage CreateListByHostPoolNextPageRequest(string nextLink, string /// List private endpoint connections associated with hostpool. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Number of items per page. @@ -1004,7 +1004,7 @@ public async Task> L /// List private endpoint connections associated with hostpool. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Number of items per page. diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index f907ee495d3d..b7bc85b86fa6 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -32,7 +32,7 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-09-05"; + _apiVersion = apiVersion ?? "2024-04-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -97,7 +97,7 @@ internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string } /// List the private link resources available for this workspace. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace. /// Number of items per page. @@ -129,7 +129,7 @@ public async Task> } /// List the private link resources available for this workspace. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace. /// Number of items per page. @@ -221,7 +221,7 @@ internal HttpMessage CreateListByHostPoolRequest(string subscriptionId, string r } /// List the private link resources available for this hostpool. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Number of items per page. @@ -253,7 +253,7 @@ public async Task> } /// List the private link resources available for this hostpool. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Number of items per page. @@ -308,7 +308,7 @@ internal HttpMessage CreateListByWorkspaceNextPageRequest(string nextLink, strin /// List the private link resources available for this workspace. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace. /// Number of items per page. @@ -342,7 +342,7 @@ public async Task> /// List the private link resources available for this workspace. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace. /// Number of items per page. @@ -398,7 +398,7 @@ internal HttpMessage CreateListByHostPoolNextPageRequest(string nextLink, string /// List the private link resources available for this hostpool. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Number of items per page. @@ -432,7 +432,7 @@ public async Task> /// List the private link resources available for this hostpool. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Number of items per page. diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlanPersonalSchedulesRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlanPersonalSchedulesRestOperations.cs index c4b3b1850c65..8f93254a48f0 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlanPersonalSchedulesRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlanPersonalSchedulesRestOperations.cs @@ -32,7 +32,7 @@ public ScalingPlanPersonalSchedulesRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-09-05"; + _apiVersion = apiVersion ?? "2024-04-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -75,7 +75,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou } /// Get a ScalingPlanPersonalSchedule. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// The name of the ScalingPlanSchedule. @@ -108,7 +108,7 @@ public async Task> GetAsync(string sub } /// Get a ScalingPlanPersonalSchedule. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// The name of the ScalingPlanSchedule. @@ -183,7 +183,7 @@ internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceG } /// Create or update a ScalingPlanPersonalSchedule. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// The name of the ScalingPlanSchedule. @@ -217,7 +217,7 @@ public async Task> CreateAsync(string } /// Create or update a ScalingPlanPersonalSchedule. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// The name of the ScalingPlanSchedule. @@ -289,7 +289,7 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG } /// Remove a ScalingPlanPersonalSchedule. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// The name of the ScalingPlanSchedule. @@ -316,7 +316,7 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } /// Remove a ScalingPlanPersonalSchedule. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// The name of the ScalingPlanSchedule. @@ -385,7 +385,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG } /// Update a ScalingPlanPersonalSchedule. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// The name of the ScalingPlanSchedule. @@ -418,7 +418,7 @@ public async Task> UpdateAsync(string } /// Update a ScalingPlanPersonalSchedule. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// The name of the ScalingPlanSchedule. @@ -511,7 +511,7 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro } /// List ScalingPlanPersonalSchedules. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// Number of items per page. @@ -543,7 +543,7 @@ public async Task> ListAsync(string su } /// List ScalingPlanPersonalSchedules. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// Number of items per page. @@ -598,7 +598,7 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript /// List ScalingPlanPersonalSchedules. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// Number of items per page. @@ -632,7 +632,7 @@ public async Task> ListNextPageAsync(s /// List ScalingPlanPersonalSchedules. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// Number of items per page. diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlanPooledSchedulesRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlanPooledSchedulesRestOperations.cs index 9518f207e684..077d35f08b34 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlanPooledSchedulesRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlanPooledSchedulesRestOperations.cs @@ -32,7 +32,7 @@ public ScalingPlanPooledSchedulesRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-09-05"; + _apiVersion = apiVersion ?? "2024-04-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -75,7 +75,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou } /// Get a ScalingPlanPooledSchedule. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// The name of the ScalingPlanSchedule. @@ -108,7 +108,7 @@ public async Task> GetAsync(string subsc } /// Get a ScalingPlanPooledSchedule. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// The name of the ScalingPlanSchedule. @@ -183,7 +183,7 @@ internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceG } /// Create or update a ScalingPlanPooledSchedule. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// The name of the ScalingPlanSchedule. @@ -217,7 +217,7 @@ public async Task> CreateAsync(string su } /// Create or update a ScalingPlanPooledSchedule. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// The name of the ScalingPlanSchedule. @@ -289,7 +289,7 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG } /// Remove a ScalingPlanPooledSchedule. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// The name of the ScalingPlanSchedule. @@ -316,7 +316,7 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } /// Remove a ScalingPlanPooledSchedule. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// The name of the ScalingPlanSchedule. @@ -385,7 +385,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG } /// Update a ScalingPlanPooledSchedule. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// The name of the ScalingPlanSchedule. @@ -418,7 +418,7 @@ public async Task> UpdateAsync(string su } /// Update a ScalingPlanPooledSchedule. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// The name of the ScalingPlanSchedule. @@ -511,7 +511,7 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro } /// List ScalingPlanPooledSchedules. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// Number of items per page. @@ -543,7 +543,7 @@ public async Task> ListAsync(string subs } /// List ScalingPlanPooledSchedules. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// Number of items per page. @@ -598,7 +598,7 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript /// List ScalingPlanPooledSchedules. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// Number of items per page. @@ -632,7 +632,7 @@ public async Task> ListNextPageAsync(str /// List ScalingPlanPooledSchedules. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// Number of items per page. diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlansRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlansRestOperations.cs index fa1cc08fd0c6..3a628eff8c03 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlansRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlansRestOperations.cs @@ -32,7 +32,7 @@ public ScalingPlansRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-09-05"; + _apiVersion = apiVersion ?? "2024-04-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -71,7 +71,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou } /// Get a scaling plan. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// The cancellation token to use. @@ -102,7 +102,7 @@ public async Task> GetAsync(string subscriptionId, str } /// Get a scaling plan. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// The cancellation token to use. @@ -171,7 +171,7 @@ internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceG } /// Create or update a scaling plan. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// Object containing scaling plan definitions. @@ -203,7 +203,7 @@ public async Task> CreateAsync(string subscriptionId, } /// Create or update a scaling plan. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// Object containing scaling plan definitions. @@ -269,7 +269,7 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG } /// Remove a scaling plan. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// The cancellation token to use. @@ -294,7 +294,7 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } /// Remove a scaling plan. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// The cancellation token to use. @@ -357,7 +357,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG } /// Update a scaling plan. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// Object containing scaling plan definitions. @@ -388,7 +388,7 @@ public async Task> UpdateAsync(string subscriptionId, } /// Update a scaling plan. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the scaling plan. /// Object containing scaling plan definitions. @@ -475,7 +475,7 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str } /// List scaling plans. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Number of items per page. /// Indicates whether the collection is descending. @@ -505,7 +505,7 @@ public async Task> ListByResourceGroupAsync(string sub } /// List scaling plans. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Number of items per page. /// Indicates whether the collection is descending. @@ -587,7 +587,7 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, int? } /// List scaling plans in subscription. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// Number of items per page. /// Indicates whether the collection is descending. /// Initial number of items to skip. @@ -615,7 +615,7 @@ public async Task> ListBySubscriptionAsync(string subs } /// List scaling plans in subscription. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// Number of items per page. /// Indicates whether the collection is descending. /// Initial number of items to skip. @@ -703,7 +703,7 @@ internal HttpMessage CreateListByHostPoolRequest(string subscriptionId, string r } /// List scaling plan associated with hostpool. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Number of items per page. @@ -735,7 +735,7 @@ public async Task> ListByHostPoolAsync(string subscrip } /// List scaling plan associated with hostpool. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Number of items per page. @@ -790,7 +790,7 @@ internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, s /// List scaling plans. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Number of items per page. /// Indicates whether the collection is descending. @@ -822,7 +822,7 @@ public async Task> ListByResourceGroupNextPageAsync(st /// List scaling plans. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Number of items per page. /// Indicates whether the collection is descending. @@ -876,7 +876,7 @@ internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, st /// List scaling plans in subscription. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// Number of items per page. /// Indicates whether the collection is descending. /// Initial number of items to skip. @@ -906,7 +906,7 @@ public async Task> ListBySubscriptionNextPageAsync(str /// List scaling plans in subscription. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// Number of items per page. /// Indicates whether the collection is descending. /// Initial number of items to skip. @@ -958,7 +958,7 @@ internal HttpMessage CreateListByHostPoolNextPageRequest(string nextLink, string /// List scaling plan associated with hostpool. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Number of items per page. @@ -992,7 +992,7 @@ public async Task> ListByHostPoolNextPageAsync(string /// List scaling plan associated with hostpool. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Number of items per page. diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/SessionHostsRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/SessionHostsRestOperations.cs index b71b33408d57..7014aa7a06e4 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/SessionHostsRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/SessionHostsRestOperations.cs @@ -32,7 +32,7 @@ public SessionHostsRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-09-05"; + _apiVersion = apiVersion ?? "2024-04-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -75,7 +75,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou } /// Get a session host. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The name of the session host within the specified host pool. @@ -108,7 +108,7 @@ public async Task> GetAsync(string subscriptionId, str } /// Get a session host. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The name of the session host within the specified host pool. @@ -187,7 +187,7 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG } /// Remove a SessionHost. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The name of the session host within the specified host pool. @@ -215,7 +215,7 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } /// Remove a SessionHost. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The name of the session host within the specified host pool. @@ -293,7 +293,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG } /// Update a session host. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The name of the session host within the specified host pool. @@ -327,7 +327,7 @@ public async Task> UpdateAsync(string subscriptionId, } /// Update a session host. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The name of the session host within the specified host pool. @@ -421,7 +421,7 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro } /// List sessionHosts. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Number of items per page. @@ -453,7 +453,7 @@ public async Task> ListAsync(string subscriptionId, st } /// List sessionHosts. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Number of items per page. @@ -508,7 +508,7 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript /// List sessionHosts. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Number of items per page. @@ -542,7 +542,7 @@ public async Task> ListNextPageAsync(string nextLink, /// List sessionHosts. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// Number of items per page. diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/StartMenuItemsRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/StartMenuItemsRestOperations.cs index 413299e277c2..bd9c1a2e0e71 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/StartMenuItemsRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/StartMenuItemsRestOperations.cs @@ -32,7 +32,7 @@ public StartMenuItemsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-09-05"; + _apiVersion = apiVersion ?? "2024-04-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -97,7 +97,7 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro } /// List start menu items in the given application group. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// Number of items per page. @@ -129,7 +129,7 @@ public async Task> ListAsync(string subscriptionId, } /// List start menu items in the given application group. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// Number of items per page. @@ -184,7 +184,7 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript /// List start menu items in the given application group. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// Number of items per page. @@ -218,7 +218,7 @@ public async Task> ListNextPageAsync(string nextLink /// List start menu items in the given application group. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the application group. /// Number of items per page. diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/UserSessionsRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/UserSessionsRestOperations.cs index 9675b471d7d6..c16ae46a8919 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/UserSessionsRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/UserSessionsRestOperations.cs @@ -32,7 +32,7 @@ public UserSessionsRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-09-05"; + _apiVersion = apiVersion ?? "2024-04-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -105,7 +105,7 @@ internal HttpMessage CreateListByHostPoolRequest(string subscriptionId, string r } /// List userSessions. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// OData filter expression. Valid properties for filtering are userprincipalname and sessionstate. @@ -138,7 +138,7 @@ public async Task> ListByHostPoolAsync(string subscrip } /// List userSessions. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// OData filter expression. Valid properties for filtering are userprincipalname and sessionstate. @@ -213,7 +213,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou } /// Get a userSession. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The name of the session host within the specified host pool. @@ -248,7 +248,7 @@ public async Task> GetAsync(string subscriptionId, str } /// Get a userSession. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The name of the session host within the specified host pool. @@ -333,7 +333,7 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG } /// Remove a userSession. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The name of the session host within the specified host pool. @@ -363,7 +363,7 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } /// Remove a userSession. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The name of the session host within the specified host pool. @@ -457,7 +457,7 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro } /// List userSessions. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The name of the session host within the specified host pool. @@ -491,7 +491,7 @@ public async Task> ListAsync(string subscriptionId, st } /// List userSessions. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The name of the session host within the specified host pool. @@ -569,7 +569,7 @@ internal HttpMessage CreateDisconnectRequest(string subscriptionId, string resou } /// Disconnect a userSession. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The name of the session host within the specified host pool. @@ -597,7 +597,7 @@ public async Task DisconnectAsync(string subscriptionId, string resour } /// Disconnect a userSession. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The name of the session host within the specified host pool. @@ -676,7 +676,7 @@ internal HttpMessage CreateSendMessageRequest(string subscriptionId, string reso } /// Send a message to a user. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The name of the session host within the specified host pool. @@ -705,7 +705,7 @@ public async Task SendMessageAsync(string subscriptionId, string resou } /// Send a message to a user. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The name of the session host within the specified host pool. @@ -757,7 +757,7 @@ internal HttpMessage CreateListByHostPoolNextPageRequest(string nextLink, string /// List userSessions. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// OData filter expression. Valid properties for filtering are userprincipalname and sessionstate. @@ -792,7 +792,7 @@ public async Task> ListByHostPoolNextPageAsync(string /// List userSessions. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// OData filter expression. Valid properties for filtering are userprincipalname and sessionstate. @@ -849,7 +849,7 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript /// List userSessions. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The name of the session host within the specified host pool. @@ -885,7 +885,7 @@ public async Task> ListNextPageAsync(string nextLink, /// List userSessions. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the host pool within the specified resource group. /// The name of the session host within the specified host pool. diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/WorkspacesRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/WorkspacesRestOperations.cs index 38830122a127..31ab9c02f039 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/WorkspacesRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/WorkspacesRestOperations.cs @@ -32,7 +32,7 @@ public WorkspacesRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-09-05"; + _apiVersion = apiVersion ?? "2024-04-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -71,7 +71,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou } /// Get a workspace. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace. /// The cancellation token to use. @@ -102,7 +102,7 @@ public async Task> GetAsync(string subscriptionId } /// Get a workspace. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace. /// The cancellation token to use. @@ -171,7 +171,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r } /// Create or update a workspace. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace. /// Object containing Workspace definitions. @@ -203,7 +203,7 @@ public async Task> CreateOrUpdateAsync(string sub } /// Create or update a workspace. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace. /// Object containing Workspace definitions. @@ -269,7 +269,7 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG } /// Remove a workspace. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace. /// The cancellation token to use. @@ -294,7 +294,7 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } /// Remove a workspace. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace. /// The cancellation token to use. @@ -357,7 +357,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG } /// Update a workspace. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace. /// Object containing Workspace definitions. @@ -388,7 +388,7 @@ public async Task> UpdateAsync(string subscriptio } /// Update a workspace. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the workspace. /// Object containing Workspace definitions. @@ -475,7 +475,7 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str } /// List workspaces. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Number of items per page. /// Indicates whether the collection is descending. @@ -505,7 +505,7 @@ public async Task> ListByResourceGroupAsync(string subsc } /// List workspaces. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Number of items per page. /// Indicates whether the collection is descending. @@ -563,7 +563,7 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) } /// List workspaces in subscription. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -588,7 +588,7 @@ public async Task> ListBySubscriptionAsync(string subscr } /// List workspaces in subscription. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -636,7 +636,7 @@ internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, s /// List workspaces. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Number of items per page. /// Indicates whether the collection is descending. @@ -668,7 +668,7 @@ public async Task> ListByResourceGroupNextPageAsync(stri /// List workspaces. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Number of items per page. /// Indicates whether the collection is descending. @@ -722,7 +722,7 @@ internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, st /// List workspaces in subscription. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. @@ -749,7 +749,7 @@ public async Task> ListBySubscriptionNextPageAsync(strin /// List workspaces in subscription. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanCollection.cs index 33d5fd3f74b8..31db3f619312 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpdateAsync /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUn /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string scaling /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string scalingPlanName, Cancell /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -290,7 +290,7 @@ public virtual AsyncPageable GetAllAsync(int? pageSize = nu /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -323,7 +323,7 @@ public virtual Pageable GetAll(int? pageSize = null, bool? /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -366,7 +366,7 @@ public virtual async Task> ExistsAsync(string scalingPlanName, Ca /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -409,7 +409,7 @@ public virtual Response Exists(string scalingPlanName, CancellationToken c /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -454,7 +454,7 @@ public virtual async Task> GetIfExistsAsyn /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanData.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanData.cs index f2100b8e0811..a391457cb5c9 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanData.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanData.cs @@ -80,7 +80,7 @@ public ScalingPlanData(AzureLocation location, string timeZone) : base(location) /// List of ScalingPlanPooledSchedule definitions. /// List of ScalingHostPoolReference definitions. /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. - /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. /// Gets or sets the identity. Current supported identity types: SystemAssigned. /// The resource model definition representing SKU. @@ -128,7 +128,7 @@ internal ScalingPlanData() public IList HostPoolReferences { get; } /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. public ResourceIdentifier ManagedBy { get; set; } - /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. public string Kind { get; set; } /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. public ETag? ETag { get; } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPersonalScheduleCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPersonalScheduleCollection.cs index 3184b975c35b..68505be93e0a 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPersonalScheduleCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPersonalScheduleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> Cre /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate( /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string scalingP /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -289,7 +289,7 @@ public virtual AsyncPageable GetAllAsync(in /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -322,7 +322,7 @@ public virtual Pageable GetAll(int? pageSiz /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -365,7 +365,7 @@ public virtual async Task> ExistsAsync(string scalingPlanSchedule /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -408,7 +408,7 @@ public virtual Response Exists(string scalingPlanScheduleName, Cancellatio /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -453,7 +453,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPersonalScheduleResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPersonalScheduleResource.cs index 02c064a71405..4b281661f966 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPersonalScheduleResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPersonalScheduleResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationTok /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> UpdateA /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPooledScheduleCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPooledScheduleCollection.cs index 58bd7f1e02ab..d05cbd661d11 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPooledScheduleCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPooledScheduleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> Creat /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(Wa /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string scalingPla /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -289,7 +289,7 @@ public virtual AsyncPageable GetAllAsync(int? /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -322,7 +322,7 @@ public virtual Pageable GetAll(int? pageSize /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -365,7 +365,7 @@ public virtual async Task> ExistsAsync(string scalingPlanSchedule /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -408,7 +408,7 @@ public virtual Response Exists(string scalingPlanScheduleName, Cancellatio /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -453,7 +453,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPooledScheduleResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPooledScheduleResource.cs index 39ad3966d91b..b18eecd4a47e 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPooledScheduleResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPooledScheduleResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> UpdateAsy /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanResource.cs index 4d1278d72908..71ccaf7c9ef1 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanResource.cs @@ -110,7 +110,7 @@ public virtual ScalingPlanPooledScheduleCollection GetScalingPlanPooledSchedules /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetScalin /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -179,7 +179,7 @@ public virtual ScalingPlanPersonalScheduleCollection GetScalingPlanPersonalSched /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetScal /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -241,7 +241,7 @@ public virtual Response GetScalingPlanPerso /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -281,7 +281,7 @@ public virtual async Task> GetAsync(CancellationTo /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -321,7 +321,7 @@ public virtual Response Get(CancellationToken cancellationT /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -365,7 +365,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -409,7 +409,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> UpdateAsync(ScalingPlan /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -493,7 +493,7 @@ public virtual Response Update(ScalingPlanPatch patch, Canc /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -555,7 +555,7 @@ public virtual async Task> AddTagAsync(string key, /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -617,7 +617,7 @@ public virtual Response AddTag(string key, string value, Ca /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -674,7 +674,7 @@ public virtual async Task> SetTagsAsync(IDictionar /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -731,7 +731,7 @@ public virtual Response SetTags(IDictionary /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -791,7 +791,7 @@ public virtual async Task> RemoveTagAsync(string k /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/SessionHostCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/SessionHostCollection.cs index c0ea205cd5d8..bb2398815538 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/SessionHostCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/SessionHostCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string session /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string sessionHostName, Cancell /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -187,7 +187,7 @@ public virtual AsyncPageable GetAllAsync(int? pageSize = nu /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -220,7 +220,7 @@ public virtual Pageable GetAll(int? pageSize = null, bool? /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -263,7 +263,7 @@ public virtual async Task> ExistsAsync(string sessionHostName, Ca /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -306,7 +306,7 @@ public virtual Response Exists(string sessionHostName, CancellationToken c /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual async Task> GetIfExistsAsyn /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/SessionHostResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/SessionHostResource.cs index 4855e5797d5d..4a4feebf385e 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/SessionHostResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/SessionHostResource.cs @@ -109,7 +109,7 @@ public virtual UserSessionCollection GetUserSessions() /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetUserSessionAsync(str /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -171,7 +171,7 @@ public virtual Response GetUserSession(string userSessionId /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(CancellationTo /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -251,7 +251,7 @@ public virtual Response Get(CancellationToken cancellationT /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -296,7 +296,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? f /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -341,7 +341,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, Canc /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -384,7 +384,7 @@ public virtual async Task> UpdateAsync(SessionHost /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/UserSessionCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/UserSessionCollection.cs index 71b404854240..9417f20af7d9 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/UserSessionCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/UserSessionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string userSes /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string userSessionId, Cancellat /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -187,7 +187,7 @@ public virtual AsyncPageable GetAllAsync(int? pageSize = nu /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -220,7 +220,7 @@ public virtual Pageable GetAll(int? pageSize = null, bool? /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -263,7 +263,7 @@ public virtual async Task> ExistsAsync(string userSessionId, Canc /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -306,7 +306,7 @@ public virtual Response Exists(string userSessionId, CancellationToken can /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual async Task> GetIfExistsAsyn /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/UserSessionResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/UserSessionResource.cs index 7b1117772345..8239a83aa58e 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/UserSessionResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/UserSessionResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(CancellationTo /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cancellationT /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -228,7 +228,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? f /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -273,7 +273,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, Canc /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task DisconnectAsync(CancellationToken cancellati /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -349,7 +349,7 @@ public virtual Response Disconnect(CancellationToken cancellationToken = default /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -388,7 +388,7 @@ public virtual async Task SendMessageAsync(UserSessionMessage sendMess /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationCollection.cs index e289583619e1..84122d060881 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpda /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string applicationName, /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -289,7 +289,7 @@ public virtual AsyncPageable GetAllAsync(int? pageSi /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -322,7 +322,7 @@ public virtual Pageable GetAll(int? pageSize = null, /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -365,7 +365,7 @@ public virtual async Task> ExistsAsync(string applicationName, Ca /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -408,7 +408,7 @@ public virtual Response Exists(string applicationName, CancellationToken c /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -453,7 +453,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupCollection.cs index d96f67193b04..db5f602715d8 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateO /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(Wait /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(st /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string applicationG /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -291,7 +291,7 @@ public virtual AsyncPageable GetAllAsync(string /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -325,7 +325,7 @@ public virtual Pageable GetAll(string filter = /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -368,7 +368,7 @@ public virtual async Task> ExistsAsync(string applicationGroupNam /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -411,7 +411,7 @@ public virtual Response Exists(string applicationGroupName, CancellationTo /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -456,7 +456,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupData.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupData.Serialization.cs index e17ada655ef3..1e22bc27e873 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupData.Serialization.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupData.Serialization.cs @@ -126,8 +126,15 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelR writer.WriteStringValue(ApplicationGroupType.ToString()); if (options.Format != "W" && Optional.IsDefined(IsCloudPCResource)) { - writer.WritePropertyName("cloudPcResource"u8); - writer.WriteBooleanValue(IsCloudPCResource.Value); + if (IsCloudPCResource != null) + { + writer.WritePropertyName("cloudPcResource"u8); + writer.WriteBooleanValue(IsCloudPCResource.Value); + } + else + { + writer.WriteNull("cloudPcResource"); + } } if (Optional.IsDefined(ShowInFeed)) { @@ -338,6 +345,7 @@ internal static VirtualApplicationGroupData DeserializeVirtualApplicationGroupDa { if (property0.Value.ValueKind == JsonValueKind.Null) { + cloudPCResource = null; continue; } cloudPCResource = property0.Value.GetBoolean(); diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupData.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupData.cs index a80fd06c67aa..af0383fb5477 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupData.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupData.cs @@ -80,7 +80,7 @@ public VirtualApplicationGroupData(AzureLocation location, ResourceIdentifier ho /// Is cloud pc resource. /// Boolean representing whether the applicationGroup is show in the feed. /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. - /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. /// Gets or sets the identity. Current supported identity types: SystemAssigned. /// The resource model definition representing SKU. @@ -128,7 +128,7 @@ internal VirtualApplicationGroupData() public bool? ShowInFeed { get; set; } /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. public ResourceIdentifier ManagedBy { get; set; } - /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. public string Kind { get; set; } /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. public ETag? ETag { get; } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupResource.cs index 6c32c0a85277..e3499220abfa 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupResource.cs @@ -115,7 +115,7 @@ public virtual VirtualApplicationCollection GetVirtualApplications() /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -146,7 +146,7 @@ public virtual async Task> GetVirtualApplic /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual VirtualDesktopCollection GetVirtualDesktops() /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual async Task> GetVirtualDesktopAsy /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -246,7 +246,7 @@ public virtual Response GetVirtualDesktop(string desktop /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual async Task> GetAsync(Ca /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -326,7 +326,7 @@ public virtual Response Get(CancellationToken c /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -370,7 +370,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -414,7 +414,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -456,7 +456,7 @@ public virtual async Task> UpdateAsync /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -498,7 +498,7 @@ public virtual Response Update(VirtualApplicati /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// @@ -527,7 +527,7 @@ public virtual AsyncPageable GetStartMenuIte /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// @@ -556,7 +556,7 @@ public virtual Pageable GetStartMenuItems(in /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -618,7 +618,7 @@ public virtual async Task> AddTagAsync /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -680,7 +680,7 @@ public virtual Response AddTag(string key, stri /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -737,7 +737,7 @@ public virtual async Task> SetTagsAsyn /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -794,7 +794,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -854,7 +854,7 @@ public virtual async Task> RemoveTagAs /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationResource.cs index 7b7cb61116b5..864c1cef4bb9 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken cancel /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> UpdateAsync(Virt /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualDesktopCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualDesktopCollection.cs index 593766e3fb87..ea22250af43c 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualDesktopCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualDesktopCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string desk /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string desktopName, Cancella /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -187,7 +187,7 @@ public virtual AsyncPageable GetAllAsync(int? pageSize = /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -220,7 +220,7 @@ public virtual Pageable GetAll(int? pageSize = null, boo /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -263,7 +263,7 @@ public virtual async Task> ExistsAsync(string desktopName, Cancel /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -306,7 +306,7 @@ public virtual Response Exists(string desktopName, CancellationToken cance /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual async Task> GetIfExistsA /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualDesktopResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualDesktopResource.cs index a4c1c3a1f1e8..7425dac21067 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualDesktopResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualDesktopResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cancellatio /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken cancellati /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task> UpdateAsync(VirtualD /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualWorkspaceCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualWorkspaceCollection.cs index 7059a1e3bc79..9a803d5ff4f8 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualWorkspaceCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualWorkspaceCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpdate /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string wo /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string workspaceName, Canc /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -290,7 +290,7 @@ public virtual AsyncPageable GetAllAsync(int? pageSize /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -323,7 +323,7 @@ public virtual Pageable GetAll(int? pageSize = null, b /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -366,7 +366,7 @@ public virtual async Task> ExistsAsync(string workspaceName, Canc /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -409,7 +409,7 @@ public virtual Response Exists(string workspaceName, CancellationToken can /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -454,7 +454,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualWorkspaceData.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualWorkspaceData.Serialization.cs index 685a4a7dedb5..20d01e11a149 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualWorkspaceData.Serialization.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualWorkspaceData.Serialization.cs @@ -110,33 +110,61 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWr } if (Optional.IsCollectionDefined(ApplicationGroupReferences)) { - writer.WritePropertyName("applicationGroupReferences"u8); - writer.WriteStartArray(); - foreach (var item in ApplicationGroupReferences) + if (ApplicationGroupReferences != null) { - writer.WriteStringValue(item); + writer.WritePropertyName("applicationGroupReferences"u8); + writer.WriteStartArray(); + foreach (var item in ApplicationGroupReferences) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("applicationGroupReferences"); } - writer.WriteEndArray(); } if (options.Format != "W" && Optional.IsDefined(IsCloudPCResource)) { - writer.WritePropertyName("cloudPcResource"u8); - writer.WriteBooleanValue(IsCloudPCResource.Value); + if (IsCloudPCResource != null) + { + writer.WritePropertyName("cloudPcResource"u8); + writer.WriteBooleanValue(IsCloudPCResource.Value); + } + else + { + writer.WriteNull("cloudPcResource"); + } } if (Optional.IsDefined(PublicNetworkAccess)) { - writer.WritePropertyName("publicNetworkAccess"u8); - writer.WriteStringValue(PublicNetworkAccess.Value.ToString()); + if (PublicNetworkAccess != null) + { + writer.WritePropertyName("publicNetworkAccess"u8); + writer.WriteStringValue(PublicNetworkAccess.Value.ToString()); + } + else + { + writer.WriteNull("publicNetworkAccess"); + } } if (options.Format != "W" && Optional.IsCollectionDefined(PrivateEndpointConnections)) { - writer.WritePropertyName("privateEndpointConnections"u8); - writer.WriteStartArray(); - foreach (var item in PrivateEndpointConnections) + if (PrivateEndpointConnections != null) + { + writer.WritePropertyName("privateEndpointConnections"u8); + writer.WriteStartArray(); + foreach (var item in PrivateEndpointConnections) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + else { - writer.WriteObjectValue(item, options); + writer.WriteNull("privateEndpointConnections"); } - writer.WriteEndArray(); } writer.WriteEndObject(); if (options.Format != "W" && _serializedAdditionalRawData != null) @@ -321,6 +349,7 @@ internal static VirtualWorkspaceData DeserializeVirtualWorkspaceData(JsonElement { if (property0.Value.ValueKind == JsonValueKind.Null) { + applicationGroupReferences = null; continue; } List array = new List(); @@ -335,6 +364,7 @@ internal static VirtualWorkspaceData DeserializeVirtualWorkspaceData(JsonElement { if (property0.Value.ValueKind == JsonValueKind.Null) { + cloudPCResource = null; continue; } cloudPCResource = property0.Value.GetBoolean(); @@ -344,6 +374,7 @@ internal static VirtualWorkspaceData DeserializeVirtualWorkspaceData(JsonElement { if (property0.Value.ValueKind == JsonValueKind.Null) { + publicNetworkAccess = null; continue; } publicNetworkAccess = new DesktopVirtualizationPublicNetworkAccess(property0.Value.GetString()); @@ -353,6 +384,7 @@ internal static VirtualWorkspaceData DeserializeVirtualWorkspaceData(JsonElement { if (property0.Value.ValueKind == JsonValueKind.Null) { + privateEndpointConnections = null; continue; } List array = new List(); diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualWorkspaceData.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualWorkspaceData.cs index b150a5162376..1dfd02be4870 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualWorkspaceData.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualWorkspaceData.cs @@ -74,7 +74,7 @@ public VirtualWorkspaceData(AzureLocation location) : base(location) /// Enabled allows this resource to be accessed from both public and private networks, Disabled allows this resource to only be accessed via private endpoints. /// List of private endpoint connection associated with the specified resource. /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. - /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. /// Gets or sets the identity. Current supported identity types: SystemAssigned. /// The resource model definition representing SKU. @@ -110,7 +110,7 @@ internal VirtualWorkspaceData() /// Friendly name of Workspace. public string FriendlyName { get; set; } /// List of applicationGroup resource Ids. - public IList ApplicationGroupReferences { get; } + public IList ApplicationGroupReferences { get; set; } /// Is cloud pc resource. public bool? IsCloudPCResource { get; } /// Enabled allows this resource to be accessed from both public and private networks, Disabled allows this resource to only be accessed via private endpoints. @@ -119,7 +119,7 @@ internal VirtualWorkspaceData() public IReadOnlyList PrivateEndpointConnections { get; } /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. public ResourceIdentifier ManagedBy { get; set; } - /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. public string Kind { get; set; } /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. public ETag? ETag { get; } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualWorkspaceResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualWorkspaceResource.cs index b8f304f5671a..8df1f7a58767 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualWorkspaceResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualWorkspaceResource.cs @@ -115,7 +115,7 @@ public virtual WorkspacePrivateEndpointConnectionCollection GetWorkspacePrivateE /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -146,7 +146,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -177,7 +177,7 @@ public virtual Response GetWorkspace /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -217,7 +217,7 @@ public virtual async Task> GetAsync(Cancellat /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(CancellationToken cancella /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -301,7 +301,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -387,7 +387,7 @@ public virtual async Task> UpdateAsync(Virtua /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -429,7 +429,7 @@ public virtual Response Update(VirtualWorkspacePatch p /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// @@ -458,7 +458,7 @@ public virtual AsyncPageable GetPr /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// @@ -487,7 +487,7 @@ public virtual Pageable GetPrivate /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -549,7 +549,7 @@ public virtual async Task> AddTagAsync(string /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -611,7 +611,7 @@ public virtual Response AddTag(string key, string valu /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -668,7 +668,7 @@ public virtual async Task> SetTagsAsync(IDict /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -725,7 +725,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -785,7 +785,7 @@ public virtual async Task> RemoveTagAsync(str /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/WorkspacePrivateEndpointConnectionCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/WorkspacePrivateEndpointConnectionCollection.cs index 229477cbfa5b..7badf4867d49 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/WorkspacePrivateEndpointConnectionCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/WorkspacePrivateEndpointConnectionCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOr /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string p /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllA /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual Pageable GetAll(Cance /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string privateEndpointConn /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string privateEndpointConnectionName, Cance /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/WorkspacePrivateEndpointConnectionResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/WorkspacePrivateEndpointConnectionResource.cs index 3785350b7155..d7cc80f7a684 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/WorkspacePrivateEndpointConnectionResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/WorkspacePrivateEndpointConnectionResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(Cancella /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-09-05 + /// 2024-04-03 /// /// /// Resource diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/autorest.md b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/autorest.md index 13102b1f0962..741832afe4cc 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/autorest.md +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/autorest.md @@ -9,7 +9,7 @@ generate-model-factory: true csharp: true library-name: DesktopVirtualization namespace: Azure.ResourceManager.DesktopVirtualization -require: https://github.com/Azure/azure-rest-api-specs/blob/9d449f35c2a8707d446a86d80c3732c909b1872f/specification/desktopvirtualization/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/desktopvirtualization/resource-manager/readme.md # tag: package-2023-09 output-folder: $(this-folder)/Generated clear-output-folder: true