diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/Azure.ResourceManager.DesktopVirtualization.sln b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/Azure.ResourceManager.DesktopVirtualization.sln index c3450cb3015d..86f13cfcc26b 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/Azure.ResourceManager.DesktopVirtualization.sln +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/Azure.ResourceManager.DesktopVirtualization.sln @@ -43,6 +43,18 @@ Global {E36A8647-6C66-4C6B-81DE-C8D633DBB8B0}.Release|x64.Build.0 = Release|Any CPU {E36A8647-6C66-4C6B-81DE-C8D633DBB8B0}.Release|x86.ActiveCfg = Release|Any CPU {E36A8647-6C66-4C6B-81DE-C8D633DBB8B0}.Release|x86.Build.0 = Release|Any CPU + {D90839DE-418D-4D8C-8B9D-60879F3C001B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D90839DE-418D-4D8C-8B9D-60879F3C001B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D90839DE-418D-4D8C-8B9D-60879F3C001B}.Debug|x64.ActiveCfg = Debug|Any CPU + {D90839DE-418D-4D8C-8B9D-60879F3C001B}.Debug|x64.Build.0 = Debug|Any CPU + {D90839DE-418D-4D8C-8B9D-60879F3C001B}.Debug|x86.ActiveCfg = Debug|Any CPU + {D90839DE-418D-4D8C-8B9D-60879F3C001B}.Debug|x86.Build.0 = Debug|Any CPU + {D90839DE-418D-4D8C-8B9D-60879F3C001B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D90839DE-418D-4D8C-8B9D-60879F3C001B}.Release|Any CPU.Build.0 = Release|Any CPU + {D90839DE-418D-4D8C-8B9D-60879F3C001B}.Release|x64.ActiveCfg = Release|Any CPU + {D90839DE-418D-4D8C-8B9D-60879F3C001B}.Release|x64.Build.0 = Release|Any CPU + {D90839DE-418D-4D8C-8B9D-60879F3C001B}.Release|x86.ActiveCfg = Release|Any CPU + {D90839DE-418D-4D8C-8B9D-60879F3C001B}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/CHANGELOG.md b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/CHANGELOG.md index dc48c59050b8..cd09e7ad1284 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/CHANGELOG.md +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/CHANGELOG.md @@ -1,15 +1,17 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.1.0 (2023-05-12) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Enable the model factory feature for model mocking, more information can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-mocking-factory-builder). ### Other Changes +- Upgraded API version to 2022-09-09 +- Upgraded dependent `Azure.Core` to `1.32.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.6.0`. + ## 1.0.1 (2023-02-15) ### Other Changes 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 9de0187ee1b2..586b7a3fa31f 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 @@ -6,15 +6,24 @@ public static partial class DesktopVirtualizationExtensions 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.HostPoolResource GetHostPoolResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.DesktopVirtualization.HostPoolCollection GetHostPools(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.Pageable GetHostPools(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetHostPoolsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Pageable GetHostPools(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, 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 static Azure.Pageable GetHostPools(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken) { throw null; } + public static Azure.AsyncPageable GetHostPoolsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, 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 static Azure.AsyncPageable GetHostPoolsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken) { throw null; } public static Azure.ResourceManager.DesktopVirtualization.MsixPackageResource GetMsixPackageResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Response GetScalingPlan(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string scalingPlanName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetScalingPlanAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string scalingPlanName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.DesktopVirtualization.ScalingPlanPooledScheduleResource GetScalingPlanPooledScheduleResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.DesktopVirtualization.ScalingPlanResource GetScalingPlanResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.DesktopVirtualization.ScalingPlanCollection GetScalingPlans(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.Pageable GetScalingPlans(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetScalingPlansAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Pageable GetScalingPlans(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, 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 static Azure.Pageable GetScalingPlans(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken) { throw null; } + public static Azure.AsyncPageable GetScalingPlansAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, 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 static Azure.AsyncPageable GetScalingPlansAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken) { throw null; } public static Azure.ResourceManager.DesktopVirtualization.SessionHostResource GetSessionHostResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.DesktopVirtualization.UserSessionResource GetUserSessionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Response GetVirtualApplicationGroup(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string applicationGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -40,8 +49,12 @@ protected HostPoolCollection() { } public virtual Azure.Response Exists(string hostPoolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string hostPoolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(string hostPoolName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(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 GetAll(System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(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.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(string hostPoolName, 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; } @@ -50,6 +63,7 @@ protected HostPoolCollection() { } public partial class HostPoolData : Azure.ResourceManager.Models.TrackedResourceData { public HostPoolData(Azure.Core.AzureLocation location, Azure.ResourceManager.DesktopVirtualization.Models.HostPoolType hostPoolType, Azure.ResourceManager.DesktopVirtualization.Models.HostPoolLoadBalancerType loadBalancerType, Azure.ResourceManager.DesktopVirtualization.Models.PreferredAppGroupType preferredAppGroupType) : base (default(Azure.Core.AzureLocation)) { } + public Azure.ResourceManager.DesktopVirtualization.Models.SessionHostAgentUpdateProperties AgentUpdate { get { throw null; } set { } } public System.Collections.Generic.IReadOnlyList ApplicationGroupReferences { get { throw null; } } public string CustomRdpProperty { get { throw null; } set { } } public string Description { get { throw null; } set { } } @@ -63,6 +77,8 @@ public HostPoolData(Azure.Core.AzureLocation location, Azure.ResourceManager.Des public Azure.ResourceManager.DesktopVirtualization.Models.HostPoolLoadBalancerType LoadBalancerType { get { throw null; } set { } } public Azure.Core.ResourceIdentifier ManagedBy { get { throw null; } set { } } public int? MaxSessionLimit { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("This property is obsolete and might be removed in a future version", false)] public Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationMigrationProperties MigrationRequest { get { throw null; } set { } } public string ObjectId { get { throw null; } } public Azure.ResourceManager.DesktopVirtualization.Models.PersonalDesktopAssignmentType? PersonalDesktopAssignmentType { get { throw null; } set { } } @@ -96,13 +112,19 @@ protected HostPoolResource() { } public virtual Azure.Response GetMsixPackage(string msixPackageFullName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetMsixPackageAsync(string msixPackageFullName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.DesktopVirtualization.MsixPackageCollection GetMsixPackages() { throw null; } - public virtual Azure.Pageable GetScalingPlans(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetScalingPlansAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetScalingPlans(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 GetScalingPlans(System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.AsyncPageable GetScalingPlansAsync(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.AsyncPageable GetScalingPlansAsync(System.Threading.CancellationToken cancellationToken) { throw null; } public virtual Azure.Response GetSessionHost(string sessionHostName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetSessionHostAsync(string sessionHostName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.DesktopVirtualization.SessionHostCollection GetSessionHosts() { throw null; } - public virtual Azure.Pageable GetUserSessions(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetUserSessionsAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetUserSessions(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.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.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; } @@ -120,8 +142,12 @@ protected MsixPackageCollection() { } public virtual Azure.Response Exists(string msixPackageFullName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string msixPackageFullName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(string msixPackageFullName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(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 GetAll(System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(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.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(string msixPackageFullName, 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; } @@ -164,8 +190,12 @@ protected ScalingPlanCollection() { } public virtual Azure.Response Exists(string scalingPlanName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string scalingPlanName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(string scalingPlanName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(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 GetAll(System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(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.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(string scalingPlanName, 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; } @@ -173,22 +203,77 @@ protected ScalingPlanCollection() { } } public partial class ScalingPlanData : Azure.ResourceManager.Models.TrackedResourceData { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public ScalingPlanData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public ScalingPlanData(Azure.Core.AzureLocation location, string timeZone) : base (default(Azure.Core.AzureLocation)) { } public string Description { get { throw null; } set { } } public Azure.ETag? ETag { get { throw null; } } public string ExclusionTag { get { throw null; } set { } } public string FriendlyName { get { throw null; } set { } } public System.Collections.Generic.IList HostPoolReferences { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [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 Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public string Kind { get { throw null; } set { } } public Azure.Core.ResourceIdentifier ManagedBy { get { throw null; } set { } } public string ObjectId { get { throw null; } } public Azure.ResourceManager.Models.ArmPlan Plan { get { throw null; } set { } } + public Azure.ResourceManager.DesktopVirtualization.Models.ScalingHostPoolType? ScalingHostPoolType { get { throw null; } set { } } public System.Collections.Generic.IList Schedules { get { throw null; } } public Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationSku Sku { get { throw null; } set { } } public string TimeZone { get { throw null; } set { } } } + public partial class ScalingPlanPooledScheduleCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected ScalingPlanPooledScheduleCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string scalingPlanScheduleName, Azure.ResourceManager.DesktopVirtualization.ScalingPlanPooledScheduleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string scalingPlanScheduleName, Azure.ResourceManager.DesktopVirtualization.ScalingPlanPooledScheduleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string scalingPlanScheduleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string scalingPlanScheduleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string scalingPlanScheduleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(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 GetAllAsync(int? pageSize = default(int?), bool? isDescending = default(bool?), int? initialSkip = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string scalingPlanScheduleName, 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 ScalingPlanPooledScheduleData : Azure.ResourceManager.Models.ResourceData + { + public ScalingPlanPooledScheduleData() { } + public System.Collections.Generic.IList DaysOfWeek { get { throw null; } } + public Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm? OffPeakLoadBalancingAlgorithm { get { throw null; } set { } } + public Azure.ResourceManager.DesktopVirtualization.Models.ScalingActionTime OffPeakStartTime { get { throw null; } set { } } + public Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm? PeakLoadBalancingAlgorithm { get { throw null; } set { } } + public Azure.ResourceManager.DesktopVirtualization.Models.ScalingActionTime PeakStartTime { get { throw null; } set { } } + public int? RampDownCapacityThresholdPct { get { throw null; } set { } } + public bool? RampDownForceLogoffUsers { get { throw null; } set { } } + public Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm? RampDownLoadBalancingAlgorithm { get { throw null; } set { } } + public int? RampDownMinimumHostsPct { get { throw null; } set { } } + public string RampDownNotificationMessage { get { throw null; } set { } } + public Azure.ResourceManager.DesktopVirtualization.Models.ScalingActionTime RampDownStartTime { get { throw null; } set { } } + public Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationStopHostsWhen? RampDownStopHostsWhen { get { throw null; } set { } } + public int? RampDownWaitTimeMinutes { get { throw null; } set { } } + public int? RampUpCapacityThresholdPct { get { throw null; } set { } } + public Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm? RampUpLoadBalancingAlgorithm { get { throw null; } set { } } + public int? RampUpMinimumHostsPct { get { throw null; } set { } } + public Azure.ResourceManager.DesktopVirtualization.Models.ScalingActionTime RampUpStartTime { get { throw null; } set { } } + } + public partial class ScalingPlanPooledScheduleResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected ScalingPlanPooledScheduleResource() { } + public virtual Azure.ResourceManager.DesktopVirtualization.ScalingPlanPooledScheduleData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName) { 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; } + public virtual Azure.Response Update(Azure.ResourceManager.DesktopVirtualization.Models.ScalingPlanPooledSchedulePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.DesktopVirtualization.Models.ScalingPlanPooledSchedulePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } public partial class ScalingPlanResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; @@ -202,6 +287,9 @@ protected ScalingPlanResource() { } 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; } + public virtual Azure.Response GetScalingPlanPooledSchedule(string scalingPlanScheduleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetScalingPlanPooledScheduleAsync(string scalingPlanScheduleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.DesktopVirtualization.ScalingPlanPooledScheduleCollection GetScalingPlanPooledSchedules() { throw null; } public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -215,8 +303,12 @@ protected SessionHostCollection() { } public virtual Azure.Response Exists(string sessionHostName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string sessionHostName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(string sessionHostName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(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 GetAll(System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(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.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(string sessionHostName, 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; } @@ -228,6 +320,7 @@ public SessionHostData() { } public string AgentVersion { get { throw null; } set { } } public bool? AllowNewSession { get { throw null; } set { } } public string AssignedUser { get { throw null; } set { } } + public string FriendlyName { get { throw null; } set { } } public System.DateTimeOffset? LastHeartBeatOn { get { throw null; } set { } } public System.DateTimeOffset? LastUpdatedOn { get { throw null; } } public string ObjectId { get { throw null; } } @@ -256,8 +349,12 @@ protected SessionHostResource() { } public virtual Azure.Response GetUserSession(string userSessionId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetUserSessionAsync(string userSessionId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.DesktopVirtualization.UserSessionCollection GetUserSessions() { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.DesktopVirtualization.Models.SessionHostPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.DesktopVirtualization.Models.SessionHostPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.DesktopVirtualization.Models.SessionHostPatch patch, bool? force = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Update(Azure.ResourceManager.DesktopVirtualization.Models.SessionHostPatch patch, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.DesktopVirtualization.Models.SessionHostPatch patch, bool? force = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.DesktopVirtualization.Models.SessionHostPatch patch, System.Threading.CancellationToken cancellationToken) { throw null; } } public partial class UserSessionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { @@ -265,8 +362,12 @@ protected UserSessionCollection() { } public virtual Azure.Response Exists(string userSessionId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string userSessionId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(string userSessionId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(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 GetAll(System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(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.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(string userSessionId, 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; } @@ -306,8 +407,12 @@ protected VirtualApplicationCollection() { } public virtual Azure.Response Exists(string applicationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string applicationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(string applicationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(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 GetAll(System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(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.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(string applicationName, 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; } @@ -339,8 +444,12 @@ protected VirtualApplicationGroupCollection() { } public virtual Azure.Response Exists(string applicationGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string applicationGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(string applicationGroupName, 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 Azure.Pageable GetAll(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; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Pageable GetAll(string filter, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(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; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.AsyncPageable GetAllAsync(string filter, System.Threading.CancellationToken cancellationToken) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(string applicationGroupName, 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; } @@ -358,6 +467,8 @@ public VirtualApplicationGroupData(Azure.Core.AzureLocation location, Azure.Core public bool? IsCloudPCResource { get { throw null; } } public string Kind { get { throw null; } set { } } public Azure.Core.ResourceIdentifier ManagedBy { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("This property is obsolete and might be removed in a future version", false)] public Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationMigrationProperties MigrationRequest { get { throw null; } set { } } public string ObjectId { get { throw null; } } public Azure.ResourceManager.Models.ArmPlan Plan { get { throw null; } set { } } @@ -377,8 +488,12 @@ protected VirtualApplicationGroupResource() { } 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; } - public virtual Azure.Pageable GetStartMenuItems(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetStartMenuItemsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetStartMenuItems(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 GetStartMenuItems(System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.AsyncPageable GetStartMenuItemsAsync(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.AsyncPageable GetStartMenuItemsAsync(System.Threading.CancellationToken cancellationToken) { throw null; } public virtual Azure.Response GetVirtualApplication(string applicationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetVirtualApplicationAsync(string applicationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.DesktopVirtualization.VirtualApplicationCollection GetVirtualApplications() { throw null; } @@ -412,8 +527,12 @@ protected VirtualDesktopCollection() { } public virtual Azure.Response Exists(string desktopName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string desktopName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(string desktopName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(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 GetAll(System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(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.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(string desktopName, 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; } @@ -448,8 +567,12 @@ protected VirtualWorkspaceCollection() { } public virtual Azure.Response Exists(string workspaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string workspaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(string workspaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(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 GetAll(System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(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.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(string workspaceName, 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; } @@ -493,6 +616,40 @@ protected VirtualWorkspaceResource() { } } namespace Azure.ResourceManager.DesktopVirtualization.Models { + public static partial class ArmDesktopVirtualizationModelFactory + { + 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; } + 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.SessionHostAgentUpdateProperties agentUpdate = 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; } + 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.SessionHostAgentUpdatePatchProperties agentUpdate = null) { throw null; } + public static Azure.ResourceManager.DesktopVirtualization.MsixPackageData MsixPackageData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string imagePath = null, string packageName = null, string packageFamilyName = 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; } + public static Azure.ResourceManager.DesktopVirtualization.Models.MsixPackagePatch MsixPackagePatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, bool? isActive = default(bool?), bool? isRegularRegistration = default(bool?), string displayName = null) { throw null; } + public static Azure.ResourceManager.DesktopVirtualization.ScalingPlanData ScalingPlanData(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 description = null, string friendlyName = null, string timeZone = null, Azure.ResourceManager.DesktopVirtualization.Models.ScalingHostPoolType? scalingHostPoolType = default(Azure.ResourceManager.DesktopVirtualization.Models.ScalingHostPoolType?), string exclusionTag = null, System.Collections.Generic.IEnumerable schedules = null, System.Collections.Generic.IEnumerable hostPoolReferences = 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; } + public static Azure.ResourceManager.DesktopVirtualization.ScalingPlanPooledScheduleData ScalingPlanPooledScheduleData(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 daysOfWeek = null, Azure.ResourceManager.DesktopVirtualization.Models.ScalingActionTime rampUpStartTime = null, Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm? rampUpLoadBalancingAlgorithm = default(Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm?), int? rampUpMinimumHostsPct = default(int?), int? rampUpCapacityThresholdPct = default(int?), Azure.ResourceManager.DesktopVirtualization.Models.ScalingActionTime peakStartTime = null, Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm? peakLoadBalancingAlgorithm = default(Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm?), Azure.ResourceManager.DesktopVirtualization.Models.ScalingActionTime rampDownStartTime = null, Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm? rampDownLoadBalancingAlgorithm = default(Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm?), int? rampDownMinimumHostsPct = default(int?), int? rampDownCapacityThresholdPct = default(int?), bool? rampDownForceLogoffUsers = default(bool?), Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationStopHostsWhen? rampDownStopHostsWhen = default(Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationStopHostsWhen?), int? rampDownWaitTimeMinutes = default(int?), string rampDownNotificationMessage = null, Azure.ResourceManager.DesktopVirtualization.Models.ScalingActionTime offPeakStartTime = null, Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm? offPeakLoadBalancingAlgorithm = default(Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm?)) { throw null; } + public static Azure.ResourceManager.DesktopVirtualization.Models.ScalingPlanPooledSchedulePatch ScalingPlanPooledSchedulePatch(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 daysOfWeek = null, Azure.ResourceManager.DesktopVirtualization.Models.ScalingActionTime rampUpStartTime = null, Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm? rampUpLoadBalancingAlgorithm = default(Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm?), int? rampUpMinimumHostsPct = default(int?), int? rampUpCapacityThresholdPct = default(int?), Azure.ResourceManager.DesktopVirtualization.Models.ScalingActionTime peakStartTime = null, Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm? peakLoadBalancingAlgorithm = default(Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm?), Azure.ResourceManager.DesktopVirtualization.Models.ScalingActionTime rampDownStartTime = null, Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm? rampDownLoadBalancingAlgorithm = default(Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm?), int? rampDownMinimumHostsPct = default(int?), int? rampDownCapacityThresholdPct = default(int?), bool? rampDownForceLogoffUsers = default(bool?), Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationStopHostsWhen? rampDownStopHostsWhen = default(Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationStopHostsWhen?), int? rampDownWaitTimeMinutes = default(int?), string rampDownNotificationMessage = null, Azure.ResourceManager.DesktopVirtualization.Models.ScalingActionTime offPeakStartTime = null, Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm? offPeakLoadBalancingAlgorithm = default(Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm?)) { throw null; } + public static Azure.ResourceManager.DesktopVirtualization.SessionHostData SessionHostData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string objectId = null, System.DateTimeOffset? lastHeartBeatOn = default(System.DateTimeOffset?), int? sessions = default(int?), string agentVersion = null, bool? allowNewSession = default(bool?), string vmId = null, Azure.Core.ResourceIdentifier resourceId = null, string assignedUser = null, string friendlyName = null, Azure.ResourceManager.DesktopVirtualization.Models.SessionHostStatus? status = default(Azure.ResourceManager.DesktopVirtualization.Models.SessionHostStatus?), System.DateTimeOffset? statusTimestamp = default(System.DateTimeOffset?), string osVersion = null, string sxsStackVersion = null, Azure.ResourceManager.DesktopVirtualization.Models.SessionHostUpdateState? updateState = default(Azure.ResourceManager.DesktopVirtualization.Models.SessionHostUpdateState?), System.DateTimeOffset? lastUpdatedOn = default(System.DateTimeOffset?), string updateErrorMessage = null, System.Collections.Generic.IEnumerable sessionHostHealthCheckResults = null) { throw null; } + public static Azure.ResourceManager.DesktopVirtualization.Models.SessionHostHealthCheckFailureDetails SessionHostHealthCheckFailureDetails(string message = null, int? errorCode = default(int?), System.DateTimeOffset? lastHealthCheckOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.DesktopVirtualization.Models.SessionHostHealthCheckReport SessionHostHealthCheckReport(Azure.ResourceManager.DesktopVirtualization.Models.SessionHostHealthCheckName? healthCheckName = default(Azure.ResourceManager.DesktopVirtualization.Models.SessionHostHealthCheckName?), Azure.ResourceManager.DesktopVirtualization.Models.SessionHostHealthCheckResult? healthCheckResult = default(Azure.ResourceManager.DesktopVirtualization.Models.SessionHostHealthCheckResult?), Azure.ResourceManager.DesktopVirtualization.Models.SessionHostHealthCheckFailureDetails additionalFailureDetails = null) { throw null; } + public static Azure.ResourceManager.DesktopVirtualization.Models.SessionHostPatch SessionHostPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, bool? allowNewSession = default(bool?), string assignedUser = null, string friendlyName = null) { throw null; } + public static Azure.ResourceManager.DesktopVirtualization.UserSessionData UserSessionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string objectId = null, string userPrincipalName = null, Azure.ResourceManager.DesktopVirtualization.Models.VirtualApplicationType? applicationType = default(Azure.ResourceManager.DesktopVirtualization.Models.VirtualApplicationType?), Azure.ResourceManager.DesktopVirtualization.Models.UserSessionState? sessionState = default(Azure.ResourceManager.DesktopVirtualization.Models.UserSessionState?), string activeDirectoryUserName = null, System.DateTimeOffset? createOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.DesktopVirtualization.VirtualApplicationData VirtualApplicationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string objectId = null, string description = null, string friendlyName = null, string filePath = null, string msixPackageFamilyName = null, string msixPackageApplicationId = null, Azure.ResourceManager.DesktopVirtualization.Models.RemoteApplicationType? applicationType = default(Azure.ResourceManager.DesktopVirtualization.Models.RemoteApplicationType?), Azure.ResourceManager.DesktopVirtualization.Models.VirtualApplicationCommandLineSetting commandLineSetting = default(Azure.ResourceManager.DesktopVirtualization.Models.VirtualApplicationCommandLineSetting), string commandLineArguments = null, bool? showInPortal = default(bool?), string iconPath = null, int? iconIndex = default(int?), string iconHash = null, System.BinaryData iconContent = null) { throw null; } + public static Azure.ResourceManager.DesktopVirtualization.VirtualApplicationGroupData VirtualApplicationGroupData(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 description = null, string friendlyName = null, Azure.Core.ResourceIdentifier hostPoolId = null, Azure.Core.ResourceIdentifier workspaceId = null, Azure.ResourceManager.DesktopVirtualization.Models.VirtualApplicationGroupType applicationGroupType = default(Azure.ResourceManager.DesktopVirtualization.Models.VirtualApplicationGroupType), bool? isCloudPCResource = default(bool?), 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; } + public static Azure.ResourceManager.DesktopVirtualization.Models.VirtualApplicationGroupPatch VirtualApplicationGroupPatch(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 description = null, string friendlyName = null) { throw null; } + public static Azure.ResourceManager.DesktopVirtualization.VirtualDesktopData VirtualDesktopData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string objectId = null, string description = null, string friendlyName = null, string iconHash = null, System.BinaryData iconContent = null) { throw null; } + public static Azure.ResourceManager.DesktopVirtualization.VirtualWorkspaceData VirtualWorkspaceData(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 description = null, string friendlyName = null, System.Collections.Generic.IEnumerable applicationGroupReferences = null, bool? isCloudPCResource = default(bool?), 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; } + } + public enum DesktopVirtualizationDayOfWeek + { + Monday = 0, + Tuesday = 1, + Wednesday = 2, + Thursday = 3, + Friday = 4, + Saturday = 5, + Sunday = 6, + } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("This struct is obsolete and will be removed in a future release", false)] public partial class DesktopVirtualizationMigrationProperties { public DesktopVirtualizationMigrationProperties() { } @@ -581,6 +738,7 @@ public ExpandMsixImage() { } public partial class HostPoolPatch : Azure.ResourceManager.Models.ResourceData { public HostPoolPatch() { } + public Azure.ResourceManager.DesktopVirtualization.Models.SessionHostAgentUpdatePatchProperties AgentUpdate { get { throw null; } set { } } public string CustomRdpProperty { get { throw null; } set { } } public string Description { get { throw null; } set { } } public string FriendlyName { get { throw null; } set { } } @@ -670,6 +828,14 @@ 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 MaintenanceWindowPatchProperties + { + public MaintenanceWindowPatchProperties() { } + public Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationDayOfWeek? DayOfWeek { get { throw null; } set { } } + public int? Hour { get { throw null; } set { } } + } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("This struct is obsolete and will be removed in a future release", false)] [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct MigrationOperation : System.IEquatable { @@ -776,12 +942,35 @@ public MsixPackagePatch() { } public static bool operator !=(Azure.ResourceManager.DesktopVirtualization.Models.RemoteApplicationType left, Azure.ResourceManager.DesktopVirtualization.Models.RemoteApplicationType right) { throw null; } public override string ToString() { throw null; } } + public partial class ScalingActionTime + { + public ScalingActionTime(int hour, int minute) { } + public int Hour { get { throw null; } set { } } + public int Minute { get { throw null; } set { } } + } public partial class ScalingHostPoolReference { public ScalingHostPoolReference() { } public Azure.Core.ResourceIdentifier HostPoolId { get { throw null; } set { } } public bool? IsScalingPlanEnabled { get { throw null; } set { } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ScalingHostPoolType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ScalingHostPoolType(string value) { throw null; } + public static Azure.ResourceManager.DesktopVirtualization.Models.ScalingHostPoolType Pooled { get { throw null; } } + public bool Equals(Azure.ResourceManager.DesktopVirtualization.Models.ScalingHostPoolType 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.ScalingHostPoolType left, Azure.ResourceManager.DesktopVirtualization.Models.ScalingHostPoolType right) { throw null; } + public static implicit operator Azure.ResourceManager.DesktopVirtualization.Models.ScalingHostPoolType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.DesktopVirtualization.Models.ScalingHostPoolType left, Azure.ResourceManager.DesktopVirtualization.Models.ScalingHostPoolType right) { throw null; } + public override string ToString() { throw null; } + } public partial class ScalingPlanPatch { public ScalingPlanPatch() { } @@ -789,32 +978,67 @@ public ScalingPlanPatch() { } public string ExclusionTag { get { throw null; } set { } } public string FriendlyName { get { throw null; } set { } } public System.Collections.Generic.IList HostPoolReferences { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [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 string TimeZone { get { throw null; } set { } } } + public partial class ScalingPlanPooledSchedulePatch : Azure.ResourceManager.Models.ResourceData + { + public ScalingPlanPooledSchedulePatch() { } + public System.Collections.Generic.IList DaysOfWeek { get { throw null; } } + public Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm? OffPeakLoadBalancingAlgorithm { get { throw null; } set { } } + public Azure.ResourceManager.DesktopVirtualization.Models.ScalingActionTime OffPeakStartTime { get { throw null; } set { } } + public Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm? PeakLoadBalancingAlgorithm { get { throw null; } set { } } + public Azure.ResourceManager.DesktopVirtualization.Models.ScalingActionTime PeakStartTime { get { throw null; } set { } } + public int? RampDownCapacityThresholdPct { get { throw null; } set { } } + public bool? RampDownForceLogoffUsers { get { throw null; } set { } } + public Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm? RampDownLoadBalancingAlgorithm { get { throw null; } set { } } + public int? RampDownMinimumHostsPct { get { throw null; } set { } } + public string RampDownNotificationMessage { get { throw null; } set { } } + public Azure.ResourceManager.DesktopVirtualization.Models.ScalingActionTime RampDownStartTime { get { throw null; } set { } } + public Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationStopHostsWhen? RampDownStopHostsWhen { get { throw null; } set { } } + public int? RampDownWaitTimeMinutes { get { throw null; } set { } } + public int? RampUpCapacityThresholdPct { get { throw null; } set { } } + public Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm? RampUpLoadBalancingAlgorithm { get { throw null; } set { } } + public int? RampUpMinimumHostsPct { get { throw null; } set { } } + public Azure.ResourceManager.DesktopVirtualization.Models.ScalingActionTime RampUpStartTime { get { throw null; } set { } } + } public partial class ScalingSchedule { public ScalingSchedule() { } public System.Collections.Generic.IList DaysOfWeek { get { throw null; } } public string Name { get { throw null; } set { } } public Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm? OffPeakLoadBalancingAlgorithm { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("This property is obsolete and might be removed in a future version, please use `OffPeakStartTime` instead.", false)] public System.DateTimeOffset? OffPeakStartOn { get { throw null; } set { } } + public Azure.ResourceManager.DesktopVirtualization.Models.ScalingActionTime OffPeakStartTime { get { throw null; } set { } } public Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm? PeakLoadBalancingAlgorithm { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("This property is obsolete and might be removed in a future version, please use `PeakStartTime` instead.", false)] public System.DateTimeOffset? PeakStartOn { get { throw null; } set { } } + public Azure.ResourceManager.DesktopVirtualization.Models.ScalingActionTime PeakStartTime { get { throw null; } set { } } public int? RampDownCapacityThresholdPct { get { throw null; } set { } } public bool? RampDownForceLogoffUsers { get { throw null; } set { } } public Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm? RampDownLoadBalancingAlgorithm { get { throw null; } set { } } public int? RampDownMinimumHostsPct { get { throw null; } set { } } public string RampDownNotificationMessage { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("This property is obsolete and might be removed in a future version, please use `RampDownStartTime` instead.", false)] public System.DateTimeOffset? RampDownStartOn { get { throw null; } set { } } + public Azure.ResourceManager.DesktopVirtualization.Models.ScalingActionTime RampDownStartTime { get { throw null; } set { } } public Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationStopHostsWhen? RampDownStopHostsWhen { get { throw null; } set { } } public int? RampDownWaitTimeMinutes { get { throw null; } set { } } public int? RampUpCapacityThresholdPct { get { throw null; } set { } } public Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm? RampUpLoadBalancingAlgorithm { get { throw null; } set { } } public int? RampUpMinimumHostsPct { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("This property is obsolete and might be removed in a future version, please use `RampUpStartTime` instead.", false)] public System.DateTimeOffset? RampUpStartOn { get { throw null; } set { } } + public Azure.ResourceManager.DesktopVirtualization.Models.ScalingActionTime RampUpStartTime { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ScalingScheduleDaysOfWeekItem : System.IEquatable @@ -839,6 +1063,40 @@ public ScalingSchedule() { } public static bool operator !=(Azure.ResourceManager.DesktopVirtualization.Models.ScalingScheduleDaysOfWeekItem left, Azure.ResourceManager.DesktopVirtualization.Models.ScalingScheduleDaysOfWeekItem right) { throw null; } public override string ToString() { throw null; } } + public partial class SessionHostAgentUpdatePatchProperties + { + public SessionHostAgentUpdatePatchProperties() { } + public bool? DoesUseSessionHostLocalTime { get { throw null; } set { } } + public System.Collections.Generic.IList MaintenanceWindows { get { throw null; } } + public string MaintenanceWindowTimeZone { get { throw null; } set { } } + public Azure.ResourceManager.DesktopVirtualization.Models.SessionHostComponentUpdateType? UpdateType { get { throw null; } set { } } + } + public partial class SessionHostAgentUpdateProperties + { + public SessionHostAgentUpdateProperties() { } + public bool? DoesUseSessionHostLocalTime { get { throw null; } set { } } + public System.Collections.Generic.IList MaintenanceWindows { get { throw null; } } + public string MaintenanceWindowTimeZone { get { throw null; } set { } } + public Azure.ResourceManager.DesktopVirtualization.Models.SessionHostComponentUpdateType? UpdateType { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct SessionHostComponentUpdateType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public SessionHostComponentUpdateType(string value) { throw null; } + public static Azure.ResourceManager.DesktopVirtualization.Models.SessionHostComponentUpdateType Default { get { throw null; } } + public static Azure.ResourceManager.DesktopVirtualization.Models.SessionHostComponentUpdateType Scheduled { get { throw null; } } + public bool Equals(Azure.ResourceManager.DesktopVirtualization.Models.SessionHostComponentUpdateType 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.SessionHostComponentUpdateType left, Azure.ResourceManager.DesktopVirtualization.Models.SessionHostComponentUpdateType right) { throw null; } + public static implicit operator Azure.ResourceManager.DesktopVirtualization.Models.SessionHostComponentUpdateType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.DesktopVirtualization.Models.SessionHostComponentUpdateType left, Azure.ResourceManager.DesktopVirtualization.Models.SessionHostComponentUpdateType right) { throw null; } + public override string ToString() { throw null; } + } public partial class SessionHostHealthCheckFailureDetails { internal SessionHostHealthCheckFailureDetails() { } @@ -918,11 +1176,18 @@ internal SessionHostHealthCheckReport() { } public static bool operator !=(Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm left, Azure.ResourceManager.DesktopVirtualization.Models.SessionHostLoadBalancingAlgorithm right) { throw null; } public override string ToString() { throw null; } } + public partial class SessionHostMaintenanceWindowProperties + { + public SessionHostMaintenanceWindowProperties() { } + public Azure.ResourceManager.DesktopVirtualization.Models.DesktopVirtualizationDayOfWeek? DayOfWeek { get { throw null; } set { } } + public int? Hour { get { throw null; } set { } } + } public partial class SessionHostPatch : Azure.ResourceManager.Models.ResourceData { public SessionHostPatch() { } public bool? AllowNewSession { get { throw null; } set { } } public string AssignedUser { get { throw null; } set { } } + public string FriendlyName { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct SessionHostStatus : System.IEquatable 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 7a1f60253b0d..c4d474e3b61c 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 @@ -24,7 +24,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/2021-07-12/examples/HostPool_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -58,7 +58,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/2021-07-12/examples/HostPool_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -88,7 +88,7 @@ public async Task Exists_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/2021-07-12/examples/HostPool_Create.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -126,10 +126,23 @@ public async Task CreateOrUpdate_HostPoolCreate() SsoClientSecretKeyVaultPath = "https://keyvault/secret", SsoSecretType = HostPoolSsoSecretType.SharedKey, StartVmOnConnect = false, - MigrationRequest = new DesktopVirtualizationMigrationProperties() + AgentUpdate = new SessionHostAgentUpdateProperties() { - Operation = MigrationOperation.Start, - MigrationPath = "TenantGroups/{defaultV1TenantGroup.Name}/Tenants/{defaultV1Tenant.Name}/HostPools/{sessionHostPool.Name}", + UpdateType = SessionHostComponentUpdateType.Scheduled, + DoesUseSessionHostLocalTime = false, + MaintenanceWindowTimeZone = "Alaskan Standard Time", + MaintenanceWindows = +{ +new SessionHostMaintenanceWindowProperties() +{ +Hour = 7, +DayOfWeek = DesktopVirtualizationDayOfWeek.Friday, +},new SessionHostMaintenanceWindowProperties() +{ +Hour = 8, +DayOfWeek = DesktopVirtualizationDayOfWeek.Saturday, +} +}, }, Tags = { @@ -152,7 +165,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/2021-07-12/examples/HostPool_ListByResourceGroup.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -171,7 +184,10 @@ public async Task GetAll_HostPoolListByResourceGroup() HostPoolCollection collection = resourceGroupResource.GetHostPools(); // invoke the operation and iterate over the result - await foreach (HostPoolResource item in collection.GetAllAsync()) + int? pageSize = 10; + bool? isDescending = true; + int? initialSkip = 0; + await foreach (HostPoolResource item in collection.GetAllAsync(pageSize: pageSize, isDescending: isDescending, initialSkip: initialSkip)) { // 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 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 6ca70b4237fa..4d48c761341f 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 @@ -19,12 +19,12 @@ namespace Azure.ResourceManager.DesktopVirtualization.Samples { public partial class Sample_HostPoolResource { - // UserSession_SendMessage_Post + // ScalingPlan_ListByHostPool [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetScalingPlans_UserSessionSendMessagePost() + public async Task GetScalingPlans_ScalingPlanListByHostPool() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2021-07-12/examples/ScalingPlan_ListByHostPool.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -41,7 +41,10 @@ public async Task GetScalingPlans_UserSessionSendMessagePost() HostPoolResource hostPool = client.GetHostPoolResource(hostPoolResourceId); // invoke the operation and iterate over the result - await foreach (ScalingPlanResource item in hostPool.GetScalingPlansAsync()) + int? pageSize = 10; + bool? isDescending = true; + int? initialSkip = 0; + await foreach (ScalingPlanResource item in hostPool.GetScalingPlansAsync(pageSize: pageSize, isDescending: isDescending, initialSkip: initialSkip)) { // 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 @@ -58,7 +61,7 @@ public async Task GetScalingPlans_UserSessionSendMessagePost() [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/2021-07-12/examples/HostPool_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -89,7 +92,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/2021-07-12/examples/HostPool_Delete.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -117,7 +120,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/2021-07-12/examples/HostPool_Update.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -158,6 +161,24 @@ public async Task Update_HostPoolUpdate() SsoClientSecretKeyVaultPath = "https://keyvault/secret", SsoSecretType = HostPoolSsoSecretType.SharedKey, StartVmOnConnect = false, + AgentUpdate = new SessionHostAgentUpdatePatchProperties() + { + UpdateType = SessionHostComponentUpdateType.Scheduled, + DoesUseSessionHostLocalTime = false, + MaintenanceWindowTimeZone = "Alaskan Standard Time", + MaintenanceWindows = +{ +new MaintenanceWindowPatchProperties() +{ +Hour = 7, +DayOfWeek = DesktopVirtualizationDayOfWeek.Friday, +},new MaintenanceWindowPatchProperties() +{ +Hour = 8, +DayOfWeek = DesktopVirtualizationDayOfWeek.Saturday, +} +}, + }, }; HostPoolResource result = await hostPool.UpdateAsync(patch); @@ -173,7 +194,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/2021-07-12/examples/HostPool_List.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -188,7 +209,10 @@ public async Task GetHostPools_HostPoolList() SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); // invoke the operation and iterate over the result - await foreach (HostPoolResource item in subscriptionResource.GetHostPoolsAsync()) + int? pageSize = 10; + bool? isDescending = true; + int? initialSkip = 0; + await foreach (HostPoolResource item in subscriptionResource.GetHostPoolsAsync(pageSize: pageSize, isDescending: isDescending, initialSkip: initialSkip)) { // 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 @@ -205,7 +229,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/2021-07-12/examples/HostPools_RetrieveRegistrationToken_Post.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -232,7 +256,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/2021-07-12/examples/UserSession_ListByHostPool.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -250,7 +274,10 @@ public async Task GetUserSessions_UserSessionListByHostPool() // invoke the operation and iterate over the result string filter = "userPrincipalName eq 'user1@microsoft.com' and state eq 'active'"; - await foreach (UserSessionResource item in hostPool.GetUserSessionsAsync(filter: filter)) + int? pageSize = 10; + bool? isDescending = true; + int? initialSkip = 0; + await foreach (UserSessionResource item in hostPool.GetUserSessionsAsync(filter: filter, pageSize: pageSize, isDescending: isDescending, initialSkip: initialSkip)) { // 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 @@ -267,7 +294,7 @@ public async Task GetUserSessions_UserSessionListByHostPool() [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/2021-07-12/examples/MsixImage_Expand_Post.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 5eca8874b0fd..234e264f49cb 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 @@ -23,7 +23,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/2021-07-12/examples/MsixPackage_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -58,7 +58,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/2021-07-12/examples/MsixPackage_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -89,7 +89,7 @@ public async Task Exists_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/2021-07-12/examples/MsixPackage_Create.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -159,7 +159,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/2021-07-12/examples/MsixPackage_List.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -179,7 +179,10 @@ public async Task GetAll_MSIXPackageList() MsixPackageCollection collection = hostPool.GetMsixPackages(); // invoke the operation and iterate over the result - await foreach (MsixPackageResource item in collection.GetAllAsync()) + int? pageSize = 10; + bool? isDescending = true; + int? initialSkip = 0; + await foreach (MsixPackageResource item in collection.GetAllAsync(pageSize: pageSize, isDescending: isDescending, initialSkip: initialSkip)) { // 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 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 10410097e2ef..45b134f5f24a 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 @@ -23,7 +23,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/2021-07-12/examples/MsixPackage_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 Delete_MSIXPackageDelete() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2021-07-12/examples/MsixPackage_Delete.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -83,7 +83,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/2021-07-12/examples/MsixPackage_Update.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 7784f245c97d..27f1b7788b6a 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 @@ -24,7 +24,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/2021-07-12/examples/ScalingPlan_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -58,7 +58,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/2021-07-12/examples/ScalingPlan_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -88,7 +88,7 @@ public async Task Exists_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/2021-07-12/examples/ScalingPlan_Create.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -108,12 +108,11 @@ public async Task CreateOrUpdate_ScalingPlansCreate() // invoke the operation string scalingPlanName = "scalingPlan1"; - ScalingPlanData data = new ScalingPlanData(new AzureLocation("centralus")) + ScalingPlanData data = new ScalingPlanData(new AzureLocation("centralus"), "Central Standard Time") { - Description = "des1", - FriendlyName = "friendly", - TimeZone = "", - HostPoolType = HostPoolType.Personal, + Description = "Description of Scaling Plan", + FriendlyName = "Scaling Plan 1", + ScalingHostPoolType = ScalingHostPoolType.Pooled, ExclusionTag = "value", Schedules = { @@ -124,20 +123,20 @@ public async Task CreateOrUpdate_ScalingPlansCreate() { ScalingScheduleDaysOfWeekItem.Monday,ScalingScheduleDaysOfWeekItem.Tuesday,ScalingScheduleDaysOfWeekItem.Wednesday,ScalingScheduleDaysOfWeekItem.Thursday,ScalingScheduleDaysOfWeekItem.Friday }, -RampUpStartOn = DateTimeOffset.Parse("2020-11-10T06:00:00.000Z"), +RampUpStartTime = new ScalingActionTime(6,0), RampUpLoadBalancingAlgorithm = SessionHostLoadBalancingAlgorithm.DepthFirst, RampUpMinimumHostsPct = 20, RampUpCapacityThresholdPct = 80, -PeakStartOn = DateTimeOffset.Parse("2020-11-10T08:00:00.000Z"), +PeakStartTime = new ScalingActionTime(8,0), PeakLoadBalancingAlgorithm = SessionHostLoadBalancingAlgorithm.BreadthFirst, -RampDownStartOn = DateTimeOffset.Parse("2020-11-10T18:00:00.000Z"), +RampDownStartTime = new ScalingActionTime(18,0), RampDownLoadBalancingAlgorithm = SessionHostLoadBalancingAlgorithm.DepthFirst, RampDownMinimumHostsPct = 20, RampDownCapacityThresholdPct = 50, RampDownForceLogoffUsers = true, RampDownWaitTimeMinutes = 30, RampDownNotificationMessage = "message", -OffPeakStartOn = DateTimeOffset.Parse("2020-11-10T20:00:00.000Z"), +OffPeakStartTime = new ScalingActionTime(20,0), OffPeakLoadBalancingAlgorithm = SessionHostLoadBalancingAlgorithm.DepthFirst, } }, @@ -170,7 +169,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/2021-07-12/examples/ScalingPlan_ListByResourceGroup.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -189,7 +188,10 @@ public async Task GetAll_ScalingPlansListByResourceGroup() ScalingPlanCollection collection = resourceGroupResource.GetScalingPlans(); // invoke the operation and iterate over the result - await foreach (ScalingPlanResource item in collection.GetAllAsync()) + int? pageSize = 10; + bool? isDescending = true; + int? initialSkip = 0; + await foreach (ScalingPlanResource item in collection.GetAllAsync(pageSize: pageSize, isDescending: isDescending, initialSkip: initialSkip)) { // 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 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 new file mode 100644 index 000000000000..5759c6cbe554 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPooledScheduleCollection.cs @@ -0,0 +1,185 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.DesktopVirtualization; +using Azure.ResourceManager.DesktopVirtualization.Models; + +namespace Azure.ResourceManager.DesktopVirtualization.Samples +{ + public partial class Sample_ScalingPlanPooledScheduleCollection + { + // ScalingPlanPooledSchedules_Get + [NUnit.Framework.Test] + [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/2022-09-09/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 + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ScalingPlanResource created on azure + // for more information of creating ScalingPlanResource, please refer to the document of ScalingPlanResource + string subscriptionId = "daefabc0-95b4-48b3-b645-8a753a63c4fa"; + string resourceGroupName = "resourceGroup1"; + string scalingPlanName = "scalingPlan1"; + ResourceIdentifier scalingPlanResourceId = ScalingPlanResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, scalingPlanName); + ScalingPlanResource scalingPlan = client.GetScalingPlanResource(scalingPlanResourceId); + + // get the collection of this ScalingPlanPooledScheduleResource + ScalingPlanPooledScheduleCollection collection = scalingPlan.GetScalingPlanPooledSchedules(); + + // invoke the operation + string scalingPlanScheduleName = "scalingPlanScheduleWeekdays1"; + ScalingPlanPooledScheduleResource result = await collection.GetAsync(scalingPlanScheduleName); + + // 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 + ScalingPlanPooledScheduleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // ScalingPlanPooledSchedules_Get + [NUnit.Framework.Test] + [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/2022-09-09/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 + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ScalingPlanResource created on azure + // for more information of creating ScalingPlanResource, please refer to the document of ScalingPlanResource + string subscriptionId = "daefabc0-95b4-48b3-b645-8a753a63c4fa"; + string resourceGroupName = "resourceGroup1"; + string scalingPlanName = "scalingPlan1"; + ResourceIdentifier scalingPlanResourceId = ScalingPlanResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, scalingPlanName); + ScalingPlanResource scalingPlan = client.GetScalingPlanResource(scalingPlanResourceId); + + // get the collection of this ScalingPlanPooledScheduleResource + ScalingPlanPooledScheduleCollection collection = scalingPlan.GetScalingPlanPooledSchedules(); + + // invoke the operation + string scalingPlanScheduleName = "scalingPlanScheduleWeekdays1"; + bool result = await collection.ExistsAsync(scalingPlanScheduleName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // ScalingPlanPooledSchedules_Create + [NUnit.Framework.Test] + [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/2022-09-09/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 + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ScalingPlanResource created on azure + // for more information of creating ScalingPlanResource, please refer to the document of ScalingPlanResource + string subscriptionId = "daefabc0-95b4-48b3-b645-8a753a63c4fa"; + string resourceGroupName = "resourceGroup1"; + string scalingPlanName = "scalingPlan1"; + ResourceIdentifier scalingPlanResourceId = ScalingPlanResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, scalingPlanName); + ScalingPlanResource scalingPlan = client.GetScalingPlanResource(scalingPlanResourceId); + + // get the collection of this ScalingPlanPooledScheduleResource + ScalingPlanPooledScheduleCollection collection = scalingPlan.GetScalingPlanPooledSchedules(); + + // invoke the operation + string scalingPlanScheduleName = "scalingPlanScheduleWeekdays1"; + ScalingPlanPooledScheduleData data = new ScalingPlanPooledScheduleData() + { + DaysOfWeek = +{ +DesktopVirtualizationDayOfWeek.Monday,DesktopVirtualizationDayOfWeek.Tuesday,DesktopVirtualizationDayOfWeek.Wednesday,DesktopVirtualizationDayOfWeek.Thursday,DesktopVirtualizationDayOfWeek.Friday +}, + RampUpStartTime = new ScalingActionTime(6, 0), + RampUpLoadBalancingAlgorithm = SessionHostLoadBalancingAlgorithm.DepthFirst, + RampUpMinimumHostsPct = 20, + RampUpCapacityThresholdPct = 80, + PeakStartTime = new ScalingActionTime(8, 0), + PeakLoadBalancingAlgorithm = SessionHostLoadBalancingAlgorithm.BreadthFirst, + RampDownStartTime = new ScalingActionTime(18, 0), + RampDownLoadBalancingAlgorithm = SessionHostLoadBalancingAlgorithm.DepthFirst, + RampDownMinimumHostsPct = 20, + RampDownCapacityThresholdPct = 50, + RampDownForceLogoffUsers = true, + RampDownWaitTimeMinutes = 30, + RampDownNotificationMessage = "message", + OffPeakStartTime = new ScalingActionTime(20, 0), + OffPeakLoadBalancingAlgorithm = SessionHostLoadBalancingAlgorithm.DepthFirst, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, scalingPlanScheduleName, data); + ScalingPlanPooledScheduleResource 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 + ScalingPlanPooledScheduleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // ScalingPlanPooledSchedules_List + [NUnit.Framework.Test] + [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/2022-09-09/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 + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ScalingPlanResource created on azure + // for more information of creating ScalingPlanResource, please refer to the document of ScalingPlanResource + string subscriptionId = "daefabc0-95b4-48b3-b645-8a753a63c4fa"; + string resourceGroupName = "resourceGroup1"; + string scalingPlanName = "scalingPlan1"; + ResourceIdentifier scalingPlanResourceId = ScalingPlanResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, scalingPlanName); + ScalingPlanResource scalingPlan = client.GetScalingPlanResource(scalingPlanResourceId); + + // get the collection of this ScalingPlanPooledScheduleResource + ScalingPlanPooledScheduleCollection collection = scalingPlan.GetScalingPlanPooledSchedules(); + + // invoke the operation and iterate over the result + int? pageSize = 10; + bool? isDescending = true; + int? initialSkip = 0; + await foreach (ScalingPlanPooledScheduleResource item in collection.GetAllAsync(pageSize: pageSize, isDescending: isDescending, initialSkip: initialSkip)) + { + // 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 + ScalingPlanPooledScheduleData 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_ScalingPlanPooledScheduleResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPooledScheduleResource.cs new file mode 100644 index 000000000000..376385e37729 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPooledScheduleResource.cs @@ -0,0 +1,126 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.DesktopVirtualization; +using Azure.ResourceManager.DesktopVirtualization.Models; + +namespace Azure.ResourceManager.DesktopVirtualization.Samples +{ + public partial class Sample_ScalingPlanPooledScheduleResource + { + // ScalingPlanPooledSchedules_Get + [NUnit.Framework.Test] + [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/2022-09-09/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 + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ScalingPlanPooledScheduleResource created on azure + // for more information of creating ScalingPlanPooledScheduleResource, please refer to the document of ScalingPlanPooledScheduleResource + string subscriptionId = "daefabc0-95b4-48b3-b645-8a753a63c4fa"; + string resourceGroupName = "resourceGroup1"; + string scalingPlanName = "scalingPlan1"; + string scalingPlanScheduleName = "scalingPlanScheduleWeekdays1"; + ResourceIdentifier scalingPlanPooledScheduleResourceId = ScalingPlanPooledScheduleResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, scalingPlanName, scalingPlanScheduleName); + ScalingPlanPooledScheduleResource scalingPlanPooledSchedule = client.GetScalingPlanPooledScheduleResource(scalingPlanPooledScheduleResourceId); + + // invoke the operation + ScalingPlanPooledScheduleResource result = await scalingPlanPooledSchedule.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 + ScalingPlanPooledScheduleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // ScalingPlanPooledSchedules_Delete + [NUnit.Framework.Test] + [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/2022-09-09/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 + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ScalingPlanPooledScheduleResource created on azure + // for more information of creating ScalingPlanPooledScheduleResource, please refer to the document of ScalingPlanPooledScheduleResource + string subscriptionId = "daefabc0-95b4-48b3-b645-8a753a63c4fa"; + string resourceGroupName = "resourceGroup1"; + string scalingPlanName = "scalingPlan1"; + string scalingPlanScheduleName = "scalingPlanScheduleWeekdays1"; + ResourceIdentifier scalingPlanPooledScheduleResourceId = ScalingPlanPooledScheduleResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, scalingPlanName, scalingPlanScheduleName); + ScalingPlanPooledScheduleResource scalingPlanPooledSchedule = client.GetScalingPlanPooledScheduleResource(scalingPlanPooledScheduleResourceId); + + // invoke the operation + await scalingPlanPooledSchedule.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + + // ScalingPlanPooledSchedules_Update + [NUnit.Framework.Test] + [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/2022-09-09/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 + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ScalingPlanPooledScheduleResource created on azure + // for more information of creating ScalingPlanPooledScheduleResource, please refer to the document of ScalingPlanPooledScheduleResource + string subscriptionId = "daefabc0-95b4-48b3-b645-8a753a63c4fa"; + string resourceGroupName = "resourceGroup1"; + string scalingPlanName = "scalingPlan1"; + string scalingPlanScheduleName = "scalingPlanScheduleWeekdays1"; + ResourceIdentifier scalingPlanPooledScheduleResourceId = ScalingPlanPooledScheduleResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, scalingPlanName, scalingPlanScheduleName); + ScalingPlanPooledScheduleResource scalingPlanPooledSchedule = client.GetScalingPlanPooledScheduleResource(scalingPlanPooledScheduleResourceId); + + // invoke the operation + ScalingPlanPooledSchedulePatch patch = new ScalingPlanPooledSchedulePatch() + { + DaysOfWeek = +{ +DesktopVirtualizationDayOfWeek.Monday,DesktopVirtualizationDayOfWeek.Tuesday,DesktopVirtualizationDayOfWeek.Wednesday,DesktopVirtualizationDayOfWeek.Thursday,DesktopVirtualizationDayOfWeek.Friday +}, + RampUpLoadBalancingAlgorithm = SessionHostLoadBalancingAlgorithm.DepthFirst, + RampUpCapacityThresholdPct = 80, + PeakStartTime = new ScalingActionTime(8, 0), + RampDownLoadBalancingAlgorithm = SessionHostLoadBalancingAlgorithm.DepthFirst, + RampDownMinimumHostsPct = 20, + RampDownWaitTimeMinutes = 30, + }; + ScalingPlanPooledScheduleResource result = await scalingPlanPooledSchedule.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 + ScalingPlanPooledScheduleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} 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 61da81580586..5c80f370d67b 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 @@ -24,7 +24,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/2021-07-12/examples/ScalingPlan_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 Delete_ScalingPlansDelete() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2021-07-12/examples/ScalingPlan_Delete.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -82,7 +82,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/2021-07-12/examples/ScalingPlan_Update.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -114,7 +114,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/2021-07-12/examples/ScalingPlan_ListBySubscription.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -129,7 +129,10 @@ public async Task GetScalingPlans_ScalingPlansListBySubscription() SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); // invoke the operation and iterate over the result - await foreach (ScalingPlanResource item in subscriptionResource.GetScalingPlansAsync()) + int? pageSize = 10; + bool? isDescending = true; + int? initialSkip = 0; + await foreach (ScalingPlanResource item in subscriptionResource.GetScalingPlansAsync(pageSize: pageSize, isDescending: isDescending, initialSkip: initialSkip)) { // 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 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 c6d16cefe1b7..807b65708e1e 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 @@ -21,7 +21,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/2021-07-12/examples/SessionHost_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -56,7 +56,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/2021-07-12/examples/SessionHost_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -87,7 +87,7 @@ public async Task Exists_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/2021-07-12/examples/SessionHost_List.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -107,7 +107,10 @@ public async Task GetAll_SessionHostList() SessionHostCollection collection = hostPool.GetSessionHosts(); // invoke the operation and iterate over the result - await foreach (SessionHostResource item in collection.GetAllAsync()) + int? pageSize = 10; + bool? isDescending = true; + int? initialSkip = 0; + await foreach (SessionHostResource item in collection.GetAllAsync(pageSize: pageSize, isDescending: isDescending, initialSkip: initialSkip)) { // 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 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 c7daf8de68f7..9a8b73fda19c 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 @@ -23,7 +23,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/2021-07-12/examples/SessionHost_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -55,7 +55,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/2021-07-12/examples/SessionHost_Delete.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -84,7 +84,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/2021-07-12/examples/SessionHost_Update.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -106,8 +106,10 @@ public async Task Update_SessionHostUpdate() { AllowNewSession = true, AssignedUser = "user1@microsoft.com", + FriendlyName = "friendly", }; - SessionHostResource result = await sessionHost.UpdateAsync(patch); + bool? force = true; + SessionHostResource result = await sessionHost.UpdateAsync(patch, force: force); // 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 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 29aca125df20..8d59c5f2dcd2 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 @@ -21,7 +21,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/2021-07-12/examples/UserSession_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -57,7 +57,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/2021-07-12/examples/UserSession_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -89,7 +89,7 @@ public async Task Exists_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/2021-07-12/examples/UserSession_List.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -110,7 +110,10 @@ public async Task GetAll_UserSessionList() UserSessionCollection collection = sessionHost.GetUserSessions(); // invoke the operation and iterate over the result - await foreach (UserSessionResource item in collection.GetAllAsync()) + int? pageSize = 10; + bool? isDescending = true; + int? initialSkip = 0; + await foreach (UserSessionResource item in collection.GetAllAsync(pageSize: pageSize, isDescending: isDescending, initialSkip: initialSkip)) { // 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 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 b3297ab174e8..967058ce6e1c 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 @@ -23,7 +23,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/2021-07-12/examples/UserSession_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -56,7 +56,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/2021-07-12/examples/UserSession_Delete.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -86,7 +86,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/2021-07-12/examples/UserSession_Disconnect_Post.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -115,7 +115,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/2021-07-12/examples/UserSession_SendMessage_Post.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 fc6629eda188..abc0457865eb 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 @@ -23,7 +23,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/2021-07-12/examples/Application_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -58,7 +58,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/2021-07-12/examples/Application_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -89,7 +89,7 @@ public async Task Exists_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/2021-07-12/examples/Application_Create.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -135,7 +135,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/2021-07-12/examples/Application_List.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -155,7 +155,10 @@ public async Task GetAll_ApplicationsList() VirtualApplicationCollection collection = virtualApplicationGroup.GetVirtualApplications(); // invoke the operation and iterate over the result - await foreach (VirtualApplicationResource item in collection.GetAllAsync()) + int? pageSize = 10; + bool? isDescending = true; + int? initialSkip = 0; + await foreach (VirtualApplicationResource item in collection.GetAllAsync(pageSize: pageSize, isDescending: isDescending, initialSkip: initialSkip)) { // 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 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 2ee323ff33b2..f31aab54caac 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 @@ -24,7 +24,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/2021-07-12/examples/ApplicationGroup_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -58,7 +58,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/2021-07-12/examples/ApplicationGroup_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -88,7 +88,7 @@ public async Task Exists_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/2021-07-12/examples/ApplicationGroup_Create.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -112,11 +112,6 @@ public async Task CreateOrUpdate_ApplicationGroupCreate() { Description = "des1", FriendlyName = "friendly", - MigrationRequest = new DesktopVirtualizationMigrationProperties() - { - Operation = MigrationOperation.Start, - MigrationPath = "TenantGroups/{defaultV1TenantGroup.Name}/Tenants/{defaultV1Tenant.Name}/HostPools/{sessionHostPool.Name}", - }, Tags = { ["tag1"] = "value1", @@ -138,7 +133,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/2021-07-12/examples/ApplicationGroup_ListByResourceGroup.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -158,7 +153,10 @@ public async Task GetAll_ApplicationGroupListByResourceGroup() // invoke the operation and iterate over the result string filter = "applicationGroupType eq 'RailApplication'"; - await foreach (VirtualApplicationGroupResource item in collection.GetAllAsync(filter: filter)) + int? pageSize = 10; + bool? isDescending = true; + int? initialSkip = 0; + await foreach (VirtualApplicationGroupResource item in collection.GetAllAsync(filter: filter, pageSize: pageSize, isDescending: isDescending, initialSkip: initialSkip)) { // 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 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 db67b5bb0567..297fe29e833e 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 @@ -24,7 +24,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/2021-07-12/examples/ApplicationGroup_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 Delete_ApplicationGroupDelete() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2021-07-12/examples/ApplicationGroup_Delete.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -82,7 +82,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/2021-07-12/examples/ApplicationGroup_Update.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -123,7 +123,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/2021-07-12/examples/ApplicationGroup_ListBySubscription.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -156,7 +156,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/2021-07-12/examples/StartMenuItem_List.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 145ece1e3b1d..f1d35f65c0a6 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 @@ -23,7 +23,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/2021-07-12/examples/Application_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 Delete_ApplicationDelete() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2021-07-12/examples/Application_Delete.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -83,7 +83,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/2021-07-12/examples/Application_Update.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 68c46b483692..4db7f002e1f5 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 @@ -21,7 +21,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/2021-07-12/examples/Desktop_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -56,7 +56,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/2021-07-12/examples/Desktop_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -87,7 +87,7 @@ public async Task Exists_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/2021-07-12/examples/Desktop_List.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -107,7 +107,10 @@ public async Task GetAll_DesktopList() VirtualDesktopCollection collection = virtualApplicationGroup.GetVirtualDesktops(); // invoke the operation and iterate over the result - await foreach (VirtualDesktopResource item in collection.GetAllAsync()) + int? pageSize = 10; + bool? isDescending = true; + int? initialSkip = 0; + await foreach (VirtualDesktopResource item in collection.GetAllAsync(pageSize: pageSize, isDescending: isDescending, initialSkip: initialSkip)) { // 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 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 34279eb61f8d..c72d16c107ef 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 @@ -22,7 +22,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/2021-07-12/examples/Desktop_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 Update_DesktopUpdate() { - // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2021-07-12/examples/Desktop_Update.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 96f1210a281b..062c21cad200 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 @@ -23,7 +23,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/2021-07-12/examples/Workspace_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -57,7 +57,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/2021-07-12/examples/Workspace_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -87,7 +87,7 @@ public async Task Exists_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/2021-07-12/examples/Workspace_Create.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -132,7 +132,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/2021-07-12/examples/Workspace_ListByResourceGroup.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -151,7 +151,10 @@ public async Task GetAll_WorkspaceListByResourceGroup() VirtualWorkspaceCollection collection = resourceGroupResource.GetVirtualWorkspaces(); // invoke the operation and iterate over the result - await foreach (VirtualWorkspaceResource item in collection.GetAllAsync()) + int? pageSize = 10; + bool? isDescending = true; + int? initialSkip = 0; + await foreach (VirtualWorkspaceResource item in collection.GetAllAsync(pageSize: pageSize, isDescending: isDescending, initialSkip: initialSkip)) { // 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 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 b77d61badf5f..514f076356fc 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 @@ -24,7 +24,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/2021-07-12/examples/Workspace_Get.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -55,7 +55,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/2021-07-12/examples/Workspace_Delete.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -82,7 +82,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/2021-07-12/examples/Workspace_Update.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 @@ -123,7 +123,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/2021-07-12/examples/Workspace_ListBySubscription.json + // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/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 diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Azure.ResourceManager.DesktopVirtualization.csproj b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Azure.ResourceManager.DesktopVirtualization.csproj index d1437b603221..78b3eecf2d30 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Azure.ResourceManager.DesktopVirtualization.csproj +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Azure.ResourceManager.DesktopVirtualization.csproj @@ -1,6 +1,6 @@ - 1.1.0-beta.1 + 1.1.0 1.0.1 Azure.ResourceManager.DesktopVirtualization diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/Extensions/DesktopVirtualizationExtensions.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/Extensions/DesktopVirtualizationExtensions.cs new file mode 100644 index 000000000000..57be54eac875 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/Extensions/DesktopVirtualizationExtensions.cs @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.ComponentModel; +using System.Threading; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + /// A class to add extension methods to Azure.ResourceManager.DesktopVirtualization. + public static partial class DesktopVirtualizationExtensions + { + /// + /// List hostPools in subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/hostPools + /// + /// + /// Operation Id + /// HostPools_List + /// + /// + /// + /// The instance the method will execute against. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public static AsyncPageable GetHostPoolsAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken) => GetHostPoolsAsync(subscriptionResource, null, null, null, cancellationToken ); + + /// + /// List hostPools in subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/hostPools + /// + /// + /// Operation Id + /// HostPools_List + /// + /// + /// + /// The instance the method will execute against. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public static Pageable GetHostPools(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken) => GetHostPools(subscriptionResource, null, null, null, cancellationToken); + + /// + /// List scaling plans in subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/scalingPlans + /// + /// + /// Operation Id + /// ScalingPlans_ListBySubscription + /// + /// + /// + /// The instance the method will execute against. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public static AsyncPageable GetScalingPlansAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken ) => GetScalingPlansAsync(subscriptionResource, null, null, null, cancellationToken); + + /// + /// List scaling plans in subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/scalingPlans + /// + /// + /// Operation Id + /// ScalingPlans_ListBySubscription + /// + /// + /// + /// The instance the method will execute against. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public static Pageable GetScalingPlans(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken) => GetScalingPlans(subscriptionResource, null, null, null, cancellationToken); + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/HostPoolCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/HostPoolCollection.cs new file mode 100644 index 000000000000..064ed6b49b80 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/HostPoolCollection.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.Collections.Generic; +using System.ComponentModel; +using System.Threading; +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 a instance call the GetHostPools method from an instance of . + /// + public partial class HostPoolCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + /// + /// List hostPools. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools + /// + /// + /// Operation Id + /// HostPools_ListByResourceGroup + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken) => GetAllAsync(null, null, null, cancellationToken); + + /// + /// List hostPools. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools + /// + /// + /// Operation Id + /// HostPools_ListByResourceGroup + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Pageable GetAll(CancellationToken cancellationToken) => GetAll(null, null, null, cancellationToken); + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/HostPoolData.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/HostPoolData.cs new file mode 100644 index 000000000000..a292f1b10d20 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/HostPoolData.cs @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.ComponentModel; +using Azure.ResourceManager.DesktopVirtualization.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + /// + /// A class representing the HostPool data model. + /// Represents a HostPool definition. + /// + public partial class HostPoolData : TrackedResourceData + { + /// The type of operation for migration. + [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This property is obsolete and might be removed in a future version", false)] + public DesktopVirtualizationMigrationProperties MigrationRequest { get; set; } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/HostPoolResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/HostPoolResource.cs new file mode 100644 index 000000000000..ee175a8539b6 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/HostPoolResource.cs @@ -0,0 +1,93 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.ComponentModel; +using System.Threading; +using Azure.Core; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + /// + /// A Class representing a HostPool along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetHostPoolResource method. + /// Otherwise you can get one from its parent resource using the GetHostPool method. + /// + public partial class HostPoolResource : ArmResource + { + /// + /// List scaling plan associated with hostpool. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/scalingPlans + /// + /// + /// Operation Id + /// ScalingPlans_ListByHostPool + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual AsyncPageable GetScalingPlansAsync(CancellationToken cancellationToken) => GetScalingPlansAsync(null, null, null, cancellationToken); + + /// + /// List scaling plan associated with hostpool. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/scalingPlans + /// + /// + /// Operation Id + /// ScalingPlans_ListByHostPool + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Pageable GetScalingPlans(CancellationToken cancellationToken) => GetScalingPlans(null, null, null, cancellationToken); + + /// + /// List userSessions. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/userSessions + /// + /// + /// Operation Id + /// UserSessions_ListByHostPool + /// + /// + /// + /// OData filter expression. Valid properties for filtering are userprincipalname and sessionstate. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetUserSessionsAsync(string filter, CancellationToken cancellationToken) => GetUserSessionsAsync(filter, null, null, null, cancellationToken); + + /// + /// List userSessions. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/userSessions + /// + /// + /// Operation Id + /// UserSessions_ListByHostPool + /// + /// + /// + /// OData filter expression. Valid properties for filtering are userprincipalname and sessionstate. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetUserSessions(string filter, CancellationToken cancellationToken) => GetUserSessions(filter, null, null, null, cancellationToken); + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationMigrationProperties.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/Models/DesktopVirtualizationMigrationProperties.cs similarity index 87% rename from sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationMigrationProperties.cs rename to sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/Models/DesktopVirtualizationMigrationProperties.cs index 19a40a9b2697..ded8d813bc73 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationMigrationProperties.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/Models/DesktopVirtualizationMigrationProperties.cs @@ -1,13 +1,16 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable +using System; +using System.ComponentModel; + namespace Azure.ResourceManager.DesktopVirtualization.Models { /// Properties for arm migration. + [Obsolete("This struct is obsolete and will be removed in a future release", false)] + [EditorBrowsable(EditorBrowsableState.Never)] public partial class DesktopVirtualizationMigrationProperties { /// Initializes a new instance of DesktopVirtualizationMigrationProperties. diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/MigrationOperation.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/Models/MigrationOperation.cs similarity index 95% rename from sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/MigrationOperation.cs rename to sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/Models/MigrationOperation.cs index dc19b2a504a7..9f6b9d43c243 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/MigrationOperation.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/Models/MigrationOperation.cs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable using System; @@ -11,6 +9,8 @@ namespace Azure.ResourceManager.DesktopVirtualization.Models { /// The type of operation for migration. + [Obsolete("This struct is obsolete and will be removed in a future release", false)] + [EditorBrowsable(EditorBrowsableState.Never)] public readonly partial struct MigrationOperation : IEquatable { private readonly string _value; diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/Models/ScalingPlanPatch.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/Models/ScalingPlanPatch.cs new file mode 100644 index 000000000000..c1c053de47dd --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/Models/ScalingPlanPatch.cs @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + /// Scaling plan properties that can be patched. + public partial class ScalingPlanPatch + { + /// HostPool type for desktop. + [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This property is obsolete and might be removed in a future version", false)] + public HostPoolType? HostPoolType { get; set; } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/Models/ScalingSchedule.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/Models/ScalingSchedule.cs new file mode 100644 index 000000000000..f5bc89ab6ed7 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/Models/ScalingSchedule.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + /// Scaling plan schedule. + public partial class ScalingSchedule + { + /// Starting time for ramp up period. + [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This property is obsolete and might be removed in a future version, please use `RampUpStartTime` instead.", false)] + public DateTimeOffset? RampUpStartOn + { + get => new DateTimeOffset(0, 0, 0, RampUpStartTime.Hour, RampUpStartTime.Minute, 0, new TimeSpan()); + set + { + RampUpStartTime.Hour = value.Value.Hour; + RampUpStartTime.Minute = value.Value.Minute; + } + } + /// Starting time for peak period. + [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This property is obsolete and might be removed in a future version, please use `PeakStartTime` instead.", false)] + public DateTimeOffset? PeakStartOn + { + get => new DateTimeOffset(0, 0, 0, PeakStartTime.Hour, PeakStartTime.Minute, 0, new TimeSpan()); + set + { + PeakStartTime.Hour = value.Value.Hour; + PeakStartTime.Minute = value.Value.Minute; + } + } + /// Starting time for ramp down period. + [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This property is obsolete and might be removed in a future version, please use `RampDownStartTime` instead.", false)] + public DateTimeOffset? RampDownStartOn + { + get => new DateTimeOffset(0, 0, 0, RampDownStartTime.Hour, RampDownStartTime.Minute, 0, new TimeSpan()); + set + { + RampDownStartTime.Hour = value.Value.Hour; + RampDownStartTime.Minute = value.Value.Minute; + } + } + /// Starting time for off-peak period. + [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This property is obsolete and might be removed in a future version, please use `OffPeakStartTime` instead.", false)] + public DateTimeOffset? OffPeakStartOn + { + get => new DateTimeOffset(0, 0, 0, OffPeakStartTime.Hour, OffPeakStartTime.Minute, 0, new TimeSpan()); + set + { + OffPeakStartTime.Hour = value.Value.Hour; + OffPeakStartTime.Minute = value.Value.Minute; + } + } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/MsixPackageCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/MsixPackageCollection.cs new file mode 100644 index 000000000000..e7f9c2a29973 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/MsixPackageCollection.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.ComponentModel; +using System.Collections.Generic; +using System.Threading; + +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 a instance call the GetMsixPackages method from an instance of . + /// + public partial class MsixPackageCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + /// + /// List MSIX packages in hostpool. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages + /// + /// + /// Operation Id + /// MSIXPackages_List + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken) => GetAllAsync(null, null, null, cancellationToken); + + /// + /// List MSIX packages in hostpool. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages + /// + /// + /// Operation Id + /// MSIXPackages_List + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Pageable GetAll(CancellationToken cancellationToken) => GetAll(null, null, null, cancellationToken); + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/ScalingPlanCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/ScalingPlanCollection.cs new file mode 100644 index 000000000000..abda6973438f --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/ScalingPlanCollection.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.ComponentModel; +using System.Collections.Generic; +using System.Threading; +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 a instance call the GetScalingPlans method from an instance of . + /// + public partial class ScalingPlanCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + /// + /// List scaling plans. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans + /// + /// + /// Operation Id + /// ScalingPlans_ListByResourceGroup + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken) => GetAllAsync(null, null, null, cancellationToken); + + /// + /// List scaling plans. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans + /// + /// + /// Operation Id + /// ScalingPlans_ListByResourceGroup + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Pageable GetAll(CancellationToken cancellationToken) => GetAll(null, null, null, cancellationToken); + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/ScalingPlanData.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/ScalingPlanData.cs new file mode 100644 index 000000000000..abfdb3cbbdcf --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/ScalingPlanData.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.ComponentModel; +using Azure.Core; +using Azure.ResourceManager.DesktopVirtualization.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + /// + /// A class representing the ScalingPlan data model. + /// Represents a scaling plan definition. + /// + public partial class ScalingPlanData : TrackedResourceData + { + private const string DefaultTimeZone = "Central Standard Time"; + + /// Initializes a new instance of ScalingPlanData. + /// The location. + [EditorBrowsable(EditorBrowsableState.Never)] + public ScalingPlanData(AzureLocation location) : base(location) + { + TimeZone = DefaultTimeZone; + Schedules = new ChangeTrackingList(); + HostPoolReferences = new ChangeTrackingList(); + } + + /// HostPool type for desktop. + [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This property is obsolete and might be removed in a future version", false)] + public HostPoolType? HostPoolType + { + get => ScalingHostPoolType.ToString(); + set => ScalingHostPoolType = value.Value.ToString(); + } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/SessionHostCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/SessionHostCollection.cs new file mode 100644 index 000000000000..7f747ee92249 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/SessionHostCollection.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.ComponentModel; +using System.Collections.Generic; +using System.Threading; + +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 a instance call the GetSessionHosts method from an instance of . + /// + public partial class SessionHostCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + /// + /// List sessionHosts. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts + /// + /// + /// Operation Id + /// SessionHosts_List + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken) => GetAllAsync(null, null, null, cancellationToken); + + /// + /// List sessionHosts. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts + /// + /// + /// Operation Id + /// SessionHosts_List + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Pageable GetAll(CancellationToken cancellationToken) => GetAll(null, null, null, cancellationToken); + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/SessionHostResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/SessionHostResource.cs new file mode 100644 index 000000000000..c0a47b838682 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/SessionHostResource.cs @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.ComponentModel; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.ResourceManager.DesktopVirtualization.Models; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + /// + /// A Class representing a SessionHost along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetSessionHostResource method. + /// Otherwise you can get one from its parent resource using the GetSessionHost method. + /// + public partial class SessionHostResource : ArmResource + { + /// + /// Update a session host. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName} + /// + /// + /// Operation Id + /// SessionHosts_Update + /// + /// + /// + /// Object containing SessionHost definitions. + /// The cancellation token to use. + /// is null. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual async Task> UpdateAsync(SessionHostPatch patch, CancellationToken cancellationToken) => await UpdateAsync(patch, null, cancellationToken).ConfigureAwait(false); + + /// + /// Update a session host. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName} + /// + /// + /// Operation Id + /// SessionHosts_Update + /// + /// + /// + /// Object containing SessionHost definitions. + /// The cancellation token to use. + /// is null. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Response Update(SessionHostPatch patch, CancellationToken cancellationToken) => Update(patch, null, cancellationToken); + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/UserSessionCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/UserSessionCollection.cs new file mode 100644 index 000000000000..9b50c689b7cc --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/UserSessionCollection.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.ComponentModel; +using System.Collections.Generic; +using System.Threading; + +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 GetUserSessions method from an instance of . + /// + public partial class UserSessionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + /// + /// List userSessions. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions + /// + /// + /// Operation Id + /// UserSessions_List + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken) => GetAllAsync(null, null, null, cancellationToken); + + /// + /// List userSessions. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions + /// + /// + /// Operation Id + /// UserSessions_List + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Pageable GetAll(CancellationToken cancellationToken) => GetAll(null, null, null, cancellationToken); + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/VirtualApplicationCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/VirtualApplicationCollection.cs new file mode 100644 index 000000000000..bb4249668863 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/VirtualApplicationCollection.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.ComponentModel; +using System.Collections.Generic; +using System.Threading; + +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 a instance call the GetVirtualApplications method from an instance of . + /// + public partial class VirtualApplicationCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + /// + /// List applications. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications + /// + /// + /// Operation Id + /// Applications_List + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken) => GetAllAsync(null, null, null, cancellationToken); + + /// + /// List applications. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications + /// + /// + /// Operation Id + /// Applications_List + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Pageable GetAll(CancellationToken cancellationToken) => GetAll(null, null, null, cancellationToken); + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/VirtualApplicationGroupCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/VirtualApplicationGroupCollection.cs new file mode 100644 index 000000000000..f82e000e94ff --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/VirtualApplicationGroupCollection.cs @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.ComponentModel; +using System.Collections.Generic; +using System.Threading; +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 a instance call the GetVirtualApplicationGroups method from an instance of . + /// + public partial class VirtualApplicationGroupCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + /// + /// List applicationGroups. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups + /// + /// + /// Operation Id + /// ApplicationGroups_ListByResourceGroup + /// + /// + /// + /// OData filter expression. Valid properties for filtering are applicationGroupType. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual AsyncPageable GetAllAsync(string filter, CancellationToken cancellationToken) => GetAllAsync(filter, null, null, null, cancellationToken); + + /// + /// List applicationGroups. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups + /// + /// + /// Operation Id + /// ApplicationGroups_ListByResourceGroup + /// + /// + /// + /// OData filter expression. Valid properties for filtering are applicationGroupType. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Pageable GetAll(string filter, CancellationToken cancellationToken) => GetAll(filter, null, null, null, cancellationToken); + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/VirtualApplicationGroupData.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/VirtualApplicationGroupData.cs new file mode 100644 index 000000000000..65afe5f6e6cc --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/VirtualApplicationGroupData.cs @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.ComponentModel; +using Azure.ResourceManager.DesktopVirtualization.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + /// + /// A class representing the VirtualApplicationGroup data model. + /// Represents a ApplicationGroup definition. + /// + public partial class VirtualApplicationGroupData : TrackedResourceData + { + /// The type of operation for migration. + [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This property is obsolete and might be removed in a future version", false)] + public DesktopVirtualizationMigrationProperties MigrationRequest { get; set; } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/VirtualApplicationGroupResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/VirtualApplicationGroupResource.cs new file mode 100644 index 000000000000..4f05c6e9bc4e --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/VirtualApplicationGroupResource.cs @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.ComponentModel; +using System.Threading; +using Azure.Core; +using Azure.ResourceManager.DesktopVirtualization.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + /// + /// A Class representing a VirtualApplicationGroup along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetVirtualApplicationGroupResource method. + /// Otherwise you can get one from its parent resource using the GetVirtualApplicationGroup method. + /// + public partial class VirtualApplicationGroupResource : ArmResource + { + /// + /// List start menu items in the given application group. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/startMenuItems + /// + /// + /// Operation Id + /// StartMenuItems_List + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual AsyncPageable GetStartMenuItemsAsync(CancellationToken cancellationToken) => GetStartMenuItemsAsync(cancellationToken); + + /// + /// List start menu items in the given application group. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/startMenuItems + /// + /// + /// Operation Id + /// StartMenuItems_List + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Pageable GetStartMenuItems(CancellationToken cancellationToken) => GetStartMenuItems(cancellationToken); + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/VirtualDesktopCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/VirtualDesktopCollection.cs new file mode 100644 index 000000000000..59aa505f9813 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/VirtualDesktopCollection.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.ComponentModel; +using System.Collections.Generic; +using System.Threading; + +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 a instance call the GetVirtualDesktops method from an instance of . + /// + public partial class VirtualDesktopCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + /// + /// List desktops. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops + /// + /// + /// Operation Id + /// Desktops_List + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken) => GetAllAsync(null, null, null, cancellationToken); + + /// + /// List desktops. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops + /// + /// + /// Operation Id + /// Desktops_List + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Pageable GetAll(CancellationToken cancellationToken) => GetAll(null, null, null, cancellationToken); + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/VirtualWorkspaceCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/VirtualWorkspaceCollection.cs new file mode 100644 index 000000000000..7bd340b29d7e --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Customize/VirtualWorkspaceCollection.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.ComponentModel; +using System.Collections.Generic; +using System.Threading; +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 a instance call the GetVirtualWorkspaces method from an instance of . + /// + public partial class VirtualWorkspaceCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + /// + /// List workspaces. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces + /// + /// + /// Operation Id + /// Workspaces_ListByResourceGroup + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken) => GetAllAsync(null, null, null, cancellationToken); + + /// + /// List workspaces. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces + /// + /// + /// Operation Id + /// Workspaces_ListByResourceGroup + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Pageable GetAll(CancellationToken cancellationToken) => GetAll(null, null, null, cancellationToken); + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ArmDesktopVirtualizationModelFactory.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ArmDesktopVirtualizationModelFactory.cs new file mode 100644 index 000000000000..474ca77999a1 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ArmDesktopVirtualizationModelFactory.cs @@ -0,0 +1,461 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure; +using Azure.Core; +using Azure.ResourceManager.DesktopVirtualization; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + /// Model factory for models. + public static partial class ArmDesktopVirtualizationModelFactory + { + /// Initializes a new instance of VirtualWorkspaceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// ObjectId of Workspace. (internal use). + /// Description of Workspace. + /// Friendly name of Workspace. + /// List of applicationGroup resource Ids. + /// Is cloud pc 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. + public static VirtualWorkspaceData VirtualWorkspaceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string objectId = null, string description = null, string friendlyName = null, IEnumerable applicationGroupReferences = null, bool? isCloudPCResource = 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(); + + return new VirtualWorkspaceData(id, name, resourceType, systemData, tags, location, objectId, description, friendlyName, applicationGroupReferences?.ToList(), isCloudPCResource, managedBy, kind, etag, identity, sku, plan); + } + + /// Initializes a new instance of ScalingPlanData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// ObjectId of scaling plan. (internal use). + /// Description of scaling plan. + /// User friendly name of scaling plan. + /// Timezone of the scaling plan. + /// HostPool type for desktop. + /// Exclusion tag for scaling plan. + /// 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. + /// 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 ScalingPlanData ScalingPlanData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string objectId = null, string description = null, string friendlyName = null, string timeZone = null, ScalingHostPoolType? scalingHostPoolType = null, string exclusionTag = null, IEnumerable schedules = null, IEnumerable hostPoolReferences = null, ResourceIdentifier managedBy = null, string kind = null, ETag? etag = null, ManagedServiceIdentity identity = null, DesktopVirtualizationSku sku = null, ArmPlan plan = null) + { + tags ??= new Dictionary(); + schedules ??= new List(); + hostPoolReferences ??= new List(); + + return new ScalingPlanData(id, name, resourceType, systemData, tags, location, objectId, description, friendlyName, timeZone, scalingHostPoolType, exclusionTag, schedules?.ToList(), hostPoolReferences?.ToList(), managedBy, kind, etag, identity, sku, plan); + } + + /// Initializes a new instance of ScalingPlanPooledScheduleData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Set of days of the week on which this schedule is active. + /// Starting time for ramp up period. + /// Load balancing algorithm for ramp up period. + /// Minimum host percentage for ramp up period. + /// Capacity threshold for ramp up period. + /// Starting time for peak period. + /// Load balancing algorithm for peak period. + /// Starting time for ramp down period. + /// Load balancing algorithm for ramp down period. + /// Minimum host percentage for ramp down period. + /// Capacity threshold for ramp down period. + /// Should users be logged off forcefully from hosts. + /// Specifies when to stop hosts during ramp down period. + /// Number of minutes to wait to stop hosts during ramp down period. + /// Notification message for users during ramp down period. + /// Starting time for off-peak period. + /// Load balancing algorithm for off-peak period. + /// A new instance for mocking. + public static ScalingPlanPooledScheduleData ScalingPlanPooledScheduleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable daysOfWeek = null, ScalingActionTime rampUpStartTime = null, SessionHostLoadBalancingAlgorithm? rampUpLoadBalancingAlgorithm = null, int? rampUpMinimumHostsPct = null, int? rampUpCapacityThresholdPct = null, ScalingActionTime peakStartTime = null, SessionHostLoadBalancingAlgorithm? peakLoadBalancingAlgorithm = null, ScalingActionTime rampDownStartTime = null, SessionHostLoadBalancingAlgorithm? rampDownLoadBalancingAlgorithm = null, int? rampDownMinimumHostsPct = null, int? rampDownCapacityThresholdPct = null, bool? rampDownForceLogoffUsers = null, DesktopVirtualizationStopHostsWhen? rampDownStopHostsWhen = null, int? rampDownWaitTimeMinutes = null, string rampDownNotificationMessage = null, ScalingActionTime offPeakStartTime = null, SessionHostLoadBalancingAlgorithm? offPeakLoadBalancingAlgorithm = null) + { + daysOfWeek ??= new List(); + + return new ScalingPlanPooledScheduleData(id, name, resourceType, systemData, daysOfWeek?.ToList(), rampUpStartTime, rampUpLoadBalancingAlgorithm, rampUpMinimumHostsPct, rampUpCapacityThresholdPct, peakStartTime, peakLoadBalancingAlgorithm, rampDownStartTime, rampDownLoadBalancingAlgorithm, rampDownMinimumHostsPct, rampDownCapacityThresholdPct, rampDownForceLogoffUsers, rampDownStopHostsWhen, rampDownWaitTimeMinutes, rampDownNotificationMessage, offPeakStartTime, offPeakLoadBalancingAlgorithm); + } + + /// Initializes a new instance of ScalingPlanPooledSchedulePatch. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Set of days of the week on which this schedule is active. + /// Starting time for ramp up period. + /// Load balancing algorithm for ramp up period. + /// Minimum host percentage for ramp up period. + /// Capacity threshold for ramp up period. + /// Starting time for peak period. + /// Load balancing algorithm for peak period. + /// Starting time for ramp down period. + /// Load balancing algorithm for ramp down period. + /// Minimum host percentage for ramp down period. + /// Capacity threshold for ramp down period. + /// Should users be logged off forcefully from hosts. + /// Specifies when to stop hosts during ramp down period. + /// Number of minutes to wait to stop hosts during ramp down period. + /// Notification message for users during ramp down period. + /// Starting time for off-peak period. + /// Load balancing algorithm for off-peak period. + /// A new instance for mocking. + public static ScalingPlanPooledSchedulePatch ScalingPlanPooledSchedulePatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable daysOfWeek = null, ScalingActionTime rampUpStartTime = null, SessionHostLoadBalancingAlgorithm? rampUpLoadBalancingAlgorithm = null, int? rampUpMinimumHostsPct = null, int? rampUpCapacityThresholdPct = null, ScalingActionTime peakStartTime = null, SessionHostLoadBalancingAlgorithm? peakLoadBalancingAlgorithm = null, ScalingActionTime rampDownStartTime = null, SessionHostLoadBalancingAlgorithm? rampDownLoadBalancingAlgorithm = null, int? rampDownMinimumHostsPct = null, int? rampDownCapacityThresholdPct = null, bool? rampDownForceLogoffUsers = null, DesktopVirtualizationStopHostsWhen? rampDownStopHostsWhen = null, int? rampDownWaitTimeMinutes = null, string rampDownNotificationMessage = null, ScalingActionTime offPeakStartTime = null, SessionHostLoadBalancingAlgorithm? offPeakLoadBalancingAlgorithm = null) + { + daysOfWeek ??= new List(); + + return new ScalingPlanPooledSchedulePatch(id, name, resourceType, systemData, daysOfWeek?.ToList(), rampUpStartTime, rampUpLoadBalancingAlgorithm, rampUpMinimumHostsPct, rampUpCapacityThresholdPct, peakStartTime, peakLoadBalancingAlgorithm, rampDownStartTime, rampDownLoadBalancingAlgorithm, rampDownMinimumHostsPct, rampDownCapacityThresholdPct, rampDownForceLogoffUsers, rampDownStopHostsWhen, rampDownWaitTimeMinutes, rampDownNotificationMessage, offPeakStartTime, offPeakLoadBalancingAlgorithm); + } + + /// Initializes a new instance of VirtualApplicationGroupData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// ObjectId of ApplicationGroup. (internal use). + /// Description of ApplicationGroup. + /// Friendly name of ApplicationGroup. + /// HostPool arm path of ApplicationGroup. + /// Workspace arm path of ApplicationGroup. + /// Resource Type of ApplicationGroup. + /// Is cloud pc 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. + public static VirtualApplicationGroupData VirtualApplicationGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string objectId = null, string description = null, string friendlyName = null, ResourceIdentifier hostPoolId = null, ResourceIdentifier workspaceId = null, VirtualApplicationGroupType applicationGroupType = default, bool? isCloudPCResource = null, ResourceIdentifier managedBy = null, string kind = null, ETag? etag = null, ManagedServiceIdentity identity = null, DesktopVirtualizationSku sku = null, ArmPlan plan = null) + { + tags ??= new Dictionary(); + + return new VirtualApplicationGroupData(id, name, resourceType, systemData, tags, location, objectId, description, friendlyName, hostPoolId, workspaceId, applicationGroupType, isCloudPCResource, managedBy, kind, etag, identity, sku, plan); + } + + /// Initializes a new instance of VirtualApplicationGroupPatch. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// tags to be updated. + /// Description of ApplicationGroup. + /// Friendly name of ApplicationGroup. + /// A new instance for mocking. + public static VirtualApplicationGroupPatch VirtualApplicationGroupPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, string description = null, string friendlyName = null) + { + tags ??= new Dictionary(); + + return new VirtualApplicationGroupPatch(id, name, resourceType, systemData, tags, description, friendlyName); + } + + /// Initializes a new instance of DesktopVirtualizationStartMenuItem. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Alias of StartMenuItem. + /// Path to the file of StartMenuItem. + /// Command line arguments for StartMenuItem. + /// Path to the icon. + /// Index of the icon. + /// A new instance for mocking. + public static DesktopVirtualizationStartMenuItem DesktopVirtualizationStartMenuItem(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string appAlias = null, string filePath = null, string commandLineArguments = null, string iconPath = null, int? iconIndex = null) + { + return new DesktopVirtualizationStartMenuItem(id, name, resourceType, systemData, appAlias, filePath, commandLineArguments, iconPath, iconIndex); + } + + /// Initializes a new instance of VirtualApplicationData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// ObjectId of Application. (internal use). + /// Description of Application. + /// Friendly name of Application. + /// Specifies a path for the executable file for the application. + /// Specifies the package family name for MSIX applications. + /// Specifies the package application Id for MSIX applications. + /// Resource Type of Application. + /// Specifies whether this published application can be launched with command line arguments provided by the client, command line arguments specified at publish time, or no command line arguments at all. + /// Command Line Arguments for Application. + /// Specifies whether to show the RemoteApp program in the RD Web Access server. + /// Path to icon. + /// Index of the icon. + /// Hash of the icon. + /// the icon a 64 bit string as a byte array. + /// A new instance for mocking. + public static VirtualApplicationData VirtualApplicationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string objectId = null, string description = null, string friendlyName = null, string filePath = null, string msixPackageFamilyName = null, string msixPackageApplicationId = null, RemoteApplicationType? applicationType = null, VirtualApplicationCommandLineSetting commandLineSetting = default, string commandLineArguments = null, bool? showInPortal = null, string iconPath = null, int? iconIndex = null, string iconHash = null, BinaryData iconContent = null) + { + return new VirtualApplicationData(id, name, resourceType, systemData, objectId, description, friendlyName, filePath, msixPackageFamilyName, msixPackageApplicationId, applicationType, commandLineSetting, commandLineArguments, showInPortal, iconPath, iconIndex, iconHash, iconContent); + } + + /// Initializes a new instance of VirtualDesktopData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// ObjectId of Desktop. (internal use). + /// Description of Desktop. + /// Friendly name of Desktop. + /// Hash of the icon. + /// The icon a 64 bit string as a byte array. + /// A new instance for mocking. + public static VirtualDesktopData VirtualDesktopData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string objectId = null, string description = null, string friendlyName = null, string iconHash = null, BinaryData iconContent = null) + { + return new VirtualDesktopData(id, name, resourceType, systemData, objectId, description, friendlyName, iconHash, iconContent); + } + + /// 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. + /// The session host configuration for updating agent, monitoring agent, and stack component. + /// 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. + 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, SessionHostAgentUpdateProperties agentUpdate = 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(); + + return new HostPoolData(id, name, resourceType, systemData, tags, location, objectId, friendlyName, description, hostPoolType, personalDesktopAssignmentType, customRdpProperty, maxSessionLimit, loadBalancerType, ring, isValidationEnvironment, registrationInfo, vmTemplate, applicationGroupReferences?.ToList(), ssoAdfsAuthority, ssoClientId, ssoClientSecretKeyVaultPath, ssoSecretType, preferredAppGroupType, startVmOnConnect, isCloudPCResource, agentUpdate, managedBy, kind, etag, identity, sku, plan); + } + + /// Initializes a new instance of HostPoolPatch. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// tags to be updated. + /// Friendly name of HostPool. + /// Description of HostPool. + /// Custom rdp property of HostPool. + /// The max session limit of HostPool. + /// PersonalDesktopAssignment type for 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. + /// 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. + /// The session host configuration for updating agent, monitoring agent, and stack component. + /// A new instance for mocking. + public static HostPoolPatch HostPoolPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, string friendlyName = null, string description = null, string customRdpProperty = null, int? maxSessionLimit = null, PersonalDesktopAssignmentType? personalDesktopAssignmentType = null, HostPoolLoadBalancerType? loadBalancerType = null, int? ring = null, bool? isValidationEnvironment = null, HostPoolRegistrationInfoPatch registrationInfo = null, string vmTemplate = null, string ssoAdfsAuthority = null, string ssoClientId = null, string ssoClientSecretKeyVaultPath = null, HostPoolSsoSecretType? ssoSecretType = null, PreferredAppGroupType? preferredAppGroupType = null, bool? startVmOnConnect = null, SessionHostAgentUpdatePatchProperties agentUpdate = null) + { + tags ??= new Dictionary(); + + return new HostPoolPatch(id, name, resourceType, systemData, tags, friendlyName, description, customRdpProperty, maxSessionLimit, personalDesktopAssignmentType, loadBalancerType, ring, isValidationEnvironment, registrationInfo, vmTemplate, ssoAdfsAuthority, ssoClientId, ssoClientSecretKeyVaultPath, ssoSecretType, preferredAppGroupType, startVmOnConnect, agentUpdate); + } + + /// Initializes a new instance of UserSessionData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// ObjectId of user session. (internal use). + /// The user principal name. + /// Application type of application. + /// State of user session. + /// The active directory user name. + /// The timestamp of the user session create. + /// A new instance for mocking. + public static UserSessionData UserSessionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string objectId = null, string userPrincipalName = null, VirtualApplicationType? applicationType = null, UserSessionState? sessionState = null, string activeDirectoryUserName = null, DateTimeOffset? createOn = null) + { + return new UserSessionData(id, name, resourceType, systemData, objectId, userPrincipalName, applicationType, sessionState, activeDirectoryUserName, createOn); + } + + /// Initializes a new instance of SessionHostData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// ObjectId of SessionHost. (internal use). + /// Last heart beat from SessionHost. + /// Number of sessions on SessionHost. + /// Version of agent on SessionHost. + /// Allow a new session. + /// Virtual Machine Id of SessionHost's underlying virtual machine. + /// Resource Id of SessionHost's underlying virtual machine. + /// User assigned to SessionHost. + /// Friendly name of SessionHost. + /// Status for a SessionHost. + /// The timestamp of the status. + /// The version of the OS on the session host. + /// The version of the side by side stack on the session host. + /// Update state of a SessionHost. + /// The timestamp of the last update. + /// The error message. + /// List of SessionHostHealthCheckReports. + /// A new instance for mocking. + public static SessionHostData SessionHostData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string objectId = null, DateTimeOffset? lastHeartBeatOn = null, int? sessions = null, string agentVersion = null, bool? allowNewSession = null, string vmId = null, ResourceIdentifier resourceId = null, string assignedUser = null, string friendlyName = null, SessionHostStatus? status = null, DateTimeOffset? statusTimestamp = null, string osVersion = null, string sxsStackVersion = null, SessionHostUpdateState? updateState = null, DateTimeOffset? lastUpdatedOn = null, string updateErrorMessage = null, IEnumerable sessionHostHealthCheckResults = null) + { + sessionHostHealthCheckResults ??= new List(); + + return new SessionHostData(id, name, resourceType, systemData, objectId, lastHeartBeatOn, sessions, agentVersion, allowNewSession, vmId, resourceId, assignedUser, friendlyName, status, statusTimestamp, osVersion, sxsStackVersion, updateState, lastUpdatedOn, updateErrorMessage, sessionHostHealthCheckResults?.ToList()); + } + + /// Initializes a new instance of SessionHostHealthCheckReport. + /// Represents the name of the health check operation performed. + /// Represents the Health state of the health check we performed. + /// Additional detailed information on the failure. + /// A new instance for mocking. + public static SessionHostHealthCheckReport SessionHostHealthCheckReport(SessionHostHealthCheckName? healthCheckName = null, SessionHostHealthCheckResult? healthCheckResult = null, SessionHostHealthCheckFailureDetails additionalFailureDetails = null) + { + return new SessionHostHealthCheckReport(healthCheckName, healthCheckResult, additionalFailureDetails); + } + + /// Initializes a new instance of SessionHostHealthCheckFailureDetails. + /// Failure message: hints on what is wrong and how to recover. + /// Error code corresponding for the failure. + /// The timestamp of the last update. + /// A new instance for mocking. + public static SessionHostHealthCheckFailureDetails SessionHostHealthCheckFailureDetails(string message = null, int? errorCode = null, DateTimeOffset? lastHealthCheckOn = null) + { + return new SessionHostHealthCheckFailureDetails(message, errorCode, lastHealthCheckOn); + } + + /// Initializes a new instance of SessionHostPatch. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Allow a new session. + /// User assigned to SessionHost. + /// Friendly name of SessionHost. + /// A new instance for mocking. + public static SessionHostPatch SessionHostPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, bool? allowNewSession = null, string assignedUser = null, string friendlyName = null) + { + return new SessionHostPatch(id, name, resourceType, systemData, allowNewSession, assignedUser, friendlyName); + } + + /// Initializes a new instance of MsixPackageData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// VHD/CIM image path on Network Share. + /// Package Name from appxmanifest.xml. + /// Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. + /// 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. + public static MsixPackageData MsixPackageData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string imagePath = null, string packageName = null, string packageFamilyName = 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) + { + packageDependencies ??= new List(); + packageApplications ??= new List(); + + return new MsixPackageData(id, name, resourceType, systemData, imagePath, packageName, packageFamilyName, displayName, packageRelativePath, isRegularRegistration, isActive, packageDependencies?.ToList(), version, lastUpdatedOn, packageApplications?.ToList()); + } + + /// Initializes a new instance of MsixPackagePatch. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Set a version of the package to be active across hostpool. + /// Set Registration mode. Regular or Delayed. + /// Display name for MSIX Package. + /// A new instance for mocking. + public static MsixPackagePatch MsixPackagePatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, bool? isActive = null, bool? isRegularRegistration = null, string displayName = null) + { + return new MsixPackagePatch(id, name, resourceType, systemData, isActive, isRegularRegistration, displayName); + } + + /// 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. + 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) + { + packageDependencies ??= new List(); + packageApplications ??= new List(); + + return new ExpandMsixImage(id, name, resourceType, systemData, packageAlias, imagePath, packageName, packageFamilyName, packageFullName, displayName, packageRelativePath, isRegularRegistration, isActive, packageDependencies?.ToList(), version, lastUpdatedOn, packageApplications?.ToList()); + } + } +} 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 7f4d9ba8b834..484836e61f8f 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/DesktopVirtualizationExtensions.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/DesktopVirtualizationExtensions.cs @@ -87,6 +87,25 @@ public static ScalingPlanResource GetScalingPlanResource(this ArmClient client, } #endregion + #region ScalingPlanPooledScheduleResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static ScalingPlanPooledScheduleResource GetScalingPlanPooledScheduleResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + ScalingPlanPooledScheduleResource.ValidateResourceId(id); + return new ScalingPlanPooledScheduleResource(client, id); + } + ); + } + #endregion + #region VirtualApplicationGroupResource /// /// Gets an object representing a along with the instance operations that can be performed on it but with no data. @@ -500,11 +519,14 @@ public static Pageable GetVirtualWorkspaces(this Subsc /// /// /// The instance the method will execute against. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetScalingPlansAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + public static AsyncPageable GetScalingPlansAsync(this SubscriptionResource subscriptionResource, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - return GetSubscriptionResourceExtensionClient(subscriptionResource).GetScalingPlansAsync(cancellationToken); + return GetSubscriptionResourceExtensionClient(subscriptionResource).GetScalingPlansAsync(pageSize, isDescending, initialSkip, cancellationToken); } /// @@ -521,11 +543,14 @@ public static AsyncPageable GetScalingPlansAsync(this Subsc /// /// /// The instance the method will execute against. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetScalingPlans(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + public static Pageable GetScalingPlans(this SubscriptionResource subscriptionResource, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - return GetSubscriptionResourceExtensionClient(subscriptionResource).GetScalingPlans(cancellationToken); + return GetSubscriptionResourceExtensionClient(subscriptionResource).GetScalingPlans(pageSize, isDescending, initialSkip, cancellationToken); } /// @@ -586,11 +611,14 @@ public static Pageable GetVirtualApplicationGro /// /// /// The instance the method will execute against. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetHostPoolsAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + public static AsyncPageable GetHostPoolsAsync(this SubscriptionResource subscriptionResource, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - return GetSubscriptionResourceExtensionClient(subscriptionResource).GetHostPoolsAsync(cancellationToken); + return GetSubscriptionResourceExtensionClient(subscriptionResource).GetHostPoolsAsync(pageSize, isDescending, initialSkip, cancellationToken); } /// @@ -607,11 +635,14 @@ public static AsyncPageable GetHostPoolsAsync(this Subscriptio /// /// /// The instance the method will execute against. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetHostPools(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + public static Pageable GetHostPools(this SubscriptionResource subscriptionResource, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - return GetSubscriptionResourceExtensionClient(subscriptionResource).GetHostPools(cancellationToken); + return GetSubscriptionResourceExtensionClient(subscriptionResource).GetHostPools(pageSize, isDescending, initialSkip, cancellationToken); } } } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs index 76d20cf4a1d4..cc4936495b3f 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs @@ -109,12 +109,15 @@ public virtual Pageable GetVirtualWorkspaces(Cancellat /// /// /// + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetScalingPlansAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetScalingPlansAsync(int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => ScalingPlanRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => ScalingPlanRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + HttpMessage FirstPageRequest(int? pageSizeHint) => ScalingPlanRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => ScalingPlanRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, pageSizeHint, isDescending, initialSkip); return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ScalingPlanResource(Client, ScalingPlanData.DeserializeScalingPlanData(e)), ScalingPlanClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetScalingPlans", "value", "nextLink", cancellationToken); } @@ -131,12 +134,15 @@ public virtual AsyncPageable GetScalingPlansAsync(Cancellat /// /// /// + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetScalingPlans(CancellationToken cancellationToken = default) + public virtual Pageable GetScalingPlans(int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => ScalingPlanRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => ScalingPlanRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + HttpMessage FirstPageRequest(int? pageSizeHint) => ScalingPlanRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => ScalingPlanRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, pageSizeHint, isDescending, initialSkip); return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ScalingPlanResource(Client, ScalingPlanData.DeserializeScalingPlanData(e)), ScalingPlanClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetScalingPlans", "value", "nextLink", cancellationToken); } @@ -199,12 +205,15 @@ public virtual Pageable GetVirtualApplicationGr /// /// /// + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetHostPoolsAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetHostPoolsAsync(int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => HostPoolRestClient.CreateListRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => HostPoolRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId); + HttpMessage FirstPageRequest(int? pageSizeHint) => HostPoolRestClient.CreateListRequest(Id.SubscriptionId, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => HostPoolRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, pageSizeHint, isDescending, initialSkip); return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new HostPoolResource(Client, HostPoolData.DeserializeHostPoolData(e)), HostPoolClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetHostPools", "value", "nextLink", cancellationToken); } @@ -221,12 +230,15 @@ public virtual AsyncPageable GetHostPoolsAsync(CancellationTok /// /// /// + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetHostPools(CancellationToken cancellationToken = default) + public virtual Pageable GetHostPools(int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => HostPoolRestClient.CreateListRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => HostPoolRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId); + HttpMessage FirstPageRequest(int? pageSizeHint) => HostPoolRestClient.CreateListRequest(Id.SubscriptionId, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => HostPoolRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, pageSizeHint, isDescending, initialSkip); return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new HostPoolResource(Client, HostPoolData.DeserializeHostPoolData(e)), HostPoolClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetHostPools", "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 590c887a6461..9084c4a96d88 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolCollection.cs @@ -222,12 +222,15 @@ public virtual Response Get(string hostPoolName, CancellationT /// /// /// + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _hostPoolRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _hostPoolRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _hostPoolRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _hostPoolRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, pageSizeHint, isDescending, initialSkip); return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new HostPoolResource(Client, HostPoolData.DeserializeHostPoolData(e)), _hostPoolClientDiagnostics, Pipeline, "HostPoolCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -244,12 +247,15 @@ public virtual AsyncPageable GetAllAsync(CancellationToken can /// /// /// + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + public virtual Pageable GetAll(int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _hostPoolRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _hostPoolRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _hostPoolRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _hostPoolRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, pageSizeHint, isDescending, initialSkip); return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new HostPoolResource(Client, HostPoolData.DeserializeHostPoolData(e)), _hostPoolClientDiagnostics, Pipeline, "HostPoolCollection.GetAll", "value", "nextLink", cancellationToken); } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolData.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolData.cs index 24d5356789d8..9b8503298892 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolData.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolData.cs @@ -58,15 +58,15 @@ public HostPoolData(AzureLocation location, HostPoolType hostPoolType, HostPoolL /// 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. - /// The registration info of HostPool. /// Is cloud pc resource. + /// The session host configuration for updating agent, monitoring agent, and stack component. /// 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. - 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, DesktopVirtualizationMigrationProperties migrationRequest, bool? isCloudPCResource, ResourceIdentifier managedBy, string kind, ETag? etag, ManagedServiceIdentity identity, DesktopVirtualizationSku sku, ArmPlan plan) : 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, string ssoAdfsAuthority, string ssoClientId, string ssoClientSecretKeyVaultPath, HostPoolSsoSecretType? ssoSecretType, PreferredAppGroupType preferredAppGroupType, bool? startVmOnConnect, bool? isCloudPCResource, SessionHostAgentUpdateProperties agentUpdate, ResourceIdentifier managedBy, string kind, ETag? etag, ManagedServiceIdentity identity, DesktopVirtualizationSku sku, ArmPlan plan) : base(id, name, resourceType, systemData, tags, location) { ObjectId = objectId; FriendlyName = friendlyName; @@ -87,8 +87,8 @@ internal HostPoolData(ResourceIdentifier id, string name, ResourceType resourceT SsoSecretType = ssoSecretType; PreferredAppGroupType = preferredAppGroupType; StartVmOnConnect = startVmOnConnect; - MigrationRequest = migrationRequest; IsCloudPCResource = isCloudPCResource; + AgentUpdate = agentUpdate; ManagedBy = managedBy; Kind = kind; ETag = etag; @@ -135,10 +135,10 @@ internal HostPoolData(ResourceIdentifier id, string name, ResourceType resourceT public PreferredAppGroupType PreferredAppGroupType { get; set; } /// The flag to turn on/off StartVMOnConnect feature. public bool? StartVmOnConnect { get; set; } - /// The registration info of HostPool. - public DesktopVirtualizationMigrationProperties MigrationRequest { get; set; } /// Is cloud pc resource. public bool? IsCloudPCResource { get; } + /// The session host configuration for updating agent, monitoring agent, and stack component. + public SessionHostAgentUpdateProperties AgentUpdate { 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. diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolResource.cs index aa6067738e0a..e8823574898c 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolResource.cs @@ -424,12 +424,15 @@ public virtual Response Update(HostPoolPatch patch, Cancellati /// /// /// + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetScalingPlansAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetScalingPlansAsync(int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _scalingPlanRestClient.CreateListByHostPoolRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _scalingPlanRestClient.CreateListByHostPoolNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _scalingPlanRestClient.CreateListByHostPoolRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _scalingPlanRestClient.CreateListByHostPoolNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, isDescending, initialSkip); return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ScalingPlanResource(Client, ScalingPlanData.DeserializeScalingPlanData(e)), _scalingPlanClientDiagnostics, Pipeline, "HostPoolResource.GetScalingPlans", "value", "nextLink", cancellationToken); } @@ -446,12 +449,15 @@ public virtual AsyncPageable GetScalingPlansAsync(Cancellat /// /// /// + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetScalingPlans(CancellationToken cancellationToken = default) + public virtual Pageable GetScalingPlans(int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _scalingPlanRestClient.CreateListByHostPoolRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _scalingPlanRestClient.CreateListByHostPoolNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _scalingPlanRestClient.CreateListByHostPoolRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _scalingPlanRestClient.CreateListByHostPoolNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, isDescending, initialSkip); return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ScalingPlanResource(Client, ScalingPlanData.DeserializeScalingPlanData(e)), _scalingPlanClientDiagnostics, Pipeline, "HostPoolResource.GetScalingPlans", "value", "nextLink", cancellationToken); } @@ -529,12 +535,15 @@ public virtual Response RetrieveRegistrationToken(Canc /// /// /// OData filter expression. Valid properties for filtering are userprincipalname and sessionstate. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetUserSessionsAsync(string filter = null, CancellationToken cancellationToken = default) + public virtual AsyncPageable GetUserSessionsAsync(string filter = null, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _userSessionRestClient.CreateListByHostPoolRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _userSessionRestClient.CreateListByHostPoolNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter); + HttpMessage FirstPageRequest(int? pageSizeHint) => _userSessionRestClient.CreateListByHostPoolRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _userSessionRestClient.CreateListByHostPoolNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, pageSizeHint, isDescending, initialSkip); return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new UserSessionResource(Client, UserSessionData.DeserializeUserSessionData(e)), _userSessionClientDiagnostics, Pipeline, "HostPoolResource.GetUserSessions", "value", "nextLink", cancellationToken); } @@ -552,12 +561,15 @@ public virtual AsyncPageable GetUserSessionsAsync(string fi /// /// /// OData filter expression. Valid properties for filtering are userprincipalname and sessionstate. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetUserSessions(string filter = null, CancellationToken cancellationToken = default) + public virtual Pageable GetUserSessions(string filter = null, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _userSessionRestClient.CreateListByHostPoolRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _userSessionRestClient.CreateListByHostPoolNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter); + HttpMessage FirstPageRequest(int? pageSizeHint) => _userSessionRestClient.CreateListByHostPoolRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _userSessionRestClient.CreateListByHostPoolNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, pageSizeHint, isDescending, initialSkip); return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new UserSessionResource(Client, UserSessionData.DeserializeUserSessionData(e)), _userSessionClientDiagnostics, Pipeline, "HostPoolResource.GetUserSessions", "value", "nextLink", cancellationToken); } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationDayOfWeek.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationDayOfWeek.Serialization.cs new file mode 100644 index 000000000000..e1de9c269665 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationDayOfWeek.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + internal static partial class DesktopVirtualizationDayOfWeekExtensions + { + public static string ToSerialString(this DesktopVirtualizationDayOfWeek value) => value switch + { + DesktopVirtualizationDayOfWeek.Monday => "Monday", + DesktopVirtualizationDayOfWeek.Tuesday => "Tuesday", + DesktopVirtualizationDayOfWeek.Wednesday => "Wednesday", + DesktopVirtualizationDayOfWeek.Thursday => "Thursday", + DesktopVirtualizationDayOfWeek.Friday => "Friday", + DesktopVirtualizationDayOfWeek.Saturday => "Saturday", + DesktopVirtualizationDayOfWeek.Sunday => "Sunday", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DesktopVirtualizationDayOfWeek value.") + }; + + public static DesktopVirtualizationDayOfWeek ToDesktopVirtualizationDayOfWeek(this string value) + { + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Monday")) return DesktopVirtualizationDayOfWeek.Monday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Tuesday")) return DesktopVirtualizationDayOfWeek.Tuesday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Wednesday")) return DesktopVirtualizationDayOfWeek.Wednesday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Thursday")) return DesktopVirtualizationDayOfWeek.Thursday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Friday")) return DesktopVirtualizationDayOfWeek.Friday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Saturday")) return DesktopVirtualizationDayOfWeek.Saturday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Sunday")) return DesktopVirtualizationDayOfWeek.Sunday; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DesktopVirtualizationDayOfWeek value."); + } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationDayOfWeek.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationDayOfWeek.cs new file mode 100644 index 000000000000..546d3bbee293 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationDayOfWeek.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + /// Day of the week. + public enum DesktopVirtualizationDayOfWeek + { + /// Monday. + Monday, + /// Tuesday. + Tuesday, + /// Wednesday. + Wednesday, + /// Thursday. + Thursday, + /// Friday. + Friday, + /// Saturday. + Saturday, + /// Sunday. + Sunday + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationMigrationProperties.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationMigrationProperties.Serialization.cs deleted file mode 100644 index 8711066f49a1..000000000000 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationMigrationProperties.Serialization.cs +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.DesktopVirtualization.Models -{ - public partial class DesktopVirtualizationMigrationProperties : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - if (Optional.IsDefined(Operation)) - { - writer.WritePropertyName("operation"u8); - writer.WriteStringValue(Operation.Value.ToString()); - } - if (Optional.IsDefined(MigrationPath)) - { - writer.WritePropertyName("migrationPath"u8); - writer.WriteStringValue(MigrationPath); - } - writer.WriteEndObject(); - } - - internal static DesktopVirtualizationMigrationProperties DeserializeDesktopVirtualizationMigrationProperties(JsonElement element) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - Optional operation = default; - Optional migrationPath = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("operation"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - operation = new MigrationOperation(property.Value.GetString()); - continue; - } - if (property.NameEquals("migrationPath"u8)) - { - migrationPath = property.Value.GetString(); - continue; - } - } - return new DesktopVirtualizationMigrationProperties(Optional.ToNullable(operation), migrationPath.Value); - } - } -} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolData.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolData.Serialization.cs index 4475d4213083..c775aaf7e76d 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolData.Serialization.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolData.Serialization.cs @@ -135,10 +135,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("startVMOnConnect"u8); writer.WriteBooleanValue(StartVmOnConnect.Value); } - if (Optional.IsDefined(MigrationRequest)) + if (Optional.IsDefined(AgentUpdate)) { - writer.WritePropertyName("migrationRequest"u8); - writer.WriteObjectValue(MigrationRequest); + writer.WritePropertyName("agentUpdate"u8); + writer.WriteObjectValue(AgentUpdate); } writer.WriteEndObject(); writer.WriteEndObject(); @@ -181,8 +181,8 @@ internal static HostPoolData DeserializeHostPoolData(JsonElement element) Optional ssoSecretType = default; PreferredAppGroupType preferredAppGroupType = default; Optional startVmOnConnect = default; - Optional migrationRequest = default; Optional cloudPCResource = default; + Optional agentUpdate = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("managedBy"u8)) @@ -419,29 +419,29 @@ internal static HostPoolData DeserializeHostPoolData(JsonElement element) startVmOnConnect = property0.Value.GetBoolean(); continue; } - if (property0.NameEquals("migrationRequest"u8)) + if (property0.NameEquals("cloudPcResource"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) { continue; } - migrationRequest = DesktopVirtualizationMigrationProperties.DeserializeDesktopVirtualizationMigrationProperties(property0.Value); + cloudPCResource = property0.Value.GetBoolean(); continue; } - if (property0.NameEquals("cloudPcResource"u8)) + if (property0.NameEquals("agentUpdate"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) { continue; } - cloudPCResource = property0.Value.GetBoolean(); + agentUpdate = SessionHostAgentUpdateProperties.DeserializeSessionHostAgentUpdateProperties(property0.Value); continue; } } continue; } } - return new HostPoolData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, objectId.Value, friendlyName.Value, description.Value, hostPoolType, Optional.ToNullable(personalDesktopAssignmentType), customRdpProperty.Value, Optional.ToNullable(maxSessionLimit), loadBalancerType, Optional.ToNullable(ring), Optional.ToNullable(validationEnvironment), registrationInfo.Value, vmTemplate.Value, Optional.ToList(applicationGroupReferences), ssoadfsAuthority.Value, ssoClientId.Value, ssoClientSecretKeyVaultPath.Value, Optional.ToNullable(ssoSecretType), preferredAppGroupType, Optional.ToNullable(startVmOnConnect), migrationRequest.Value, Optional.ToNullable(cloudPCResource), managedBy.Value, kind.Value, Optional.ToNullable(etag), identity, sku.Value, plan); + return new HostPoolData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, objectId.Value, friendlyName.Value, description.Value, hostPoolType, Optional.ToNullable(personalDesktopAssignmentType), customRdpProperty.Value, Optional.ToNullable(maxSessionLimit), loadBalancerType, Optional.ToNullable(ring), Optional.ToNullable(validationEnvironment), registrationInfo.Value, vmTemplate.Value, Optional.ToList(applicationGroupReferences), ssoadfsAuthority.Value, ssoClientId.Value, ssoClientSecretKeyVaultPath.Value, Optional.ToNullable(ssoSecretType), preferredAppGroupType, Optional.ToNullable(startVmOnConnect), Optional.ToNullable(cloudPCResource), agentUpdate.Value, managedBy.Value, kind.Value, Optional.ToNullable(etag), identity, sku.Value, plan); } } } 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 766efc27a597..5f653f0dfe26 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 @@ -110,6 +110,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("startVMOnConnect"u8); writer.WriteBooleanValue(StartVmOnConnect.Value); } + if (Optional.IsDefined(AgentUpdate)) + { + writer.WritePropertyName("agentUpdate"u8); + writer.WriteObjectValue(AgentUpdate); + } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -141,6 +146,7 @@ internal static HostPoolPatch DeserializeHostPoolPatch(JsonElement element) Optional ssoSecretType = default; Optional preferredAppGroupType = default; Optional startVmOnConnect = default; + Optional agentUpdate = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("tags"u8)) @@ -306,11 +312,20 @@ internal static HostPoolPatch DeserializeHostPoolPatch(JsonElement element) startVmOnConnect = property0.Value.GetBoolean(); continue; } + if (property0.NameEquals("agentUpdate"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + agentUpdate = SessionHostAgentUpdatePatchProperties.DeserializeSessionHostAgentUpdatePatchProperties(property0.Value); + continue; + } } continue; } } - return new HostPoolPatch(id, name, type, systemData.Value, Optional.ToDictionary(tags), friendlyName.Value, description.Value, customRdpProperty.Value, Optional.ToNullable(maxSessionLimit), Optional.ToNullable(personalDesktopAssignmentType), Optional.ToNullable(loadBalancerType), Optional.ToNullable(ring), Optional.ToNullable(validationEnvironment), registrationInfo.Value, vmTemplate.Value, ssoadfsAuthority.Value, ssoClientId.Value, ssoClientSecretKeyVaultPath.Value, Optional.ToNullable(ssoSecretType), Optional.ToNullable(preferredAppGroupType), Optional.ToNullable(startVmOnConnect)); + return new HostPoolPatch(id, name, type, systemData.Value, Optional.ToDictionary(tags), friendlyName.Value, description.Value, customRdpProperty.Value, Optional.ToNullable(maxSessionLimit), Optional.ToNullable(personalDesktopAssignmentType), Optional.ToNullable(loadBalancerType), Optional.ToNullable(ring), Optional.ToNullable(validationEnvironment), registrationInfo.Value, vmTemplate.Value, ssoadfsAuthority.Value, ssoClientId.Value, ssoClientSecretKeyVaultPath.Value, Optional.ToNullable(ssoSecretType), Optional.ToNullable(preferredAppGroupType), Optional.ToNullable(startVmOnConnect), agentUpdate.Value); } } } 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 836769bd3800..8366cde419cd 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolPatch.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolPatch.cs @@ -42,7 +42,8 @@ public HostPoolPatch() /// 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. - internal HostPoolPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, string friendlyName, string description, string customRdpProperty, int? maxSessionLimit, PersonalDesktopAssignmentType? personalDesktopAssignmentType, HostPoolLoadBalancerType? loadBalancerType, int? ring, bool? isValidationEnvironment, HostPoolRegistrationInfoPatch registrationInfo, string vmTemplate, string ssoAdfsAuthority, string ssoClientId, string ssoClientSecretKeyVaultPath, HostPoolSsoSecretType? ssoSecretType, PreferredAppGroupType? preferredAppGroupType, bool? startVmOnConnect) : base(id, name, resourceType, systemData) + /// The session host configuration for updating agent, monitoring agent, and stack component. + internal HostPoolPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, string friendlyName, string description, string customRdpProperty, int? maxSessionLimit, PersonalDesktopAssignmentType? personalDesktopAssignmentType, HostPoolLoadBalancerType? loadBalancerType, int? ring, bool? isValidationEnvironment, HostPoolRegistrationInfoPatch registrationInfo, string vmTemplate, string ssoAdfsAuthority, string ssoClientId, string ssoClientSecretKeyVaultPath, HostPoolSsoSecretType? ssoSecretType, PreferredAppGroupType? preferredAppGroupType, bool? startVmOnConnect, SessionHostAgentUpdatePatchProperties agentUpdate) : base(id, name, resourceType, systemData) { Tags = tags; FriendlyName = friendlyName; @@ -61,6 +62,7 @@ internal HostPoolPatch(ResourceIdentifier id, string name, ResourceType resource SsoSecretType = ssoSecretType; PreferredAppGroupType = preferredAppGroupType; StartVmOnConnect = startVmOnConnect; + AgentUpdate = agentUpdate; } /// tags to be updated. @@ -97,5 +99,7 @@ internal HostPoolPatch(ResourceIdentifier id, string name, ResourceType resource public PreferredAppGroupType? PreferredAppGroupType { get; set; } /// The flag to turn on/off StartVMOnConnect feature. public bool? StartVmOnConnect { get; set; } + /// The session host configuration for updating agent, monitoring agent, and stack component. + public SessionHostAgentUpdatePatchProperties AgentUpdate { get; set; } } } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/MaintenanceWindowPatchProperties.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/MaintenanceWindowPatchProperties.Serialization.cs new file mode 100644 index 000000000000..db949d830d82 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/MaintenanceWindowPatchProperties.Serialization.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + public partial class MaintenanceWindowPatchProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Hour)) + { + writer.WritePropertyName("hour"u8); + writer.WriteNumberValue(Hour.Value); + } + if (Optional.IsDefined(DayOfWeek)) + { + writer.WritePropertyName("dayOfWeek"u8); + writer.WriteStringValue(DayOfWeek.Value.ToSerialString()); + } + writer.WriteEndObject(); + } + + internal static MaintenanceWindowPatchProperties DeserializeMaintenanceWindowPatchProperties(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional hour = default; + Optional dayOfWeek = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("hour"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + hour = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("dayOfWeek"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + dayOfWeek = property.Value.GetString().ToDesktopVirtualizationDayOfWeek(); + continue; + } + } + return new MaintenanceWindowPatchProperties(Optional.ToNullable(hour), Optional.ToNullable(dayOfWeek)); + } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/MaintenanceWindowPatchProperties.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/MaintenanceWindowPatchProperties.cs new file mode 100644 index 000000000000..4df08fe40578 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/MaintenanceWindowPatchProperties.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + /// Maintenance window starting hour and day of week. + public partial class MaintenanceWindowPatchProperties + { + /// Initializes a new instance of MaintenanceWindowPatchProperties. + public MaintenanceWindowPatchProperties() + { + } + + /// Initializes a new instance of MaintenanceWindowPatchProperties. + /// The update start hour of the day. (0 - 23). + /// Day of the week. + internal MaintenanceWindowPatchProperties(int? hour, DesktopVirtualizationDayOfWeek? dayOfWeek) + { + Hour = hour; + DayOfWeek = dayOfWeek; + } + + /// The update start hour of the day. (0 - 23). + public int? Hour { get; set; } + /// Day of the week. + public DesktopVirtualizationDayOfWeek? DayOfWeek { get; set; } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingActionTime.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingActionTime.Serialization.cs new file mode 100644 index 000000000000..8e88fbf8ff1f --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingActionTime.Serialization.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + public partial class ScalingActionTime : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("hour"u8); + writer.WriteNumberValue(Hour); + writer.WritePropertyName("minute"u8); + writer.WriteNumberValue(Minute); + writer.WriteEndObject(); + } + + internal static ScalingActionTime DeserializeScalingActionTime(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + int hour = default; + int minute = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("hour"u8)) + { + hour = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("minute"u8)) + { + minute = property.Value.GetInt32(); + continue; + } + } + return new ScalingActionTime(hour, minute); + } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingActionTime.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingActionTime.cs new file mode 100644 index 000000000000..c16046ccfdac --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingActionTime.cs @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + /// The time for a scaling action to occur. + public partial class ScalingActionTime + { + /// Initializes a new instance of ScalingActionTime. + /// The hour. + /// The minute. + public ScalingActionTime(int hour, int minute) + { + Hour = hour; + Minute = minute; + } + + /// The hour. + public int Hour { get; set; } + /// The minute. + public int Minute { get; set; } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingHostPoolType.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingHostPoolType.cs new file mode 100644 index 000000000000..a75c6e8523df --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingHostPoolType.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + /// HostPool type for desktop. + public readonly partial struct ScalingHostPoolType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ScalingHostPoolType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string PooledValue = "Pooled"; + + /// Users get a new (random) SessionHost every time it connects to the HostPool. + public static ScalingHostPoolType Pooled { get; } = new ScalingHostPoolType(PooledValue); + /// Determines if two values are the same. + public static bool operator ==(ScalingHostPoolType left, ScalingHostPoolType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ScalingHostPoolType left, ScalingHostPoolType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ScalingHostPoolType(string value) => new ScalingHostPoolType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ScalingHostPoolType other && Equals(other); + /// + public bool Equals(ScalingHostPoolType 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/ScalingPlanData.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanData.Serialization.cs index 4ed689de5a38..453ca71250ba 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanData.Serialization.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanData.Serialization.cs @@ -69,15 +69,12 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("friendlyName"u8); writer.WriteStringValue(FriendlyName); } - if (Optional.IsDefined(TimeZone)) - { - writer.WritePropertyName("timeZone"u8); - writer.WriteStringValue(TimeZone); - } - if (Optional.IsDefined(HostPoolType)) + writer.WritePropertyName("timeZone"u8); + writer.WriteStringValue(TimeZone); + if (Optional.IsDefined(ScalingHostPoolType)) { writer.WritePropertyName("hostPoolType"u8); - writer.WriteStringValue(HostPoolType.Value.ToString()); + writer.WriteStringValue(ScalingHostPoolType.Value.ToString()); } if (Optional.IsDefined(ExclusionTag)) { @@ -129,8 +126,8 @@ internal static ScalingPlanData DeserializeScalingPlanData(JsonElement element) Optional objectId = default; Optional description = default; Optional friendlyName = default; - Optional timeZone = default; - Optional hostPoolType = default; + string timeZone = default; + Optional hostPoolType = default; Optional exclusionTag = default; Optional> schedules = default; Optional> hostPoolReferences = default; @@ -264,7 +261,7 @@ internal static ScalingPlanData DeserializeScalingPlanData(JsonElement element) { continue; } - hostPoolType = new HostPoolType(property0.Value.GetString()); + hostPoolType = new ScalingHostPoolType(property0.Value.GetString()); continue; } if (property0.NameEquals("exclusionTag"u8)) @@ -304,7 +301,7 @@ internal static ScalingPlanData DeserializeScalingPlanData(JsonElement element) continue; } } - return new ScalingPlanData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, objectId.Value, description.Value, friendlyName.Value, timeZone.Value, Optional.ToNullable(hostPoolType), exclusionTag.Value, Optional.ToList(schedules), Optional.ToList(hostPoolReferences), managedBy.Value, kind.Value, Optional.ToNullable(etag), identity, sku.Value, plan); + return new ScalingPlanData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, objectId.Value, description.Value, friendlyName.Value, timeZone, Optional.ToNullable(hostPoolType), exclusionTag.Value, Optional.ToList(schedules), Optional.ToList(hostPoolReferences), managedBy.Value, kind.Value, Optional.ToNullable(etag), identity, sku.Value, plan); } } } 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 69cb9069b8b0..f4b29115859c 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 @@ -43,11 +43,6 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("timeZone"u8); writer.WriteStringValue(TimeZone); } - if (Optional.IsDefined(HostPoolType)) - { - writer.WritePropertyName("hostPoolType"u8); - writer.WriteStringValue(HostPoolType.Value.ToString()); - } if (Optional.IsDefined(ExclusionTag)) { writer.WritePropertyName("exclusionTag"u8); 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 86e8af6d8166..c6d433911cbf 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPatch.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPatch.cs @@ -29,8 +29,6 @@ public ScalingPlanPatch() public string FriendlyName { get; set; } /// Timezone of the scaling plan. public string TimeZone { get; set; } - /// HostPool type for desktop. - public HostPoolType? HostPoolType { get; set; } /// Exclusion tag for scaling plan. public string ExclusionTag { get; set; } /// List of ScalingSchedule definitions. diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPooledScheduleData.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPooledScheduleData.Serialization.cs new file mode 100644 index 000000000000..02702a5b4324 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPooledScheduleData.Serialization.cs @@ -0,0 +1,340 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +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 ScalingPlanPooledScheduleData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(DaysOfWeek)) + { + writer.WritePropertyName("daysOfWeek"u8); + writer.WriteStartArray(); + foreach (var item in DaysOfWeek) + { + writer.WriteStringValue(item.ToSerialString()); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(RampUpStartTime)) + { + writer.WritePropertyName("rampUpStartTime"u8); + writer.WriteObjectValue(RampUpStartTime); + } + if (Optional.IsDefined(RampUpLoadBalancingAlgorithm)) + { + writer.WritePropertyName("rampUpLoadBalancingAlgorithm"u8); + writer.WriteStringValue(RampUpLoadBalancingAlgorithm.Value.ToString()); + } + if (Optional.IsDefined(RampUpMinimumHostsPct)) + { + writer.WritePropertyName("rampUpMinimumHostsPct"u8); + writer.WriteNumberValue(RampUpMinimumHostsPct.Value); + } + if (Optional.IsDefined(RampUpCapacityThresholdPct)) + { + writer.WritePropertyName("rampUpCapacityThresholdPct"u8); + writer.WriteNumberValue(RampUpCapacityThresholdPct.Value); + } + if (Optional.IsDefined(PeakStartTime)) + { + writer.WritePropertyName("peakStartTime"u8); + writer.WriteObjectValue(PeakStartTime); + } + if (Optional.IsDefined(PeakLoadBalancingAlgorithm)) + { + writer.WritePropertyName("peakLoadBalancingAlgorithm"u8); + writer.WriteStringValue(PeakLoadBalancingAlgorithm.Value.ToString()); + } + if (Optional.IsDefined(RampDownStartTime)) + { + writer.WritePropertyName("rampDownStartTime"u8); + writer.WriteObjectValue(RampDownStartTime); + } + if (Optional.IsDefined(RampDownLoadBalancingAlgorithm)) + { + writer.WritePropertyName("rampDownLoadBalancingAlgorithm"u8); + writer.WriteStringValue(RampDownLoadBalancingAlgorithm.Value.ToString()); + } + if (Optional.IsDefined(RampDownMinimumHostsPct)) + { + writer.WritePropertyName("rampDownMinimumHostsPct"u8); + writer.WriteNumberValue(RampDownMinimumHostsPct.Value); + } + if (Optional.IsDefined(RampDownCapacityThresholdPct)) + { + writer.WritePropertyName("rampDownCapacityThresholdPct"u8); + writer.WriteNumberValue(RampDownCapacityThresholdPct.Value); + } + if (Optional.IsDefined(RampDownForceLogoffUsers)) + { + writer.WritePropertyName("rampDownForceLogoffUsers"u8); + writer.WriteBooleanValue(RampDownForceLogoffUsers.Value); + } + if (Optional.IsDefined(RampDownStopHostsWhen)) + { + writer.WritePropertyName("rampDownStopHostsWhen"u8); + writer.WriteStringValue(RampDownStopHostsWhen.Value.ToString()); + } + if (Optional.IsDefined(RampDownWaitTimeMinutes)) + { + writer.WritePropertyName("rampDownWaitTimeMinutes"u8); + writer.WriteNumberValue(RampDownWaitTimeMinutes.Value); + } + if (Optional.IsDefined(RampDownNotificationMessage)) + { + writer.WritePropertyName("rampDownNotificationMessage"u8); + writer.WriteStringValue(RampDownNotificationMessage); + } + if (Optional.IsDefined(OffPeakStartTime)) + { + writer.WritePropertyName("offPeakStartTime"u8); + writer.WriteObjectValue(OffPeakStartTime); + } + if (Optional.IsDefined(OffPeakLoadBalancingAlgorithm)) + { + writer.WritePropertyName("offPeakLoadBalancingAlgorithm"u8); + writer.WriteStringValue(OffPeakLoadBalancingAlgorithm.Value.ToString()); + } + writer.WriteEndObject(); + writer.WriteEndObject(); + } + + internal static ScalingPlanPooledScheduleData DeserializeScalingPlanPooledScheduleData(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + Optional systemData = default; + Optional> daysOfWeek = default; + Optional rampUpStartTime = default; + Optional rampUpLoadBalancingAlgorithm = default; + Optional rampUpMinimumHostsPct = default; + Optional rampUpCapacityThresholdPct = default; + Optional peakStartTime = default; + Optional peakLoadBalancingAlgorithm = default; + Optional rampDownStartTime = default; + Optional rampDownLoadBalancingAlgorithm = default; + Optional rampDownMinimumHostsPct = default; + Optional rampDownCapacityThresholdPct = default; + Optional rampDownForceLogoffUsers = default; + Optional rampDownStopHostsWhen = default; + Optional rampDownWaitTimeMinutes = default; + Optional rampDownNotificationMessage = default; + Optional offPeakStartTime = default; + Optional offPeakLoadBalancingAlgorithm = default; + foreach (var property in element.EnumerateObject()) + { + 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 (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("daysOfWeek"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(item.GetString().ToDesktopVirtualizationDayOfWeek()); + } + daysOfWeek = array; + continue; + } + if (property0.NameEquals("rampUpStartTime"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rampUpStartTime = ScalingActionTime.DeserializeScalingActionTime(property0.Value); + continue; + } + if (property0.NameEquals("rampUpLoadBalancingAlgorithm"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rampUpLoadBalancingAlgorithm = new SessionHostLoadBalancingAlgorithm(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("rampUpMinimumHostsPct"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rampUpMinimumHostsPct = property0.Value.GetInt32(); + continue; + } + if (property0.NameEquals("rampUpCapacityThresholdPct"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rampUpCapacityThresholdPct = property0.Value.GetInt32(); + continue; + } + if (property0.NameEquals("peakStartTime"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + peakStartTime = ScalingActionTime.DeserializeScalingActionTime(property0.Value); + continue; + } + if (property0.NameEquals("peakLoadBalancingAlgorithm"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + peakLoadBalancingAlgorithm = new SessionHostLoadBalancingAlgorithm(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("rampDownStartTime"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rampDownStartTime = ScalingActionTime.DeserializeScalingActionTime(property0.Value); + continue; + } + if (property0.NameEquals("rampDownLoadBalancingAlgorithm"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rampDownLoadBalancingAlgorithm = new SessionHostLoadBalancingAlgorithm(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("rampDownMinimumHostsPct"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rampDownMinimumHostsPct = property0.Value.GetInt32(); + continue; + } + if (property0.NameEquals("rampDownCapacityThresholdPct"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rampDownCapacityThresholdPct = property0.Value.GetInt32(); + continue; + } + if (property0.NameEquals("rampDownForceLogoffUsers"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rampDownForceLogoffUsers = property0.Value.GetBoolean(); + continue; + } + if (property0.NameEquals("rampDownStopHostsWhen"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rampDownStopHostsWhen = new DesktopVirtualizationStopHostsWhen(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("rampDownWaitTimeMinutes"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rampDownWaitTimeMinutes = property0.Value.GetInt32(); + continue; + } + if (property0.NameEquals("rampDownNotificationMessage"u8)) + { + rampDownNotificationMessage = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("offPeakStartTime"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + offPeakStartTime = ScalingActionTime.DeserializeScalingActionTime(property0.Value); + continue; + } + if (property0.NameEquals("offPeakLoadBalancingAlgorithm"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + offPeakLoadBalancingAlgorithm = new SessionHostLoadBalancingAlgorithm(property0.Value.GetString()); + continue; + } + } + continue; + } + } + return new ScalingPlanPooledScheduleData(id, name, type, systemData.Value, Optional.ToList(daysOfWeek), rampUpStartTime.Value, Optional.ToNullable(rampUpLoadBalancingAlgorithm), Optional.ToNullable(rampUpMinimumHostsPct), Optional.ToNullable(rampUpCapacityThresholdPct), peakStartTime.Value, Optional.ToNullable(peakLoadBalancingAlgorithm), rampDownStartTime.Value, Optional.ToNullable(rampDownLoadBalancingAlgorithm), Optional.ToNullable(rampDownMinimumHostsPct), Optional.ToNullable(rampDownCapacityThresholdPct), Optional.ToNullable(rampDownForceLogoffUsers), Optional.ToNullable(rampDownStopHostsWhen), Optional.ToNullable(rampDownWaitTimeMinutes), rampDownNotificationMessage.Value, offPeakStartTime.Value, Optional.ToNullable(offPeakLoadBalancingAlgorithm)); + } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPooledScheduleList.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPooledScheduleList.Serialization.cs new file mode 100644 index 000000000000..f3e8a41c4877 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPooledScheduleList.Serialization.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.DesktopVirtualization; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + internal partial class ScalingPlanPooledScheduleList + { + internal static ScalingPlanPooledScheduleList DeserializeScalingPlanPooledScheduleList(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional> value = default; + Optional nextLink = default; + 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(ScalingPlanPooledScheduleData.DeserializeScalingPlanPooledScheduleData(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new ScalingPlanPooledScheduleList(Optional.ToList(value), nextLink.Value); + } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPooledScheduleList.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPooledScheduleList.cs new file mode 100644 index 000000000000..de3a6a100bcd --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPooledScheduleList.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.DesktopVirtualization; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + /// List of ScalingPlanPooledSchedule definitions. + internal partial class ScalingPlanPooledScheduleList + { + /// Initializes a new instance of ScalingPlanPooledScheduleList. + internal ScalingPlanPooledScheduleList() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of ScalingPlanPooledScheduleList. + /// List of ScalingPlanPooledSchedule definitions. + /// Link to the next page of results. + internal ScalingPlanPooledScheduleList(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// List of ScalingPlanPooledSchedule 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/ScalingPlanPooledSchedulePatch.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPooledSchedulePatch.Serialization.cs new file mode 100644 index 000000000000..c41e669f4324 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPooledSchedulePatch.Serialization.cs @@ -0,0 +1,339 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + public partial class ScalingPlanPooledSchedulePatch : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(DaysOfWeek)) + { + writer.WritePropertyName("daysOfWeek"u8); + writer.WriteStartArray(); + foreach (var item in DaysOfWeek) + { + writer.WriteStringValue(item.ToSerialString()); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(RampUpStartTime)) + { + writer.WritePropertyName("rampUpStartTime"u8); + writer.WriteObjectValue(RampUpStartTime); + } + if (Optional.IsDefined(RampUpLoadBalancingAlgorithm)) + { + writer.WritePropertyName("rampUpLoadBalancingAlgorithm"u8); + writer.WriteStringValue(RampUpLoadBalancingAlgorithm.Value.ToString()); + } + if (Optional.IsDefined(RampUpMinimumHostsPct)) + { + writer.WritePropertyName("rampUpMinimumHostsPct"u8); + writer.WriteNumberValue(RampUpMinimumHostsPct.Value); + } + if (Optional.IsDefined(RampUpCapacityThresholdPct)) + { + writer.WritePropertyName("rampUpCapacityThresholdPct"u8); + writer.WriteNumberValue(RampUpCapacityThresholdPct.Value); + } + if (Optional.IsDefined(PeakStartTime)) + { + writer.WritePropertyName("peakStartTime"u8); + writer.WriteObjectValue(PeakStartTime); + } + if (Optional.IsDefined(PeakLoadBalancingAlgorithm)) + { + writer.WritePropertyName("peakLoadBalancingAlgorithm"u8); + writer.WriteStringValue(PeakLoadBalancingAlgorithm.Value.ToString()); + } + if (Optional.IsDefined(RampDownStartTime)) + { + writer.WritePropertyName("rampDownStartTime"u8); + writer.WriteObjectValue(RampDownStartTime); + } + if (Optional.IsDefined(RampDownLoadBalancingAlgorithm)) + { + writer.WritePropertyName("rampDownLoadBalancingAlgorithm"u8); + writer.WriteStringValue(RampDownLoadBalancingAlgorithm.Value.ToString()); + } + if (Optional.IsDefined(RampDownMinimumHostsPct)) + { + writer.WritePropertyName("rampDownMinimumHostsPct"u8); + writer.WriteNumberValue(RampDownMinimumHostsPct.Value); + } + if (Optional.IsDefined(RampDownCapacityThresholdPct)) + { + writer.WritePropertyName("rampDownCapacityThresholdPct"u8); + writer.WriteNumberValue(RampDownCapacityThresholdPct.Value); + } + if (Optional.IsDefined(RampDownForceLogoffUsers)) + { + writer.WritePropertyName("rampDownForceLogoffUsers"u8); + writer.WriteBooleanValue(RampDownForceLogoffUsers.Value); + } + if (Optional.IsDefined(RampDownStopHostsWhen)) + { + writer.WritePropertyName("rampDownStopHostsWhen"u8); + writer.WriteStringValue(RampDownStopHostsWhen.Value.ToString()); + } + if (Optional.IsDefined(RampDownWaitTimeMinutes)) + { + writer.WritePropertyName("rampDownWaitTimeMinutes"u8); + writer.WriteNumberValue(RampDownWaitTimeMinutes.Value); + } + if (Optional.IsDefined(RampDownNotificationMessage)) + { + writer.WritePropertyName("rampDownNotificationMessage"u8); + writer.WriteStringValue(RampDownNotificationMessage); + } + if (Optional.IsDefined(OffPeakStartTime)) + { + writer.WritePropertyName("offPeakStartTime"u8); + writer.WriteObjectValue(OffPeakStartTime); + } + if (Optional.IsDefined(OffPeakLoadBalancingAlgorithm)) + { + writer.WritePropertyName("offPeakLoadBalancingAlgorithm"u8); + writer.WriteStringValue(OffPeakLoadBalancingAlgorithm.Value.ToString()); + } + writer.WriteEndObject(); + writer.WriteEndObject(); + } + + internal static ScalingPlanPooledSchedulePatch DeserializeScalingPlanPooledSchedulePatch(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + Optional systemData = default; + Optional> daysOfWeek = default; + Optional rampUpStartTime = default; + Optional rampUpLoadBalancingAlgorithm = default; + Optional rampUpMinimumHostsPct = default; + Optional rampUpCapacityThresholdPct = default; + Optional peakStartTime = default; + Optional peakLoadBalancingAlgorithm = default; + Optional rampDownStartTime = default; + Optional rampDownLoadBalancingAlgorithm = default; + Optional rampDownMinimumHostsPct = default; + Optional rampDownCapacityThresholdPct = default; + Optional rampDownForceLogoffUsers = default; + Optional rampDownStopHostsWhen = default; + Optional rampDownWaitTimeMinutes = default; + Optional rampDownNotificationMessage = default; + Optional offPeakStartTime = default; + Optional offPeakLoadBalancingAlgorithm = default; + foreach (var property in element.EnumerateObject()) + { + 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 (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("daysOfWeek"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(item.GetString().ToDesktopVirtualizationDayOfWeek()); + } + daysOfWeek = array; + continue; + } + if (property0.NameEquals("rampUpStartTime"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rampUpStartTime = ScalingActionTime.DeserializeScalingActionTime(property0.Value); + continue; + } + if (property0.NameEquals("rampUpLoadBalancingAlgorithm"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rampUpLoadBalancingAlgorithm = new SessionHostLoadBalancingAlgorithm(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("rampUpMinimumHostsPct"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rampUpMinimumHostsPct = property0.Value.GetInt32(); + continue; + } + if (property0.NameEquals("rampUpCapacityThresholdPct"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rampUpCapacityThresholdPct = property0.Value.GetInt32(); + continue; + } + if (property0.NameEquals("peakStartTime"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + peakStartTime = ScalingActionTime.DeserializeScalingActionTime(property0.Value); + continue; + } + if (property0.NameEquals("peakLoadBalancingAlgorithm"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + peakLoadBalancingAlgorithm = new SessionHostLoadBalancingAlgorithm(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("rampDownStartTime"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rampDownStartTime = ScalingActionTime.DeserializeScalingActionTime(property0.Value); + continue; + } + if (property0.NameEquals("rampDownLoadBalancingAlgorithm"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rampDownLoadBalancingAlgorithm = new SessionHostLoadBalancingAlgorithm(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("rampDownMinimumHostsPct"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rampDownMinimumHostsPct = property0.Value.GetInt32(); + continue; + } + if (property0.NameEquals("rampDownCapacityThresholdPct"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rampDownCapacityThresholdPct = property0.Value.GetInt32(); + continue; + } + if (property0.NameEquals("rampDownForceLogoffUsers"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rampDownForceLogoffUsers = property0.Value.GetBoolean(); + continue; + } + if (property0.NameEquals("rampDownStopHostsWhen"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rampDownStopHostsWhen = new DesktopVirtualizationStopHostsWhen(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("rampDownWaitTimeMinutes"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rampDownWaitTimeMinutes = property0.Value.GetInt32(); + continue; + } + if (property0.NameEquals("rampDownNotificationMessage"u8)) + { + rampDownNotificationMessage = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("offPeakStartTime"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + offPeakStartTime = ScalingActionTime.DeserializeScalingActionTime(property0.Value); + continue; + } + if (property0.NameEquals("offPeakLoadBalancingAlgorithm"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + offPeakLoadBalancingAlgorithm = new SessionHostLoadBalancingAlgorithm(property0.Value.GetString()); + continue; + } + } + continue; + } + } + return new ScalingPlanPooledSchedulePatch(id, name, type, systemData.Value, Optional.ToList(daysOfWeek), rampUpStartTime.Value, Optional.ToNullable(rampUpLoadBalancingAlgorithm), Optional.ToNullable(rampUpMinimumHostsPct), Optional.ToNullable(rampUpCapacityThresholdPct), peakStartTime.Value, Optional.ToNullable(peakLoadBalancingAlgorithm), rampDownStartTime.Value, Optional.ToNullable(rampDownLoadBalancingAlgorithm), Optional.ToNullable(rampDownMinimumHostsPct), Optional.ToNullable(rampDownCapacityThresholdPct), Optional.ToNullable(rampDownForceLogoffUsers), Optional.ToNullable(rampDownStopHostsWhen), Optional.ToNullable(rampDownWaitTimeMinutes), rampDownNotificationMessage.Value, offPeakStartTime.Value, Optional.ToNullable(offPeakLoadBalancingAlgorithm)); + } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPooledSchedulePatch.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPooledSchedulePatch.cs new file mode 100644 index 000000000000..38cd4e249122 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPooledSchedulePatch.cs @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + /// ScalingPlanPooledSchedule properties that can be patched. + public partial class ScalingPlanPooledSchedulePatch : ResourceData + { + /// Initializes a new instance of ScalingPlanPooledSchedulePatch. + public ScalingPlanPooledSchedulePatch() + { + DaysOfWeek = new ChangeTrackingList(); + } + + /// Initializes a new instance of ScalingPlanPooledSchedulePatch. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Set of days of the week on which this schedule is active. + /// Starting time for ramp up period. + /// Load balancing algorithm for ramp up period. + /// Minimum host percentage for ramp up period. + /// Capacity threshold for ramp up period. + /// Starting time for peak period. + /// Load balancing algorithm for peak period. + /// Starting time for ramp down period. + /// Load balancing algorithm for ramp down period. + /// Minimum host percentage for ramp down period. + /// Capacity threshold for ramp down period. + /// Should users be logged off forcefully from hosts. + /// Specifies when to stop hosts during ramp down period. + /// Number of minutes to wait to stop hosts during ramp down period. + /// Notification message for users during ramp down period. + /// Starting time for off-peak period. + /// Load balancing algorithm for off-peak period. + internal ScalingPlanPooledSchedulePatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IList daysOfWeek, ScalingActionTime rampUpStartTime, SessionHostLoadBalancingAlgorithm? rampUpLoadBalancingAlgorithm, int? rampUpMinimumHostsPct, int? rampUpCapacityThresholdPct, ScalingActionTime peakStartTime, SessionHostLoadBalancingAlgorithm? peakLoadBalancingAlgorithm, ScalingActionTime rampDownStartTime, SessionHostLoadBalancingAlgorithm? rampDownLoadBalancingAlgorithm, int? rampDownMinimumHostsPct, int? rampDownCapacityThresholdPct, bool? rampDownForceLogoffUsers, DesktopVirtualizationStopHostsWhen? rampDownStopHostsWhen, int? rampDownWaitTimeMinutes, string rampDownNotificationMessage, ScalingActionTime offPeakStartTime, SessionHostLoadBalancingAlgorithm? offPeakLoadBalancingAlgorithm) : base(id, name, resourceType, systemData) + { + DaysOfWeek = daysOfWeek; + RampUpStartTime = rampUpStartTime; + RampUpLoadBalancingAlgorithm = rampUpLoadBalancingAlgorithm; + RampUpMinimumHostsPct = rampUpMinimumHostsPct; + RampUpCapacityThresholdPct = rampUpCapacityThresholdPct; + PeakStartTime = peakStartTime; + PeakLoadBalancingAlgorithm = peakLoadBalancingAlgorithm; + RampDownStartTime = rampDownStartTime; + RampDownLoadBalancingAlgorithm = rampDownLoadBalancingAlgorithm; + RampDownMinimumHostsPct = rampDownMinimumHostsPct; + RampDownCapacityThresholdPct = rampDownCapacityThresholdPct; + RampDownForceLogoffUsers = rampDownForceLogoffUsers; + RampDownStopHostsWhen = rampDownStopHostsWhen; + RampDownWaitTimeMinutes = rampDownWaitTimeMinutes; + RampDownNotificationMessage = rampDownNotificationMessage; + OffPeakStartTime = offPeakStartTime; + OffPeakLoadBalancingAlgorithm = offPeakLoadBalancingAlgorithm; + } + + /// Set of days of the week on which this schedule is active. + public IList DaysOfWeek { get; } + /// Starting time for ramp up period. + public ScalingActionTime RampUpStartTime { get; set; } + /// Load balancing algorithm for ramp up period. + public SessionHostLoadBalancingAlgorithm? RampUpLoadBalancingAlgorithm { get; set; } + /// Minimum host percentage for ramp up period. + public int? RampUpMinimumHostsPct { get; set; } + /// Capacity threshold for ramp up period. + public int? RampUpCapacityThresholdPct { get; set; } + /// Starting time for peak period. + public ScalingActionTime PeakStartTime { get; set; } + /// Load balancing algorithm for peak period. + public SessionHostLoadBalancingAlgorithm? PeakLoadBalancingAlgorithm { get; set; } + /// Starting time for ramp down period. + public ScalingActionTime RampDownStartTime { get; set; } + /// Load balancing algorithm for ramp down period. + public SessionHostLoadBalancingAlgorithm? RampDownLoadBalancingAlgorithm { get; set; } + /// Minimum host percentage for ramp down period. + public int? RampDownMinimumHostsPct { get; set; } + /// Capacity threshold for ramp down period. + public int? RampDownCapacityThresholdPct { get; set; } + /// Should users be logged off forcefully from hosts. + public bool? RampDownForceLogoffUsers { get; set; } + /// Specifies when to stop hosts during ramp down period. + public DesktopVirtualizationStopHostsWhen? RampDownStopHostsWhen { get; set; } + /// Number of minutes to wait to stop hosts during ramp down period. + public int? RampDownWaitTimeMinutes { get; set; } + /// Notification message for users during ramp down period. + public string RampDownNotificationMessage { get; set; } + /// Starting time for off-peak period. + public ScalingActionTime OffPeakStartTime { get; set; } + /// Load balancing algorithm for off-peak period. + public SessionHostLoadBalancingAlgorithm? OffPeakLoadBalancingAlgorithm { get; set; } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingSchedule.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingSchedule.Serialization.cs index 1761614d6969..dd1e47100072 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingSchedule.Serialization.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingSchedule.Serialization.cs @@ -5,7 +5,6 @@ #nullable disable -using System; using System.Collections.Generic; using System.Text.Json; using Azure.Core; @@ -32,10 +31,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } - if (Optional.IsDefined(RampUpStartOn)) + if (Optional.IsDefined(RampUpStartTime)) { writer.WritePropertyName("rampUpStartTime"u8); - writer.WriteStringValue(RampUpStartOn.Value, "O"); + writer.WriteObjectValue(RampUpStartTime); } if (Optional.IsDefined(RampUpLoadBalancingAlgorithm)) { @@ -52,20 +51,20 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("rampUpCapacityThresholdPct"u8); writer.WriteNumberValue(RampUpCapacityThresholdPct.Value); } - if (Optional.IsDefined(PeakStartOn)) + if (Optional.IsDefined(PeakStartTime)) { writer.WritePropertyName("peakStartTime"u8); - writer.WriteStringValue(PeakStartOn.Value, "O"); + writer.WriteObjectValue(PeakStartTime); } if (Optional.IsDefined(PeakLoadBalancingAlgorithm)) { writer.WritePropertyName("peakLoadBalancingAlgorithm"u8); writer.WriteStringValue(PeakLoadBalancingAlgorithm.Value.ToString()); } - if (Optional.IsDefined(RampDownStartOn)) + if (Optional.IsDefined(RampDownStartTime)) { writer.WritePropertyName("rampDownStartTime"u8); - writer.WriteStringValue(RampDownStartOn.Value, "O"); + writer.WriteObjectValue(RampDownStartTime); } if (Optional.IsDefined(RampDownLoadBalancingAlgorithm)) { @@ -102,10 +101,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("rampDownNotificationMessage"u8); writer.WriteStringValue(RampDownNotificationMessage); } - if (Optional.IsDefined(OffPeakStartOn)) + if (Optional.IsDefined(OffPeakStartTime)) { writer.WritePropertyName("offPeakStartTime"u8); - writer.WriteStringValue(OffPeakStartOn.Value, "O"); + writer.WriteObjectValue(OffPeakStartTime); } if (Optional.IsDefined(OffPeakLoadBalancingAlgorithm)) { @@ -123,13 +122,13 @@ internal static ScalingSchedule DeserializeScalingSchedule(JsonElement element) } Optional name = default; Optional> daysOfWeek = default; - Optional rampUpStartTime = default; + Optional rampUpStartTime = default; Optional rampUpLoadBalancingAlgorithm = default; Optional rampUpMinimumHostsPct = default; Optional rampUpCapacityThresholdPct = default; - Optional peakStartTime = default; + Optional peakStartTime = default; Optional peakLoadBalancingAlgorithm = default; - Optional rampDownStartTime = default; + Optional rampDownStartTime = default; Optional rampDownLoadBalancingAlgorithm = default; Optional rampDownMinimumHostsPct = default; Optional rampDownCapacityThresholdPct = default; @@ -137,7 +136,7 @@ internal static ScalingSchedule DeserializeScalingSchedule(JsonElement element) Optional rampDownStopHostsWhen = default; Optional rampDownWaitTimeMinutes = default; Optional rampDownNotificationMessage = default; - Optional offPeakStartTime = default; + Optional offPeakStartTime = default; Optional offPeakLoadBalancingAlgorithm = default; foreach (var property in element.EnumerateObject()) { @@ -166,7 +165,7 @@ internal static ScalingSchedule DeserializeScalingSchedule(JsonElement element) { continue; } - rampUpStartTime = property.Value.GetDateTimeOffset("O"); + rampUpStartTime = ScalingActionTime.DeserializeScalingActionTime(property.Value); continue; } if (property.NameEquals("rampUpLoadBalancingAlgorithm"u8)) @@ -202,7 +201,7 @@ internal static ScalingSchedule DeserializeScalingSchedule(JsonElement element) { continue; } - peakStartTime = property.Value.GetDateTimeOffset("O"); + peakStartTime = ScalingActionTime.DeserializeScalingActionTime(property.Value); continue; } if (property.NameEquals("peakLoadBalancingAlgorithm"u8)) @@ -220,7 +219,7 @@ internal static ScalingSchedule DeserializeScalingSchedule(JsonElement element) { continue; } - rampDownStartTime = property.Value.GetDateTimeOffset("O"); + rampDownStartTime = ScalingActionTime.DeserializeScalingActionTime(property.Value); continue; } if (property.NameEquals("rampDownLoadBalancingAlgorithm"u8)) @@ -288,7 +287,7 @@ internal static ScalingSchedule DeserializeScalingSchedule(JsonElement element) { continue; } - offPeakStartTime = property.Value.GetDateTimeOffset("O"); + offPeakStartTime = ScalingActionTime.DeserializeScalingActionTime(property.Value); continue; } if (property.NameEquals("offPeakLoadBalancingAlgorithm"u8)) @@ -301,7 +300,7 @@ internal static ScalingSchedule DeserializeScalingSchedule(JsonElement element) continue; } } - return new ScalingSchedule(name.Value, Optional.ToList(daysOfWeek), Optional.ToNullable(rampUpStartTime), Optional.ToNullable(rampUpLoadBalancingAlgorithm), Optional.ToNullable(rampUpMinimumHostsPct), Optional.ToNullable(rampUpCapacityThresholdPct), Optional.ToNullable(peakStartTime), Optional.ToNullable(peakLoadBalancingAlgorithm), Optional.ToNullable(rampDownStartTime), Optional.ToNullable(rampDownLoadBalancingAlgorithm), Optional.ToNullable(rampDownMinimumHostsPct), Optional.ToNullable(rampDownCapacityThresholdPct), Optional.ToNullable(rampDownForceLogoffUsers), Optional.ToNullable(rampDownStopHostsWhen), Optional.ToNullable(rampDownWaitTimeMinutes), rampDownNotificationMessage.Value, Optional.ToNullable(offPeakStartTime), Optional.ToNullable(offPeakLoadBalancingAlgorithm)); + return new ScalingSchedule(name.Value, Optional.ToList(daysOfWeek), rampUpStartTime.Value, Optional.ToNullable(rampUpLoadBalancingAlgorithm), Optional.ToNullable(rampUpMinimumHostsPct), Optional.ToNullable(rampUpCapacityThresholdPct), peakStartTime.Value, Optional.ToNullable(peakLoadBalancingAlgorithm), rampDownStartTime.Value, Optional.ToNullable(rampDownLoadBalancingAlgorithm), Optional.ToNullable(rampDownMinimumHostsPct), Optional.ToNullable(rampDownCapacityThresholdPct), Optional.ToNullable(rampDownForceLogoffUsers), Optional.ToNullable(rampDownStopHostsWhen), Optional.ToNullable(rampDownWaitTimeMinutes), rampDownNotificationMessage.Value, offPeakStartTime.Value, Optional.ToNullable(offPeakLoadBalancingAlgorithm)); } } } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingSchedule.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingSchedule.cs index 53023822901a..fccd9c49fcf4 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingSchedule.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingSchedule.cs @@ -5,13 +5,12 @@ #nullable disable -using System; using System.Collections.Generic; using Azure.Core; namespace Azure.ResourceManager.DesktopVirtualization.Models { - /// Scaling plan schedule. + /// A ScalingPlanPooledSchedule. public partial class ScalingSchedule { /// Initializes a new instance of ScalingSchedule. @@ -21,15 +20,15 @@ public ScalingSchedule() } /// Initializes a new instance of ScalingSchedule. - /// Name of the scaling schedule. + /// Name of the ScalingPlanPooledSchedule. /// Set of days of the week on which this schedule is active. - /// Starting time for ramp up period. + /// Starting time for ramp up period. /// Load balancing algorithm for ramp up period. /// Minimum host percentage for ramp up period. /// Capacity threshold for ramp up period. - /// Starting time for peak period. + /// Starting time for peak period. /// Load balancing algorithm for peak period. - /// Starting time for ramp down period. + /// Starting time for ramp down period. /// Load balancing algorithm for ramp down period. /// Minimum host percentage for ramp down period. /// Capacity threshold for ramp down period. @@ -37,19 +36,19 @@ public ScalingSchedule() /// Specifies when to stop hosts during ramp down period. /// Number of minutes to wait to stop hosts during ramp down period. /// Notification message for users during ramp down period. - /// Starting time for off-peak period. + /// Starting time for off-peak period. /// Load balancing algorithm for off-peak period. - internal ScalingSchedule(string name, IList daysOfWeek, DateTimeOffset? rampUpStartOn, SessionHostLoadBalancingAlgorithm? rampUpLoadBalancingAlgorithm, int? rampUpMinimumHostsPct, int? rampUpCapacityThresholdPct, DateTimeOffset? peakStartOn, SessionHostLoadBalancingAlgorithm? peakLoadBalancingAlgorithm, DateTimeOffset? rampDownStartOn, SessionHostLoadBalancingAlgorithm? rampDownLoadBalancingAlgorithm, int? rampDownMinimumHostsPct, int? rampDownCapacityThresholdPct, bool? rampDownForceLogoffUsers, DesktopVirtualizationStopHostsWhen? rampDownStopHostsWhen, int? rampDownWaitTimeMinutes, string rampDownNotificationMessage, DateTimeOffset? offPeakStartOn, SessionHostLoadBalancingAlgorithm? offPeakLoadBalancingAlgorithm) + internal ScalingSchedule(string name, IList daysOfWeek, ScalingActionTime rampUpStartTime, SessionHostLoadBalancingAlgorithm? rampUpLoadBalancingAlgorithm, int? rampUpMinimumHostsPct, int? rampUpCapacityThresholdPct, ScalingActionTime peakStartTime, SessionHostLoadBalancingAlgorithm? peakLoadBalancingAlgorithm, ScalingActionTime rampDownStartTime, SessionHostLoadBalancingAlgorithm? rampDownLoadBalancingAlgorithm, int? rampDownMinimumHostsPct, int? rampDownCapacityThresholdPct, bool? rampDownForceLogoffUsers, DesktopVirtualizationStopHostsWhen? rampDownStopHostsWhen, int? rampDownWaitTimeMinutes, string rampDownNotificationMessage, ScalingActionTime offPeakStartTime, SessionHostLoadBalancingAlgorithm? offPeakLoadBalancingAlgorithm) { Name = name; DaysOfWeek = daysOfWeek; - RampUpStartOn = rampUpStartOn; + RampUpStartTime = rampUpStartTime; RampUpLoadBalancingAlgorithm = rampUpLoadBalancingAlgorithm; RampUpMinimumHostsPct = rampUpMinimumHostsPct; RampUpCapacityThresholdPct = rampUpCapacityThresholdPct; - PeakStartOn = peakStartOn; + PeakStartTime = peakStartTime; PeakLoadBalancingAlgorithm = peakLoadBalancingAlgorithm; - RampDownStartOn = rampDownStartOn; + RampDownStartTime = rampDownStartTime; RampDownLoadBalancingAlgorithm = rampDownLoadBalancingAlgorithm; RampDownMinimumHostsPct = rampDownMinimumHostsPct; RampDownCapacityThresholdPct = rampDownCapacityThresholdPct; @@ -57,16 +56,16 @@ internal ScalingSchedule(string name, IList daysO RampDownStopHostsWhen = rampDownStopHostsWhen; RampDownWaitTimeMinutes = rampDownWaitTimeMinutes; RampDownNotificationMessage = rampDownNotificationMessage; - OffPeakStartOn = offPeakStartOn; + OffPeakStartTime = offPeakStartTime; OffPeakLoadBalancingAlgorithm = offPeakLoadBalancingAlgorithm; } - /// Name of the scaling schedule. + /// Name of the ScalingPlanPooledSchedule. public string Name { get; set; } /// Set of days of the week on which this schedule is active. public IList DaysOfWeek { get; } /// Starting time for ramp up period. - public DateTimeOffset? RampUpStartOn { get; set; } + public ScalingActionTime RampUpStartTime { get; set; } /// Load balancing algorithm for ramp up period. public SessionHostLoadBalancingAlgorithm? RampUpLoadBalancingAlgorithm { get; set; } /// Minimum host percentage for ramp up period. @@ -74,11 +73,11 @@ internal ScalingSchedule(string name, IList daysO /// Capacity threshold for ramp up period. public int? RampUpCapacityThresholdPct { get; set; } /// Starting time for peak period. - public DateTimeOffset? PeakStartOn { get; set; } + public ScalingActionTime PeakStartTime { get; set; } /// Load balancing algorithm for peak period. public SessionHostLoadBalancingAlgorithm? PeakLoadBalancingAlgorithm { get; set; } /// Starting time for ramp down period. - public DateTimeOffset? RampDownStartOn { get; set; } + public ScalingActionTime RampDownStartTime { get; set; } /// Load balancing algorithm for ramp down period. public SessionHostLoadBalancingAlgorithm? RampDownLoadBalancingAlgorithm { get; set; } /// Minimum host percentage for ramp down period. @@ -94,7 +93,7 @@ internal ScalingSchedule(string name, IList daysO /// Notification message for users during ramp down period. public string RampDownNotificationMessage { get; set; } /// Starting time for off-peak period. - public DateTimeOffset? OffPeakStartOn { get; set; } + public ScalingActionTime OffPeakStartTime { get; set; } /// Load balancing algorithm for off-peak period. public SessionHostLoadBalancingAlgorithm? OffPeakLoadBalancingAlgorithm { get; set; } } 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 new file mode 100644 index 000000000000..a0d27b085f32 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdatePatchProperties.Serialization.cs @@ -0,0 +1,100 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + public partial class SessionHostAgentUpdatePatchProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(UpdateType)) + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(UpdateType.Value.ToString()); + } + if (Optional.IsDefined(DoesUseSessionHostLocalTime)) + { + writer.WritePropertyName("useSessionHostLocalTime"u8); + writer.WriteBooleanValue(DoesUseSessionHostLocalTime.Value); + } + if (Optional.IsDefined(MaintenanceWindowTimeZone)) + { + writer.WritePropertyName("maintenanceWindowTimeZone"u8); + writer.WriteStringValue(MaintenanceWindowTimeZone); + } + if (Optional.IsCollectionDefined(MaintenanceWindows)) + { + writer.WritePropertyName("maintenanceWindows"u8); + writer.WriteStartArray(); + foreach (var item in MaintenanceWindows) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + internal static SessionHostAgentUpdatePatchProperties DeserializeSessionHostAgentUpdatePatchProperties(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional type = default; + Optional useSessionHostLocalTime = default; + Optional maintenanceWindowTimeZone = default; + Optional> maintenanceWindows = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("type"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = new SessionHostComponentUpdateType(property.Value.GetString()); + continue; + } + if (property.NameEquals("useSessionHostLocalTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + useSessionHostLocalTime = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("maintenanceWindowTimeZone"u8)) + { + maintenanceWindowTimeZone = property.Value.GetString(); + continue; + } + if (property.NameEquals("maintenanceWindows"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(MaintenanceWindowPatchProperties.DeserializeMaintenanceWindowPatchProperties(item)); + } + maintenanceWindows = array; + continue; + } + } + return new SessionHostAgentUpdatePatchProperties(Optional.ToNullable(type), Optional.ToNullable(useSessionHostLocalTime), maintenanceWindowTimeZone.Value, Optional.ToList(maintenanceWindows)); + } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdatePatchProperties.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdatePatchProperties.cs new file mode 100644 index 000000000000..17b0e5a70744 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdatePatchProperties.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + /// The session host configuration for updating agent, monitoring agent, and stack component. + public partial class SessionHostAgentUpdatePatchProperties + { + /// Initializes a new instance of SessionHostAgentUpdatePatchProperties. + public SessionHostAgentUpdatePatchProperties() + { + MaintenanceWindows = new ChangeTrackingList(); + } + + /// Initializes a new instance of SessionHostAgentUpdatePatchProperties. + /// The type of maintenance for session host components. + /// Whether to use localTime of the virtual machine. + /// 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. + /// List of maintenance windows. Maintenance windows are 2 hours long. + internal SessionHostAgentUpdatePatchProperties(SessionHostComponentUpdateType? updateType, bool? doesUseSessionHostLocalTime, string maintenanceWindowTimeZone, IList maintenanceWindows) + { + UpdateType = updateType; + DoesUseSessionHostLocalTime = doesUseSessionHostLocalTime; + MaintenanceWindowTimeZone = maintenanceWindowTimeZone; + MaintenanceWindows = maintenanceWindows; + } + + /// The type of maintenance for session host components. + public SessionHostComponentUpdateType? UpdateType { get; set; } + /// Whether to use localTime of the virtual machine. + public bool? DoesUseSessionHostLocalTime { get; set; } + /// 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; } + } +} 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 new file mode 100644 index 000000000000..9f5f6b2d10c3 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdateProperties.Serialization.cs @@ -0,0 +1,100 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + public partial class SessionHostAgentUpdateProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(UpdateType)) + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(UpdateType.Value.ToString()); + } + if (Optional.IsDefined(DoesUseSessionHostLocalTime)) + { + writer.WritePropertyName("useSessionHostLocalTime"u8); + writer.WriteBooleanValue(DoesUseSessionHostLocalTime.Value); + } + if (Optional.IsDefined(MaintenanceWindowTimeZone)) + { + writer.WritePropertyName("maintenanceWindowTimeZone"u8); + writer.WriteStringValue(MaintenanceWindowTimeZone); + } + if (Optional.IsCollectionDefined(MaintenanceWindows)) + { + writer.WritePropertyName("maintenanceWindows"u8); + writer.WriteStartArray(); + foreach (var item in MaintenanceWindows) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + internal static SessionHostAgentUpdateProperties DeserializeSessionHostAgentUpdateProperties(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional type = default; + Optional useSessionHostLocalTime = default; + Optional maintenanceWindowTimeZone = default; + Optional> maintenanceWindows = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("type"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = new SessionHostComponentUpdateType(property.Value.GetString()); + continue; + } + if (property.NameEquals("useSessionHostLocalTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + useSessionHostLocalTime = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("maintenanceWindowTimeZone"u8)) + { + maintenanceWindowTimeZone = property.Value.GetString(); + continue; + } + if (property.NameEquals("maintenanceWindows"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(SessionHostMaintenanceWindowProperties.DeserializeSessionHostMaintenanceWindowProperties(item)); + } + maintenanceWindows = array; + continue; + } + } + return new SessionHostAgentUpdateProperties(Optional.ToNullable(type), Optional.ToNullable(useSessionHostLocalTime), maintenanceWindowTimeZone.Value, Optional.ToList(maintenanceWindows)); + } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdateProperties.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdateProperties.cs new file mode 100644 index 000000000000..36e8ca05caac --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdateProperties.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + /// The session host configuration for updating agent, monitoring agent, and stack component. + public partial class SessionHostAgentUpdateProperties + { + /// Initializes a new instance of SessionHostAgentUpdateProperties. + public SessionHostAgentUpdateProperties() + { + MaintenanceWindows = new ChangeTrackingList(); + } + + /// Initializes a new instance of SessionHostAgentUpdateProperties. + /// The type of maintenance for session host components. + /// Whether to use localTime of the virtual machine. + /// 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. + /// List of maintenance windows. Maintenance windows are 2 hours long. + internal SessionHostAgentUpdateProperties(SessionHostComponentUpdateType? updateType, bool? doesUseSessionHostLocalTime, string maintenanceWindowTimeZone, IList maintenanceWindows) + { + UpdateType = updateType; + DoesUseSessionHostLocalTime = doesUseSessionHostLocalTime; + MaintenanceWindowTimeZone = maintenanceWindowTimeZone; + MaintenanceWindows = maintenanceWindows; + } + + /// The type of maintenance for session host components. + public SessionHostComponentUpdateType? UpdateType { get; set; } + /// Whether to use localTime of the virtual machine. + public bool? DoesUseSessionHostLocalTime { get; set; } + /// 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; } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostComponentUpdateType.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostComponentUpdateType.cs new file mode 100644 index 000000000000..e0e0532fea5c --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostComponentUpdateType.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 +{ + /// The type of maintenance for session host components. + public readonly partial struct SessionHostComponentUpdateType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public SessionHostComponentUpdateType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string DefaultValue = "Default"; + private const string ScheduledValue = "Scheduled"; + + /// Agent and other agent side components are delivery schedule is controlled by WVD Infra. + public static SessionHostComponentUpdateType Default { get; } = new SessionHostComponentUpdateType(DefaultValue); + /// TenantAdmin have opted in for Scheduled Component Update feature. + public static SessionHostComponentUpdateType Scheduled { get; } = new SessionHostComponentUpdateType(ScheduledValue); + /// Determines if two values are the same. + public static bool operator ==(SessionHostComponentUpdateType left, SessionHostComponentUpdateType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(SessionHostComponentUpdateType left, SessionHostComponentUpdateType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator SessionHostComponentUpdateType(string value) => new SessionHostComponentUpdateType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is SessionHostComponentUpdateType other && Equals(other); + /// + public bool Equals(SessionHostComponentUpdateType 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/SessionHostData.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostData.Serialization.cs index 85d44a78f5b7..6f218b75330e 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostData.Serialization.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostData.Serialization.cs @@ -46,6 +46,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("assignedUser"u8); writer.WriteStringValue(AssignedUser); } + if (Optional.IsDefined(FriendlyName)) + { + writer.WritePropertyName("friendlyName"u8); + writer.WriteStringValue(FriendlyName); + } if (Optional.IsDefined(Status)) { writer.WritePropertyName("status"u8); @@ -93,6 +98,7 @@ internal static SessionHostData DeserializeSessionHostData(JsonElement element) Optional virtualMachineId = default; Optional resourceId = default; Optional assignedUser = default; + Optional friendlyName = default; Optional status = default; Optional statusTimestamp = default; Optional osVersion = default; @@ -192,6 +198,11 @@ internal static SessionHostData DeserializeSessionHostData(JsonElement element) assignedUser = property0.Value.GetString(); continue; } + if (property0.NameEquals("friendlyName"u8)) + { + friendlyName = property0.Value.GetString(); + continue; + } if (property0.NameEquals("status"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -261,7 +272,7 @@ internal static SessionHostData DeserializeSessionHostData(JsonElement element) continue; } } - return new SessionHostData(id, name, type, systemData.Value, objectId.Value, Optional.ToNullable(lastHeartBeat), Optional.ToNullable(sessions), agentVersion.Value, Optional.ToNullable(allowNewSession), virtualMachineId.Value, resourceId.Value, assignedUser.Value, Optional.ToNullable(status), Optional.ToNullable(statusTimestamp), osVersion.Value, sxsStackVersion.Value, Optional.ToNullable(updateState), Optional.ToNullable(lastUpdateTime), updateErrorMessage.Value, Optional.ToList(sessionHostHealthCheckResults)); + return new SessionHostData(id, name, type, systemData.Value, objectId.Value, Optional.ToNullable(lastHeartBeat), Optional.ToNullable(sessions), agentVersion.Value, Optional.ToNullable(allowNewSession), virtualMachineId.Value, resourceId.Value, assignedUser.Value, friendlyName.Value, Optional.ToNullable(status), Optional.ToNullable(statusTimestamp), osVersion.Value, sxsStackVersion.Value, Optional.ToNullable(updateState), Optional.ToNullable(lastUpdateTime), updateErrorMessage.Value, Optional.ToList(sessionHostHealthCheckResults)); } } } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostMaintenanceWindowProperties.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostMaintenanceWindowProperties.Serialization.cs new file mode 100644 index 000000000000..0b774f219a76 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostMaintenanceWindowProperties.Serialization.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + public partial class SessionHostMaintenanceWindowProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Hour)) + { + writer.WritePropertyName("hour"u8); + writer.WriteNumberValue(Hour.Value); + } + if (Optional.IsDefined(DayOfWeek)) + { + writer.WritePropertyName("dayOfWeek"u8); + writer.WriteStringValue(DayOfWeek.Value.ToSerialString()); + } + writer.WriteEndObject(); + } + + internal static SessionHostMaintenanceWindowProperties DeserializeSessionHostMaintenanceWindowProperties(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional hour = default; + Optional dayOfWeek = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("hour"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + hour = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("dayOfWeek"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + dayOfWeek = property.Value.GetString().ToDesktopVirtualizationDayOfWeek(); + continue; + } + } + return new SessionHostMaintenanceWindowProperties(Optional.ToNullable(hour), Optional.ToNullable(dayOfWeek)); + } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostMaintenanceWindowProperties.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostMaintenanceWindowProperties.cs new file mode 100644 index 000000000000..30274d0d7b21 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostMaintenanceWindowProperties.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.DesktopVirtualization.Models +{ + /// Maintenance window starting hour and day of week. + public partial class SessionHostMaintenanceWindowProperties + { + /// Initializes a new instance of SessionHostMaintenanceWindowProperties. + public SessionHostMaintenanceWindowProperties() + { + } + + /// Initializes a new instance of SessionHostMaintenanceWindowProperties. + /// The update start hour of the day. (0 - 23). + /// Day of the week. + internal SessionHostMaintenanceWindowProperties(int? hour, DesktopVirtualizationDayOfWeek? dayOfWeek) + { + Hour = hour; + DayOfWeek = dayOfWeek; + } + + /// The update start hour of the day. (0 - 23). + public int? Hour { get; set; } + /// Day of the week. + public DesktopVirtualizationDayOfWeek? DayOfWeek { get; set; } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostPatch.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostPatch.Serialization.cs index c8d4564a3582..b30d1eba5ae3 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostPatch.Serialization.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostPatch.Serialization.cs @@ -28,6 +28,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("assignedUser"u8); writer.WriteStringValue(AssignedUser); } + if (Optional.IsDefined(FriendlyName)) + { + writer.WritePropertyName("friendlyName"u8); + writer.WriteStringValue(FriendlyName); + } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -44,6 +49,7 @@ internal static SessionHostPatch DeserializeSessionHostPatch(JsonElement element Optional systemData = default; Optional allowNewSession = default; Optional assignedUser = default; + Optional friendlyName = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id"u8)) @@ -93,11 +99,16 @@ internal static SessionHostPatch DeserializeSessionHostPatch(JsonElement element assignedUser = property0.Value.GetString(); continue; } + if (property0.NameEquals("friendlyName"u8)) + { + friendlyName = property0.Value.GetString(); + continue; + } } continue; } } - return new SessionHostPatch(id, name, type, systemData.Value, Optional.ToNullable(allowNewSession), assignedUser.Value); + return new SessionHostPatch(id, name, type, systemData.Value, Optional.ToNullable(allowNewSession), assignedUser.Value, friendlyName.Value); } } } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostPatch.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostPatch.cs index 4f6e464012a4..7217a6b6c25c 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostPatch.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostPatch.cs @@ -25,15 +25,19 @@ public SessionHostPatch() /// The systemData. /// Allow a new session. /// User assigned to SessionHost. - internal SessionHostPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, bool? allowNewSession, string assignedUser) : base(id, name, resourceType, systemData) + /// Friendly name of SessionHost. + internal SessionHostPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, bool? allowNewSession, string assignedUser, string friendlyName) : base(id, name, resourceType, systemData) { AllowNewSession = allowNewSession; AssignedUser = assignedUser; + FriendlyName = friendlyName; } /// Allow a new session. public bool? AllowNewSession { get; set; } /// User assigned to SessionHost. public string AssignedUser { get; set; } + /// Friendly name of SessionHost. + public string FriendlyName { get; set; } } } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualApplicationGroupData.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualApplicationGroupData.Serialization.cs index 0e1d5aacb810..49a75b47749d 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualApplicationGroupData.Serialization.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualApplicationGroupData.Serialization.cs @@ -73,11 +73,6 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(HostPoolId); writer.WritePropertyName("applicationGroupType"u8); writer.WriteStringValue(ApplicationGroupType.ToString()); - if (Optional.IsDefined(MigrationRequest)) - { - writer.WritePropertyName("migrationRequest"u8); - writer.WriteObjectValue(MigrationRequest); - } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -106,7 +101,6 @@ internal static VirtualApplicationGroupData DeserializeVirtualApplicationGroupDa ResourceIdentifier hostPoolArmPath = default; Optional workspaceArmPath = default; VirtualApplicationGroupType applicationGroupType = default; - Optional migrationRequest = default; Optional cloudPCResource = default; foreach (var property in element.EnumerateObject()) { @@ -247,15 +241,6 @@ internal static VirtualApplicationGroupData DeserializeVirtualApplicationGroupDa applicationGroupType = new VirtualApplicationGroupType(property0.Value.GetString()); continue; } - if (property0.NameEquals("migrationRequest"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - migrationRequest = DesktopVirtualizationMigrationProperties.DeserializeDesktopVirtualizationMigrationProperties(property0.Value); - continue; - } if (property0.NameEquals("cloudPcResource"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -269,7 +254,7 @@ internal static VirtualApplicationGroupData DeserializeVirtualApplicationGroupDa continue; } } - return new VirtualApplicationGroupData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, objectId.Value, description.Value, friendlyName.Value, hostPoolArmPath, workspaceArmPath.Value, applicationGroupType, migrationRequest.Value, Optional.ToNullable(cloudPCResource), managedBy.Value, kind.Value, Optional.ToNullable(etag), identity, sku.Value, plan); + return new VirtualApplicationGroupData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, objectId.Value, description.Value, friendlyName.Value, hostPoolArmPath, workspaceArmPath.Value, applicationGroupType, Optional.ToNullable(cloudPCResource), managedBy.Value, kind.Value, Optional.ToNullable(etag), identity, sku.Value, plan); } } } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/MsixPackageCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/MsixPackageCollection.cs index 7c554566f323..36d808d5fad4 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/MsixPackageCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/MsixPackageCollection.cs @@ -221,12 +221,15 @@ public virtual Response Get(string msixPackageFullName, Can /// /// /// + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _msixPackageMSIXPackagesRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _msixPackageMSIXPackagesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _msixPackageMSIXPackagesRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _msixPackageMSIXPackagesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, isDescending, initialSkip); return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MsixPackageResource(Client, MsixPackageData.DeserializeMsixPackageData(e)), _msixPackageMSIXPackagesClientDiagnostics, Pipeline, "MsixPackageCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -243,12 +246,15 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + public virtual Pageable GetAll(int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _msixPackageMSIXPackagesRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _msixPackageMSIXPackagesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _msixPackageMSIXPackagesRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _msixPackageMSIXPackagesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, isDescending, initialSkip); return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MsixPackageResource(Client, MsixPackageData.DeserializeMsixPackageData(e)), _msixPackageMSIXPackagesClientDiagnostics, Pipeline, "MsixPackageCollection.GetAll", "value", "nextLink", cancellationToken); } 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 813487a7dd99..7aa04688f715 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ApplicationGroupsRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ApplicationGroupsRestOperations.cs @@ -33,7 +33,7 @@ public ApplicationGroupsRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-07-12"; + _apiVersion = apiVersion ?? "2022-09-09"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -363,7 +363,7 @@ public Response Update(string subscriptionId, strin } } - internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string filter) + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string filter, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -380,6 +380,18 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str { uri.AppendQuery("$filter", filter, true); } + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -390,15 +402,18 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str /// The ID of the target subscription. /// 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. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// 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) + public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, string filter = null, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, filter); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, filter, pageSize, isDescending, initialSkip); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -418,15 +433,18 @@ public async Task> ListByResourceGroupAsync(strin /// The ID of the target subscription. /// 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. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// 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) + public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, string filter = null, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, filter); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, filter, pageSize, isDescending, initialSkip); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -515,7 +533,7 @@ public Response ListBySubscription(string subscriptionId, } } - internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string filter) + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string filter, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -534,16 +552,19 @@ internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, s /// The ID of the target subscription. /// 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. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// 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) + public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string filter = null, int? pageSize = null, bool? isDescending = null, int? initialSkip = 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); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, filter, pageSize, isDescending, initialSkip); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -564,16 +585,19 @@ public async Task> ListByResourceGroupNextPageAsy /// The ID of the target subscription. /// 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. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// 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) + public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, string filter = null, int? pageSize = null, bool? isDescending = null, int? initialSkip = 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); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, filter, pageSize, isDescending, initialSkip); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { 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 385cb22882c6..fbb00144abe6 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ApplicationsRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ApplicationsRestOperations.cs @@ -33,7 +33,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 ?? "2021-07-12"; + _apiVersion = apiVersion ?? "2022-09-09"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -387,7 +387,7 @@ public Response Update(string subscriptionId, string res } } - internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string applicationGroupName) + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -402,6 +402,18 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro uri.AppendPath(applicationGroupName, true); uri.AppendPath("/applications", false); uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -412,16 +424,19 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the application group. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListAsync(string subscriptionId, string resourceGroupName, string applicationGroupName, CancellationToken cancellationToken = default) + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(applicationGroupName, nameof(applicationGroupName)); - using var message = CreateListRequest(subscriptionId, resourceGroupName, applicationGroupName); + using var message = CreateListRequest(subscriptionId, resourceGroupName, applicationGroupName, pageSize, isDescending, initialSkip); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -441,16 +456,19 @@ public async Task> ListAsync(string subscriptionId, st /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the application group. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response List(string subscriptionId, string resourceGroupName, string applicationGroupName, CancellationToken cancellationToken = default) + public Response List(string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(applicationGroupName, nameof(applicationGroupName)); - using var message = CreateListRequest(subscriptionId, resourceGroupName, applicationGroupName); + using var message = CreateListRequest(subscriptionId, resourceGroupName, applicationGroupName, pageSize, isDescending, initialSkip); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -466,7 +484,7 @@ public Response List(string subscriptionId, string resourceGrou } } - internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string applicationGroupName) + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -485,17 +503,20 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the application group. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string applicationGroupName, CancellationToken cancellationToken = default) + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(applicationGroupName, nameof(applicationGroupName)); - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, applicationGroupName); + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, applicationGroupName, pageSize, isDescending, initialSkip); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -516,17 +537,20 @@ public async Task> ListNextPageAsync(string nextLink, /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the application group. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string applicationGroupName, CancellationToken cancellationToken = default) + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(applicationGroupName, nameof(applicationGroupName)); - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, applicationGroupName); + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, applicationGroupName, pageSize, isDescending, initialSkip); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { 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 6be0750054c3..4f38f54cec73 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/DesktopsRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/DesktopsRestOperations.cs @@ -33,7 +33,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 ?? "2021-07-12"; + _apiVersion = apiVersion ?? "2022-09-09"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -217,7 +217,7 @@ public Response Update(string subscriptionId, string resourc } } - internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string applicationGroupName) + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -232,6 +232,18 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro uri.AppendPath(applicationGroupName, true); uri.AppendPath("/desktops", false); uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -242,16 +254,19 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the application group. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListAsync(string subscriptionId, string resourceGroupName, string applicationGroupName, CancellationToken cancellationToken = default) + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(applicationGroupName, nameof(applicationGroupName)); - using var message = CreateListRequest(subscriptionId, resourceGroupName, applicationGroupName); + using var message = CreateListRequest(subscriptionId, resourceGroupName, applicationGroupName, pageSize, isDescending, initialSkip); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -271,16 +286,101 @@ public async Task> ListAsync(string subscriptionId, string /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the application group. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response List(string subscriptionId, string resourceGroupName, string applicationGroupName, CancellationToken cancellationToken = default) + public Response List(string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(applicationGroupName, nameof(applicationGroupName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, applicationGroupName, pageSize, isDescending, initialSkip); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DesktopList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = DesktopList.DeserializeDesktopList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize, bool? isDescending, int? initialSkip) + { + 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 desktops. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the application group. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(applicationGroupName, nameof(applicationGroupName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, applicationGroupName, pageSize, isDescending, initialSkip); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DesktopList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = DesktopList.DeserializeDesktopList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List desktops. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the application group. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { + Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(applicationGroupName, nameof(applicationGroupName)); - using var message = CreateListRequest(subscriptionId, resourceGroupName, applicationGroupName); + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, applicationGroupName, pageSize, isDescending, initialSkip); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { 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 2beb5e3c23b6..a685ba76203e 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/HostPoolsRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/HostPoolsRestOperations.cs @@ -33,7 +33,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 ?? "2021-07-12"; + _apiVersion = apiVersion ?? "2022-09-09"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -369,7 +369,7 @@ public Response Update(string subscriptionId, string resourceGroup } } - internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -382,6 +382,18 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools", false); uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -391,15 +403,18 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str /// List hostPools. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// 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, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, pageSize, isDescending, initialSkip); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -418,15 +433,18 @@ public async Task> ListByResourceGroupAsync(string subscr /// List hostPools. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// 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, CancellationToken cancellationToken = default) + public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, pageSize, isDescending, initialSkip); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -442,7 +460,7 @@ public Response ListByResourceGroup(string subscriptionId, string } } - internal HttpMessage CreateListRequest(string subscriptionId) + internal HttpMessage CreateListRequest(string subscriptionId, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -453,6 +471,18 @@ internal HttpMessage CreateListRequest(string subscriptionId) uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools", false); uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -461,14 +491,17 @@ internal HttpMessage CreateListRequest(string subscriptionId) /// List hostPools in subscription. /// The ID of the target subscription. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListAsync(string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListAsync(string subscriptionId, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListRequest(subscriptionId); + using var message = CreateListRequest(subscriptionId, pageSize, isDescending, initialSkip); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -486,14 +519,17 @@ public async Task> ListAsync(string subscriptionId, Cance /// List hostPools in subscription. /// The ID of the target subscription. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public Response List(string subscriptionId, CancellationToken cancellationToken = default) + public Response List(string subscriptionId, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListRequest(subscriptionId); + using var message = CreateListRequest(subscriptionId, pageSize, isDescending, initialSkip); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -588,7 +624,7 @@ public Response RetrieveRegistrationToken(string subsc } } - internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -606,16 +642,19 @@ internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, s /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// 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, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, int? pageSize = null, bool? isDescending = null, int? initialSkip = 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); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, pageSize, isDescending, initialSkip); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -635,16 +674,19 @@ public async Task> ListByResourceGroupNextPageAsync(strin /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// 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, CancellationToken cancellationToken = default) + public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, int? pageSize = null, bool? isDescending = null, int? initialSkip = 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); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, pageSize, isDescending, initialSkip); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -660,7 +702,7 @@ public Response ListByResourceGroupNextPage(string nextLink, strin } } - internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -677,15 +719,18 @@ 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. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListNextPageAsync(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListNextPageRequest(nextLink, subscriptionId); + using var message = CreateListNextPageRequest(nextLink, subscriptionId, pageSize, isDescending, initialSkip); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -704,15 +749,18 @@ 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. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public Response ListNextPage(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public Response ListNextPage(string nextLink, string subscriptionId, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListNextPageRequest(nextLink, subscriptionId); + using var message = CreateListNextPageRequest(nextLink, subscriptionId, pageSize, isDescending, initialSkip); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { 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 f77a7f2b33c7..15bb61890bc2 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/MsixImagesRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/MsixImagesRestOperations.cs @@ -33,7 +33,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 ?? "2021-07-12"; + _apiVersion = apiVersion ?? "2022-09-09"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } 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 a4a1641c14c8..9d9f14f519ce 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/MsixPackagesRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/MsixPackagesRestOperations.cs @@ -33,7 +33,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 ?? "2021-07-12"; + _apiVersion = apiVersion ?? "2022-09-09"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -387,7 +387,7 @@ public Response Update(string subscriptionId, string resourceGr } } - internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string hostPoolName) + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -402,6 +402,18 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro uri.AppendPath(hostPoolName, true); uri.AppendPath("/msixPackages", false); uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -412,16 +424,19 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro /// The ID of the target subscription. /// 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. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListAsync(string subscriptionId, string resourceGroupName, string hostPoolName, CancellationToken cancellationToken = default) + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(hostPoolName, nameof(hostPoolName)); - using var message = CreateListRequest(subscriptionId, resourceGroupName, hostPoolName); + using var message = CreateListRequest(subscriptionId, resourceGroupName, hostPoolName, pageSize, isDescending, initialSkip); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -441,16 +456,19 @@ public async Task> ListAsync(string subscriptionId, st /// The ID of the target subscription. /// 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. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response List(string subscriptionId, string resourceGroupName, string hostPoolName, CancellationToken cancellationToken = default) + public Response List(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(hostPoolName, nameof(hostPoolName)); - using var message = CreateListRequest(subscriptionId, resourceGroupName, hostPoolName); + using var message = CreateListRequest(subscriptionId, resourceGroupName, hostPoolName, pageSize, isDescending, initialSkip); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -466,7 +484,7 @@ public Response List(string subscriptionId, string resourceGrou } } - internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName) + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -485,17 +503,20 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript /// The ID of the target subscription. /// 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. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, CancellationToken cancellationToken = default) + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(hostPoolName, nameof(hostPoolName)); - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, hostPoolName); + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, hostPoolName, pageSize, isDescending, initialSkip); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -516,17 +537,20 @@ public async Task> ListNextPageAsync(string nextLink, /// The ID of the target subscription. /// 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. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, CancellationToken cancellationToken = default) + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(hostPoolName, nameof(hostPoolName)); - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, hostPoolName); + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, hostPoolName, pageSize, isDescending, initialSkip); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlanPooledSchedulesRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlanPooledSchedulesRestOperations.cs new file mode 100644 index 000000000000..d7f3ee4cf8f3 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlanPooledSchedulesRestOperations.cs @@ -0,0 +1,569 @@ +// 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; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.DesktopVirtualization.Models; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + internal partial class ScalingPlanPooledSchedulesRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of ScalingPlanPooledSchedulesRestOperations. + /// 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 ScalingPlanPooledSchedulesRestOperations(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 ?? "2022-09-09"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName) + { + 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/scalingPlans/", false); + uri.AppendPath(scalingPlanName, true); + uri.AppendPath("/pooledSchedules/", false); + uri.AppendPath(scalingPlanScheduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get a ScalingPlanPooledSchedule. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the scaling plan. + /// The name of the ScalingPlanSchedule. + /// 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 scalingPlanName, string scalingPlanScheduleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(scalingPlanName, nameof(scalingPlanName)); + Argument.AssertNotNullOrEmpty(scalingPlanScheduleName, nameof(scalingPlanScheduleName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, scalingPlanName, scalingPlanScheduleName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ScalingPlanPooledScheduleData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ScalingPlanPooledScheduleData.DeserializeScalingPlanPooledScheduleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((ScalingPlanPooledScheduleData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get a ScalingPlanPooledSchedule. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the scaling plan. + /// The name of the ScalingPlanSchedule. + /// 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 scalingPlanName, string scalingPlanScheduleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(scalingPlanName, nameof(scalingPlanName)); + Argument.AssertNotNullOrEmpty(scalingPlanScheduleName, nameof(scalingPlanScheduleName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, scalingPlanName, scalingPlanScheduleName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ScalingPlanPooledScheduleData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ScalingPlanPooledScheduleData.DeserializeScalingPlanPooledScheduleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((ScalingPlanPooledScheduleData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, ScalingPlanPooledScheduleData 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/scalingPlans/", false); + uri.AppendPath(scalingPlanName, true); + uri.AppendPath("/pooledSchedules/", false); + uri.AppendPath(scalingPlanScheduleName, 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); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Create or update a ScalingPlanPooledSchedule. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the scaling plan. + /// The name of the ScalingPlanSchedule. + /// Object containing ScalingPlanPooledSchedule definitions. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> CreateAsync(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, ScalingPlanPooledScheduleData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(scalingPlanName, nameof(scalingPlanName)); + Argument.AssertNotNullOrEmpty(scalingPlanScheduleName, nameof(scalingPlanScheduleName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateRequest(subscriptionId, resourceGroupName, scalingPlanName, scalingPlanScheduleName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + { + ScalingPlanPooledScheduleData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ScalingPlanPooledScheduleData.DeserializeScalingPlanPooledScheduleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create or update a ScalingPlanPooledSchedule. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the scaling plan. + /// The name of the ScalingPlanSchedule. + /// Object containing ScalingPlanPooledSchedule definitions. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Create(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, ScalingPlanPooledScheduleData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(scalingPlanName, nameof(scalingPlanName)); + Argument.AssertNotNullOrEmpty(scalingPlanScheduleName, nameof(scalingPlanScheduleName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateRequest(subscriptionId, resourceGroupName, scalingPlanName, scalingPlanScheduleName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + { + ScalingPlanPooledScheduleData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ScalingPlanPooledScheduleData.DeserializeScalingPlanPooledScheduleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName) + { + 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/scalingPlans/", false); + uri.AppendPath(scalingPlanName, true); + uri.AppendPath("/pooledSchedules/", false); + uri.AppendPath(scalingPlanScheduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Remove a ScalingPlanPooledSchedule. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the scaling plan. + /// The name of the ScalingPlanSchedule. + /// 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 scalingPlanName, string scalingPlanScheduleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(scalingPlanName, nameof(scalingPlanName)); + Argument.AssertNotNullOrEmpty(scalingPlanScheduleName, nameof(scalingPlanScheduleName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, scalingPlanName, scalingPlanScheduleName); + 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 a ScalingPlanPooledSchedule. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the scaling plan. + /// The name of the ScalingPlanSchedule. + /// 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 scalingPlanName, string scalingPlanScheduleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(scalingPlanName, nameof(scalingPlanName)); + Argument.AssertNotNullOrEmpty(scalingPlanScheduleName, nameof(scalingPlanScheduleName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, scalingPlanName, scalingPlanScheduleName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, ScalingPlanPooledSchedulePatch 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/scalingPlans/", false); + uri.AppendPath(scalingPlanName, true); + uri.AppendPath("/pooledSchedules/", false); + uri.AppendPath(scalingPlanScheduleName, 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); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Update a ScalingPlanPooledSchedule. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the scaling plan. + /// The name of the ScalingPlanSchedule. + /// Object containing ScalingPlanPooledSchedule definitions. + /// 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 scalingPlanName, string scalingPlanScheduleName, ScalingPlanPooledSchedulePatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(scalingPlanName, nameof(scalingPlanName)); + Argument.AssertNotNullOrEmpty(scalingPlanScheduleName, nameof(scalingPlanScheduleName)); + Argument.AssertNotNull(patch, nameof(patch)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, scalingPlanName, scalingPlanScheduleName, patch); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ScalingPlanPooledScheduleData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ScalingPlanPooledScheduleData.DeserializeScalingPlanPooledScheduleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Update a ScalingPlanPooledSchedule. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the scaling plan. + /// The name of the ScalingPlanSchedule. + /// Object containing ScalingPlanPooledSchedule definitions. + /// 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 scalingPlanName, string scalingPlanScheduleName, ScalingPlanPooledSchedulePatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(scalingPlanName, nameof(scalingPlanName)); + Argument.AssertNotNullOrEmpty(scalingPlanScheduleName, nameof(scalingPlanScheduleName)); + Argument.AssertNotNull(patch, nameof(patch)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, scalingPlanName, scalingPlanScheduleName, patch); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ScalingPlanPooledScheduleData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ScalingPlanPooledScheduleData.DeserializeScalingPlanPooledScheduleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string scalingPlanName, int? pageSize, bool? isDescending, int? initialSkip) + { + 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/scalingPlans/", false); + uri.AppendPath(scalingPlanName, true); + uri.AppendPath("/pooledSchedules", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List ScalingPlanPooledSchedules. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the scaling plan. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string scalingPlanName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(scalingPlanName, nameof(scalingPlanName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, scalingPlanName, pageSize, isDescending, initialSkip); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ScalingPlanPooledScheduleList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ScalingPlanPooledScheduleList.DeserializeScalingPlanPooledScheduleList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List ScalingPlanPooledSchedules. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the scaling plan. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string scalingPlanName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(scalingPlanName, nameof(scalingPlanName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, scalingPlanName, pageSize, isDescending, initialSkip); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ScalingPlanPooledScheduleList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ScalingPlanPooledScheduleList.DeserializeScalingPlanPooledScheduleList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string scalingPlanName, int? pageSize, bool? isDescending, int? initialSkip) + { + 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 ScalingPlanPooledSchedules. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the scaling plan. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string scalingPlanName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(scalingPlanName, nameof(scalingPlanName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, scalingPlanName, pageSize, isDescending, initialSkip); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ScalingPlanPooledScheduleList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ScalingPlanPooledScheduleList.DeserializeScalingPlanPooledScheduleList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List ScalingPlanPooledSchedules. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the scaling plan. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string scalingPlanName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(scalingPlanName, nameof(scalingPlanName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, scalingPlanName, pageSize, isDescending, initialSkip); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ScalingPlanPooledScheduleList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ScalingPlanPooledScheduleList.DeserializeScalingPlanPooledScheduleList(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/ScalingPlansRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlansRestOperations.cs index e4a2a56c6998..b59ba7d0696f 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlansRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlansRestOperations.cs @@ -33,7 +33,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 ?? "2021-07-12"; + _apiVersion = apiVersion ?? "2022-09-09"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -363,7 +363,7 @@ public Response Update(string subscriptionId, string resourceGr } } - internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -376,6 +376,18 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.DesktopVirtualization/scalingPlans", false); uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -385,15 +397,18 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str /// List scaling plans. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// 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, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, pageSize, isDescending, initialSkip); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -412,15 +427,18 @@ public async Task> ListByResourceGroupAsync(string sub /// List scaling plans. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// 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, CancellationToken cancellationToken = default) + public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, pageSize, isDescending, initialSkip); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -436,7 +454,7 @@ public Response ListByResourceGroup(string subscriptionId, stri } } - internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -447,6 +465,18 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.DesktopVirtualization/scalingPlans", false); uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -455,14 +485,17 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) /// List scaling plans in subscription. /// The ID of the target subscription. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionAsync(string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionAsync(string subscriptionId, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionRequest(subscriptionId); + using var message = CreateListBySubscriptionRequest(subscriptionId, pageSize, isDescending, initialSkip); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -480,14 +513,17 @@ public async Task> ListBySubscriptionAsync(string subs /// List scaling plans in subscription. /// The ID of the target subscription. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public Response ListBySubscription(string subscriptionId, CancellationToken cancellationToken = default) + public Response ListBySubscription(string subscriptionId, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionRequest(subscriptionId); + using var message = CreateListBySubscriptionRequest(subscriptionId, pageSize, isDescending, initialSkip); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -503,7 +539,7 @@ public Response ListBySubscription(string subscriptionId, Cance } } - internal HttpMessage CreateListByHostPoolRequest(string subscriptionId, string resourceGroupName, string hostPoolName) + internal HttpMessage CreateListByHostPoolRequest(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -518,6 +554,18 @@ internal HttpMessage CreateListByHostPoolRequest(string subscriptionId, string r uri.AppendPath(hostPoolName, true); uri.AppendPath("/scalingPlans", false); uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -528,16 +576,19 @@ internal HttpMessage CreateListByHostPoolRequest(string subscriptionId, string r /// The ID of the target subscription. /// 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. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByHostPoolAsync(string subscriptionId, string resourceGroupName, string hostPoolName, CancellationToken cancellationToken = default) + public async Task> ListByHostPoolAsync(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(hostPoolName, nameof(hostPoolName)); - using var message = CreateListByHostPoolRequest(subscriptionId, resourceGroupName, hostPoolName); + using var message = CreateListByHostPoolRequest(subscriptionId, resourceGroupName, hostPoolName, pageSize, isDescending, initialSkip); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -557,16 +608,19 @@ public async Task> ListByHostPoolAsync(string subscrip /// The ID of the target subscription. /// 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. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByHostPool(string subscriptionId, string resourceGroupName, string hostPoolName, CancellationToken cancellationToken = default) + public Response ListByHostPool(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(hostPoolName, nameof(hostPoolName)); - using var message = CreateListByHostPoolRequest(subscriptionId, resourceGroupName, hostPoolName); + using var message = CreateListByHostPoolRequest(subscriptionId, resourceGroupName, hostPoolName, pageSize, isDescending, initialSkip); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -582,7 +636,7 @@ public Response ListByHostPool(string subscriptionId, string re } } - internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -600,16 +654,19 @@ internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, s /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// 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, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, int? pageSize = null, bool? isDescending = null, int? initialSkip = 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); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, pageSize, isDescending, initialSkip); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -629,16 +686,19 @@ public async Task> ListByResourceGroupNextPageAsync(st /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// 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, CancellationToken cancellationToken = default) + public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, int? pageSize = null, bool? isDescending = null, int? initialSkip = 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); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, pageSize, isDescending, initialSkip); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -654,7 +714,7 @@ public Response ListByResourceGroupNextPage(string nextLink, st } } - internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -671,15 +731,18 @@ 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. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// 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, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, pageSize, isDescending, initialSkip); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -698,15 +761,18 @@ public async Task> ListBySubscriptionNextPageAsync(str /// List scaling plans in subscription. /// The URL to the next page of results. /// The ID of the target subscription. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// 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, CancellationToken cancellationToken = default) + public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, pageSize, isDescending, initialSkip); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -722,7 +788,7 @@ public Response ListBySubscriptionNextPage(string nextLink, str } } - internal HttpMessage CreateListByHostPoolNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName) + internal HttpMessage CreateListByHostPoolNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -741,17 +807,20 @@ internal HttpMessage CreateListByHostPoolNextPageRequest(string nextLink, string /// The ID of the target subscription. /// 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. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByHostPoolNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, CancellationToken cancellationToken = default) + public async Task> ListByHostPoolNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(hostPoolName, nameof(hostPoolName)); - using var message = CreateListByHostPoolNextPageRequest(nextLink, subscriptionId, resourceGroupName, hostPoolName); + using var message = CreateListByHostPoolNextPageRequest(nextLink, subscriptionId, resourceGroupName, hostPoolName, pageSize, isDescending, initialSkip); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -772,17 +841,20 @@ public async Task> ListByHostPoolNextPageAsync(string /// The ID of the target subscription. /// 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. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByHostPoolNextPage(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, CancellationToken cancellationToken = default) + public Response ListByHostPoolNextPage(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(hostPoolName, nameof(hostPoolName)); - using var message = CreateListByHostPoolNextPageRequest(nextLink, subscriptionId, resourceGroupName, hostPoolName); + using var message = CreateListByHostPoolNextPageRequest(nextLink, subscriptionId, resourceGroupName, hostPoolName, pageSize, isDescending, initialSkip); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { 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 c26bcfd8bbc1..60fd317829f3 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/SessionHostsRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/SessionHostsRestOperations.cs @@ -33,7 +33,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 ?? "2021-07-12"; + _apiVersion = apiVersion ?? "2022-09-09"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -207,7 +207,7 @@ public Response Delete(string subscriptionId, string resourceGroupName, string h } } - internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, SessionHostPatch patch) + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, SessionHostPatch patch, bool? force) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -223,6 +223,10 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG uri.AppendPath("/sessionHosts/", false); uri.AppendPath(sessionHostName, true); uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); @@ -239,10 +243,11 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG /// The name of the host pool within the specified resource group. /// The name of the session host within the specified host pool. /// Object containing SessionHost definitions. + /// Force flag to update assign, unassign or reassign personal desktop. /// 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 hostPoolName, string sessionHostName, SessionHostPatch patch, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, SessionHostPatch patch, bool? force = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -250,7 +255,7 @@ public async Task> UpdateAsync(string subscriptionId, Argument.AssertNotNullOrEmpty(sessionHostName, nameof(sessionHostName)); Argument.AssertNotNull(patch, nameof(patch)); - using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, hostPoolName, sessionHostName, patch); + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, hostPoolName, sessionHostName, patch, force); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -272,10 +277,11 @@ public async Task> UpdateAsync(string subscriptionId, /// The name of the host pool within the specified resource group. /// The name of the session host within the specified host pool. /// Object containing SessionHost definitions. + /// Force flag to update assign, unassign or reassign personal desktop. /// 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 hostPoolName, string sessionHostName, SessionHostPatch patch, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, SessionHostPatch patch, bool? force = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -283,7 +289,7 @@ public Response Update(string subscriptionId, string resourceGr Argument.AssertNotNullOrEmpty(sessionHostName, nameof(sessionHostName)); Argument.AssertNotNull(patch, nameof(patch)); - using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, hostPoolName, sessionHostName, patch); + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, hostPoolName, sessionHostName, patch, force); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -299,7 +305,7 @@ public Response Update(string subscriptionId, string resourceGr } } - internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string hostPoolName) + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -314,6 +320,18 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro uri.AppendPath(hostPoolName, true); uri.AppendPath("/sessionHosts", false); uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -324,16 +342,19 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro /// The ID of the target subscription. /// 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. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListAsync(string subscriptionId, string resourceGroupName, string hostPoolName, CancellationToken cancellationToken = default) + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(hostPoolName, nameof(hostPoolName)); - using var message = CreateListRequest(subscriptionId, resourceGroupName, hostPoolName); + using var message = CreateListRequest(subscriptionId, resourceGroupName, hostPoolName, pageSize, isDescending, initialSkip); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -353,16 +374,19 @@ public async Task> ListAsync(string subscriptionId, st /// The ID of the target subscription. /// 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. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response List(string subscriptionId, string resourceGroupName, string hostPoolName, CancellationToken cancellationToken = default) + public Response List(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(hostPoolName, nameof(hostPoolName)); - using var message = CreateListRequest(subscriptionId, resourceGroupName, hostPoolName); + using var message = CreateListRequest(subscriptionId, resourceGroupName, hostPoolName, pageSize, isDescending, initialSkip); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -378,7 +402,7 @@ public Response List(string subscriptionId, string resourceGrou } } - internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName) + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -397,17 +421,20 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript /// The ID of the target subscription. /// 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. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, CancellationToken cancellationToken = default) + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(hostPoolName, nameof(hostPoolName)); - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, hostPoolName); + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, hostPoolName, pageSize, isDescending, initialSkip); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -428,17 +455,20 @@ public async Task> ListNextPageAsync(string nextLink, /// The ID of the target subscription. /// 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. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, CancellationToken cancellationToken = default) + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(hostPoolName, nameof(hostPoolName)); - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, hostPoolName); + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, hostPoolName, pageSize, isDescending, initialSkip); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { 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 15593635ed44..d042adb1ad4a 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/StartMenuItemsRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/StartMenuItemsRestOperations.cs @@ -33,11 +33,11 @@ public StartMenuItemsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-07-12"; + _apiVersion = apiVersion ?? "2022-09-09"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string applicationGroupName) + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -52,6 +52,18 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro uri.AppendPath(applicationGroupName, true); uri.AppendPath("/startMenuItems", false); uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -62,16 +74,19 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the application group. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListAsync(string subscriptionId, string resourceGroupName, string applicationGroupName, CancellationToken cancellationToken = default) + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(applicationGroupName, nameof(applicationGroupName)); - using var message = CreateListRequest(subscriptionId, resourceGroupName, applicationGroupName); + using var message = CreateListRequest(subscriptionId, resourceGroupName, applicationGroupName, pageSize, isDescending, initialSkip); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -91,16 +106,19 @@ public async Task> ListAsync(string subscriptionId, /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the application group. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response List(string subscriptionId, string resourceGroupName, string applicationGroupName, CancellationToken cancellationToken = default) + public Response List(string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(applicationGroupName, nameof(applicationGroupName)); - using var message = CreateListRequest(subscriptionId, resourceGroupName, applicationGroupName); + using var message = CreateListRequest(subscriptionId, resourceGroupName, applicationGroupName, pageSize, isDescending, initialSkip); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -116,7 +134,7 @@ public Response List(string subscriptionId, string resourceGr } } - internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string applicationGroupName) + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -135,17 +153,20 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the application group. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string applicationGroupName, CancellationToken cancellationToken = default) + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(applicationGroupName, nameof(applicationGroupName)); - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, applicationGroupName); + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, applicationGroupName, pageSize, isDescending, initialSkip); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -166,17 +187,20 @@ public async Task> ListNextPageAsync(string nextLink /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the application group. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string applicationGroupName, CancellationToken cancellationToken = default) + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(applicationGroupName, nameof(applicationGroupName)); - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, applicationGroupName); + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, applicationGroupName, pageSize, isDescending, initialSkip); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { 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 cd977f6fb784..2c0e944ce1a2 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/UserSessionsRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/UserSessionsRestOperations.cs @@ -33,11 +33,11 @@ public UserSessionsRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-07-12"; + _apiVersion = apiVersion ?? "2022-09-09"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal HttpMessage CreateListByHostPoolRequest(string subscriptionId, string resourceGroupName, string hostPoolName, string filter) + internal HttpMessage CreateListByHostPoolRequest(string subscriptionId, string resourceGroupName, string hostPoolName, string filter, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -56,6 +56,18 @@ internal HttpMessage CreateListByHostPoolRequest(string subscriptionId, string r { uri.AppendQuery("$filter", filter, true); } + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -67,16 +79,19 @@ internal HttpMessage CreateListByHostPoolRequest(string subscriptionId, string r /// 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. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByHostPoolAsync(string subscriptionId, string resourceGroupName, string hostPoolName, string filter = null, CancellationToken cancellationToken = default) + public async Task> ListByHostPoolAsync(string subscriptionId, string resourceGroupName, string hostPoolName, string filter = null, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(hostPoolName, nameof(hostPoolName)); - using var message = CreateListByHostPoolRequest(subscriptionId, resourceGroupName, hostPoolName, filter); + using var message = CreateListByHostPoolRequest(subscriptionId, resourceGroupName, hostPoolName, filter, pageSize, isDescending, initialSkip); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -97,16 +112,19 @@ public async Task> ListByHostPoolAsync(string subscrip /// 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. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByHostPool(string subscriptionId, string resourceGroupName, string hostPoolName, string filter = null, CancellationToken cancellationToken = default) + public Response ListByHostPool(string subscriptionId, string resourceGroupName, string hostPoolName, string filter = null, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(hostPoolName, nameof(hostPoolName)); - using var message = CreateListByHostPoolRequest(subscriptionId, resourceGroupName, hostPoolName, filter); + using var message = CreateListByHostPoolRequest(subscriptionId, resourceGroupName, hostPoolName, filter, pageSize, isDescending, initialSkip); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -304,7 +322,7 @@ public Response Delete(string subscriptionId, string resourceGroupName, string h } } - internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName) + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -321,6 +339,18 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro uri.AppendPath(sessionHostName, true); uri.AppendPath("/userSessions", false); uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -332,17 +362,20 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro /// 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. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> ListAsync(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, CancellationToken cancellationToken = default) + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(hostPoolName, nameof(hostPoolName)); Argument.AssertNotNullOrEmpty(sessionHostName, nameof(sessionHostName)); - using var message = CreateListRequest(subscriptionId, resourceGroupName, hostPoolName, sessionHostName); + using var message = CreateListRequest(subscriptionId, resourceGroupName, hostPoolName, sessionHostName, pageSize, isDescending, initialSkip); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -363,17 +396,20 @@ public async Task> ListAsync(string subscriptionId, st /// 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. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response List(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, CancellationToken cancellationToken = default) + public Response List(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(hostPoolName, nameof(hostPoolName)); Argument.AssertNotNullOrEmpty(sessionHostName, nameof(sessionHostName)); - using var message = CreateListRequest(subscriptionId, resourceGroupName, hostPoolName, sessionHostName); + using var message = CreateListRequest(subscriptionId, resourceGroupName, hostPoolName, sessionHostName, pageSize, isDescending, initialSkip); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -560,7 +596,7 @@ public Response SendMessage(string subscriptionId, string resourceGroupName, str } } - internal HttpMessage CreateListByHostPoolNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, string filter) + internal HttpMessage CreateListByHostPoolNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, string filter, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -580,17 +616,20 @@ internal HttpMessage CreateListByHostPoolNextPageRequest(string nextLink, string /// 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. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByHostPoolNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, string filter = null, CancellationToken cancellationToken = default) + public async Task> ListByHostPoolNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, string filter = null, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(hostPoolName, nameof(hostPoolName)); - using var message = CreateListByHostPoolNextPageRequest(nextLink, subscriptionId, resourceGroupName, hostPoolName, filter); + using var message = CreateListByHostPoolNextPageRequest(nextLink, subscriptionId, resourceGroupName, hostPoolName, filter, pageSize, isDescending, initialSkip); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -612,17 +651,20 @@ public async Task> ListByHostPoolNextPageAsync(string /// 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. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByHostPoolNextPage(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, string filter = null, CancellationToken cancellationToken = default) + public Response ListByHostPoolNextPage(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, string filter = null, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(hostPoolName, nameof(hostPoolName)); - using var message = CreateListByHostPoolNextPageRequest(nextLink, subscriptionId, resourceGroupName, hostPoolName, filter); + using var message = CreateListByHostPoolNextPageRequest(nextLink, subscriptionId, resourceGroupName, hostPoolName, filter, pageSize, isDescending, initialSkip); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -638,7 +680,7 @@ public Response ListByHostPoolNextPage(string nextLink, string } } - internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName) + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -658,10 +700,13 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript /// 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. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, CancellationToken cancellationToken = default) + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -669,7 +714,7 @@ public async Task> ListNextPageAsync(string nextLink, Argument.AssertNotNullOrEmpty(hostPoolName, nameof(hostPoolName)); Argument.AssertNotNullOrEmpty(sessionHostName, nameof(sessionHostName)); - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, hostPoolName, sessionHostName); + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, hostPoolName, sessionHostName, pageSize, isDescending, initialSkip); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -691,10 +736,13 @@ public async Task> ListNextPageAsync(string nextLink, /// 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. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, CancellationToken cancellationToken = default) + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -702,7 +750,7 @@ public Response ListNextPage(string nextLink, string subscripti Argument.AssertNotNullOrEmpty(hostPoolName, nameof(hostPoolName)); Argument.AssertNotNullOrEmpty(sessionHostName, nameof(sessionHostName)); - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, hostPoolName, sessionHostName); + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, hostPoolName, sessionHostName, pageSize, isDescending, initialSkip); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { 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 87a4d721a643..e2eb8ea1d757 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/WorkspacesRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/WorkspacesRestOperations.cs @@ -33,7 +33,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 ?? "2021-07-12"; + _apiVersion = apiVersion ?? "2022-09-09"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -363,7 +363,7 @@ public Response Update(string subscriptionId, string resou } } - internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -376,6 +376,18 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.DesktopVirtualization/workspaces", false); uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -385,15 +397,18 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str /// List workspaces. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// 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, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, pageSize, isDescending, initialSkip); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -412,15 +427,18 @@ public async Task> ListByResourceGroupAsync(string subsc /// List workspaces. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// 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, CancellationToken cancellationToken = default) + public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, pageSize, isDescending, initialSkip); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -503,7 +521,7 @@ public Response ListBySubscription(string subscriptionId, Cancell } } - internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -521,16 +539,19 @@ internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, s /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// 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, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, int? pageSize = null, bool? isDescending = null, int? initialSkip = 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); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, pageSize, isDescending, initialSkip); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -550,16 +571,19 @@ public async Task> ListByResourceGroupNextPageAsync(stri /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// 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, CancellationToken cancellationToken = default) + public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, int? pageSize = null, bool? isDescending = null, int? initialSkip = 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); + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, pageSize, isDescending, initialSkip); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanCollection.cs index fa309af28c3c..f1951ddfa40c 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanCollection.cs @@ -222,12 +222,15 @@ public virtual Response Get(string scalingPlanName, Cancell /// /// /// + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _scalingPlanRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _scalingPlanRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _scalingPlanRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _scalingPlanRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, pageSizeHint, isDescending, initialSkip); return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ScalingPlanResource(Client, ScalingPlanData.DeserializeScalingPlanData(e)), _scalingPlanClientDiagnostics, Pipeline, "ScalingPlanCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -244,12 +247,15 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + public virtual Pageable GetAll(int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _scalingPlanRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _scalingPlanRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _scalingPlanRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _scalingPlanRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, pageSizeHint, isDescending, initialSkip); return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ScalingPlanResource(Client, ScalingPlanData.DeserializeScalingPlanData(e)), _scalingPlanClientDiagnostics, Pipeline, "ScalingPlanCollection.GetAll", "value", "nextLink", cancellationToken); } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanData.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanData.cs index 9b85d02842cc..d3d63b49ec78 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanData.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanData.cs @@ -5,6 +5,7 @@ #nullable disable +using System; using System.Collections.Generic; using Azure; using Azure.Core; @@ -21,8 +22,13 @@ public partial class ScalingPlanData : TrackedResourceData { /// Initializes a new instance of ScalingPlanData. /// The location. - public ScalingPlanData(AzureLocation location) : base(location) + /// Timezone of the scaling plan. + /// is null. + public ScalingPlanData(AzureLocation location, string timeZone) : base(location) { + Argument.AssertNotNull(timeZone, nameof(timeZone)); + + TimeZone = timeZone; Schedules = new ChangeTrackingList(); HostPoolReferences = new ChangeTrackingList(); } @@ -38,9 +44,9 @@ public ScalingPlanData(AzureLocation location) : base(location) /// Description of scaling plan. /// User friendly name of scaling plan. /// Timezone of the scaling plan. - /// HostPool type for desktop. + /// HostPool type for desktop. /// Exclusion tag for scaling plan. - /// List of ScalingSchedule definitions. + /// 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. @@ -48,13 +54,13 @@ public ScalingPlanData(AzureLocation location) : base(location) /// Gets or sets the identity. Current supported identity types: SystemAssigned. /// The resource model definition representing SKU. /// Gets or sets the plan. - internal ScalingPlanData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string objectId, string description, string friendlyName, string timeZone, HostPoolType? hostPoolType, string exclusionTag, IList schedules, IList hostPoolReferences, ResourceIdentifier managedBy, string kind, ETag? etag, ManagedServiceIdentity identity, DesktopVirtualizationSku sku, ArmPlan plan) : base(id, name, resourceType, systemData, tags, location) + internal ScalingPlanData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string objectId, string description, string friendlyName, string timeZone, ScalingHostPoolType? scalingHostPoolType, string exclusionTag, IList schedules, IList hostPoolReferences, ResourceIdentifier managedBy, string kind, ETag? etag, ManagedServiceIdentity identity, DesktopVirtualizationSku sku, ArmPlan plan) : base(id, name, resourceType, systemData, tags, location) { ObjectId = objectId; Description = description; FriendlyName = friendlyName; TimeZone = timeZone; - HostPoolType = hostPoolType; + ScalingHostPoolType = scalingHostPoolType; ExclusionTag = exclusionTag; Schedules = schedules; HostPoolReferences = hostPoolReferences; @@ -75,10 +81,10 @@ internal ScalingPlanData(ResourceIdentifier id, string name, ResourceType resour /// Timezone of the scaling plan. public string TimeZone { get; set; } /// HostPool type for desktop. - public HostPoolType? HostPoolType { get; set; } + public ScalingHostPoolType? ScalingHostPoolType { get; set; } /// Exclusion tag for scaling plan. public string ExclusionTag { get; set; } - /// List of ScalingSchedule definitions. + /// List of ScalingPlanPooledSchedule definitions. public IList Schedules { get; } /// List of ScalingHostPoolReference definitions. public IList HostPoolReferences { get; } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPooledScheduleCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPooledScheduleCollection.cs new file mode 100644 index 000000000000..41e16e9cc5c1 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPooledScheduleCollection.cs @@ -0,0 +1,346 @@ +// 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 Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +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 a instance call the GetScalingPlanPooledSchedules method from an instance of . + /// + public partial class ScalingPlanPooledScheduleCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _scalingPlanPooledScheduleClientDiagnostics; + private readonly ScalingPlanPooledSchedulesRestOperations _scalingPlanPooledScheduleRestClient; + + /// Initializes a new instance of the class for mocking. + protected ScalingPlanPooledScheduleCollection() + { + } + + /// 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 ScalingPlanPooledScheduleCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _scalingPlanPooledScheduleClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.DesktopVirtualization", ScalingPlanPooledScheduleResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ScalingPlanPooledScheduleResource.ResourceType, out string scalingPlanPooledScheduleApiVersion); + _scalingPlanPooledScheduleRestClient = new ScalingPlanPooledSchedulesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, scalingPlanPooledScheduleApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ScalingPlanResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ScalingPlanResource.ResourceType), nameof(id)); + } + + /// + /// Create or update a ScalingPlanPooledSchedule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName} + /// + /// + /// Operation Id + /// ScalingPlanPooledSchedules_Create + /// + /// + /// + /// 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 ScalingPlanSchedule. + /// Object containing ScalingPlanPooledSchedule 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 scalingPlanScheduleName, ScalingPlanPooledScheduleData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(scalingPlanScheduleName, nameof(scalingPlanScheduleName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _scalingPlanPooledScheduleClientDiagnostics.CreateScope("ScalingPlanPooledScheduleCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _scalingPlanPooledScheduleRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scalingPlanScheduleName, data, cancellationToken).ConfigureAwait(false); + var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new ScalingPlanPooledScheduleResource(Client, response), response.GetRawResponse())); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update a ScalingPlanPooledSchedule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName} + /// + /// + /// Operation Id + /// ScalingPlanPooledSchedules_Create + /// + /// + /// + /// 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 ScalingPlanSchedule. + /// Object containing ScalingPlanPooledSchedule 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 scalingPlanScheduleName, ScalingPlanPooledScheduleData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(scalingPlanScheduleName, nameof(scalingPlanScheduleName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _scalingPlanPooledScheduleClientDiagnostics.CreateScope("ScalingPlanPooledScheduleCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _scalingPlanPooledScheduleRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scalingPlanScheduleName, data, cancellationToken); + var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new ScalingPlanPooledScheduleResource(Client, response), response.GetRawResponse())); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get a ScalingPlanPooledSchedule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName} + /// + /// + /// Operation Id + /// ScalingPlanPooledSchedules_Get + /// + /// + /// + /// The name of the ScalingPlanSchedule. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string scalingPlanScheduleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(scalingPlanScheduleName, nameof(scalingPlanScheduleName)); + + using var scope = _scalingPlanPooledScheduleClientDiagnostics.CreateScope("ScalingPlanPooledScheduleCollection.Get"); + scope.Start(); + try + { + var response = await _scalingPlanPooledScheduleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scalingPlanScheduleName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ScalingPlanPooledScheduleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get a ScalingPlanPooledSchedule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName} + /// + /// + /// Operation Id + /// ScalingPlanPooledSchedules_Get + /// + /// + /// + /// The name of the ScalingPlanSchedule. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string scalingPlanScheduleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(scalingPlanScheduleName, nameof(scalingPlanScheduleName)); + + using var scope = _scalingPlanPooledScheduleClientDiagnostics.CreateScope("ScalingPlanPooledScheduleCollection.Get"); + scope.Start(); + try + { + var response = _scalingPlanPooledScheduleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scalingPlanScheduleName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ScalingPlanPooledScheduleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List ScalingPlanPooledSchedules. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules + /// + /// + /// Operation Id + /// ScalingPlanPooledSchedules_List + /// + /// + /// + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _scalingPlanPooledScheduleRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _scalingPlanPooledScheduleRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, isDescending, initialSkip); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ScalingPlanPooledScheduleResource(Client, ScalingPlanPooledScheduleData.DeserializeScalingPlanPooledScheduleData(e)), _scalingPlanPooledScheduleClientDiagnostics, Pipeline, "ScalingPlanPooledScheduleCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// List ScalingPlanPooledSchedules. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules + /// + /// + /// Operation Id + /// ScalingPlanPooledSchedules_List + /// + /// + /// + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _scalingPlanPooledScheduleRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _scalingPlanPooledScheduleRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, isDescending, initialSkip); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ScalingPlanPooledScheduleResource(Client, ScalingPlanPooledScheduleData.DeserializeScalingPlanPooledScheduleData(e)), _scalingPlanPooledScheduleClientDiagnostics, Pipeline, "ScalingPlanPooledScheduleCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName} + /// + /// + /// Operation Id + /// ScalingPlanPooledSchedules_Get + /// + /// + /// + /// The name of the ScalingPlanSchedule. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string scalingPlanScheduleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(scalingPlanScheduleName, nameof(scalingPlanScheduleName)); + + using var scope = _scalingPlanPooledScheduleClientDiagnostics.CreateScope("ScalingPlanPooledScheduleCollection.Exists"); + scope.Start(); + try + { + var response = await _scalingPlanPooledScheduleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scalingPlanScheduleName, 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/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName} + /// + /// + /// Operation Id + /// ScalingPlanPooledSchedules_Get + /// + /// + /// + /// The name of the ScalingPlanSchedule. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string scalingPlanScheduleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(scalingPlanScheduleName, nameof(scalingPlanScheduleName)); + + using var scope = _scalingPlanPooledScheduleClientDiagnostics.CreateScope("ScalingPlanPooledScheduleCollection.Exists"); + scope.Start(); + try + { + var response = _scalingPlanPooledScheduleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scalingPlanScheduleName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, 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/ScalingPlanPooledScheduleData.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPooledScheduleData.cs new file mode 100644 index 000000000000..f6192cb51394 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPooledScheduleData.cs @@ -0,0 +1,105 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.DesktopVirtualization.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + /// + /// A class representing the ScalingPlanPooledSchedule data model. + /// Represents a ScalingPlanPooledSchedule definition. + /// + public partial class ScalingPlanPooledScheduleData : ResourceData + { + /// Initializes a new instance of ScalingPlanPooledScheduleData. + public ScalingPlanPooledScheduleData() + { + DaysOfWeek = new ChangeTrackingList(); + } + + /// Initializes a new instance of ScalingPlanPooledScheduleData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Set of days of the week on which this schedule is active. + /// Starting time for ramp up period. + /// Load balancing algorithm for ramp up period. + /// Minimum host percentage for ramp up period. + /// Capacity threshold for ramp up period. + /// Starting time for peak period. + /// Load balancing algorithm for peak period. + /// Starting time for ramp down period. + /// Load balancing algorithm for ramp down period. + /// Minimum host percentage for ramp down period. + /// Capacity threshold for ramp down period. + /// Should users be logged off forcefully from hosts. + /// Specifies when to stop hosts during ramp down period. + /// Number of minutes to wait to stop hosts during ramp down period. + /// Notification message for users during ramp down period. + /// Starting time for off-peak period. + /// Load balancing algorithm for off-peak period. + internal ScalingPlanPooledScheduleData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IList daysOfWeek, ScalingActionTime rampUpStartTime, SessionHostLoadBalancingAlgorithm? rampUpLoadBalancingAlgorithm, int? rampUpMinimumHostsPct, int? rampUpCapacityThresholdPct, ScalingActionTime peakStartTime, SessionHostLoadBalancingAlgorithm? peakLoadBalancingAlgorithm, ScalingActionTime rampDownStartTime, SessionHostLoadBalancingAlgorithm? rampDownLoadBalancingAlgorithm, int? rampDownMinimumHostsPct, int? rampDownCapacityThresholdPct, bool? rampDownForceLogoffUsers, DesktopVirtualizationStopHostsWhen? rampDownStopHostsWhen, int? rampDownWaitTimeMinutes, string rampDownNotificationMessage, ScalingActionTime offPeakStartTime, SessionHostLoadBalancingAlgorithm? offPeakLoadBalancingAlgorithm) : base(id, name, resourceType, systemData) + { + DaysOfWeek = daysOfWeek; + RampUpStartTime = rampUpStartTime; + RampUpLoadBalancingAlgorithm = rampUpLoadBalancingAlgorithm; + RampUpMinimumHostsPct = rampUpMinimumHostsPct; + RampUpCapacityThresholdPct = rampUpCapacityThresholdPct; + PeakStartTime = peakStartTime; + PeakLoadBalancingAlgorithm = peakLoadBalancingAlgorithm; + RampDownStartTime = rampDownStartTime; + RampDownLoadBalancingAlgorithm = rampDownLoadBalancingAlgorithm; + RampDownMinimumHostsPct = rampDownMinimumHostsPct; + RampDownCapacityThresholdPct = rampDownCapacityThresholdPct; + RampDownForceLogoffUsers = rampDownForceLogoffUsers; + RampDownStopHostsWhen = rampDownStopHostsWhen; + RampDownWaitTimeMinutes = rampDownWaitTimeMinutes; + RampDownNotificationMessage = rampDownNotificationMessage; + OffPeakStartTime = offPeakStartTime; + OffPeakLoadBalancingAlgorithm = offPeakLoadBalancingAlgorithm; + } + + /// Set of days of the week on which this schedule is active. + public IList DaysOfWeek { get; } + /// Starting time for ramp up period. + public ScalingActionTime RampUpStartTime { get; set; } + /// Load balancing algorithm for ramp up period. + public SessionHostLoadBalancingAlgorithm? RampUpLoadBalancingAlgorithm { get; set; } + /// Minimum host percentage for ramp up period. + public int? RampUpMinimumHostsPct { get; set; } + /// Capacity threshold for ramp up period. + public int? RampUpCapacityThresholdPct { get; set; } + /// Starting time for peak period. + public ScalingActionTime PeakStartTime { get; set; } + /// Load balancing algorithm for peak period. + public SessionHostLoadBalancingAlgorithm? PeakLoadBalancingAlgorithm { get; set; } + /// Starting time for ramp down period. + public ScalingActionTime RampDownStartTime { get; set; } + /// Load balancing algorithm for ramp down period. + public SessionHostLoadBalancingAlgorithm? RampDownLoadBalancingAlgorithm { get; set; } + /// Minimum host percentage for ramp down period. + public int? RampDownMinimumHostsPct { get; set; } + /// Capacity threshold for ramp down period. + public int? RampDownCapacityThresholdPct { get; set; } + /// Should users be logged off forcefully from hosts. + public bool? RampDownForceLogoffUsers { get; set; } + /// Specifies when to stop hosts during ramp down period. + public DesktopVirtualizationStopHostsWhen? RampDownStopHostsWhen { get; set; } + /// Number of minutes to wait to stop hosts during ramp down period. + public int? RampDownWaitTimeMinutes { get; set; } + /// Notification message for users during ramp down period. + public string RampDownNotificationMessage { get; set; } + /// Starting time for off-peak period. + public ScalingActionTime OffPeakStartTime { get; set; } + /// Load balancing algorithm for off-peak period. + public SessionHostLoadBalancingAlgorithm? OffPeakLoadBalancingAlgorithm { get; set; } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPooledScheduleResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPooledScheduleResource.cs new file mode 100644 index 000000000000..5ce1b04bcf92 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPooledScheduleResource.cs @@ -0,0 +1,290 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.DesktopVirtualization.Models; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + /// + /// A Class representing a ScalingPlanPooledSchedule along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetScalingPlanPooledScheduleResource method. + /// Otherwise you can get one from its parent resource using the GetScalingPlanPooledSchedule method. + /// + public partial class ScalingPlanPooledScheduleResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _scalingPlanPooledScheduleClientDiagnostics; + private readonly ScalingPlanPooledSchedulesRestOperations _scalingPlanPooledScheduleRestClient; + private readonly ScalingPlanPooledScheduleData _data; + + /// Initializes a new instance of the class for mocking. + protected ScalingPlanPooledScheduleResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal ScalingPlanPooledScheduleResource(ArmClient client, ScalingPlanPooledScheduleData 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 ScalingPlanPooledScheduleResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _scalingPlanPooledScheduleClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.DesktopVirtualization", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string scalingPlanPooledScheduleApiVersion); + _scalingPlanPooledScheduleRestClient = new ScalingPlanPooledSchedulesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, scalingPlanPooledScheduleApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.DesktopVirtualization/scalingPlans/pooledSchedules"; + + /// 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 ScalingPlanPooledScheduleData 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 a ScalingPlanPooledSchedule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName} + /// + /// + /// Operation Id + /// ScalingPlanPooledSchedules_Get + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _scalingPlanPooledScheduleClientDiagnostics.CreateScope("ScalingPlanPooledScheduleResource.Get"); + scope.Start(); + try + { + var response = await _scalingPlanPooledScheduleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ScalingPlanPooledScheduleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get a ScalingPlanPooledSchedule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName} + /// + /// + /// Operation Id + /// ScalingPlanPooledSchedules_Get + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _scalingPlanPooledScheduleClientDiagnostics.CreateScope("ScalingPlanPooledScheduleResource.Get"); + scope.Start(); + try + { + var response = _scalingPlanPooledScheduleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ScalingPlanPooledScheduleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Remove a ScalingPlanPooledSchedule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName} + /// + /// + /// Operation Id + /// ScalingPlanPooledSchedules_Delete + /// + /// + /// + /// 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 = _scalingPlanPooledScheduleClientDiagnostics.CreateScope("ScalingPlanPooledScheduleResource.Delete"); + scope.Start(); + try + { + var response = await _scalingPlanPooledScheduleRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new DesktopVirtualizationArmOperation(response); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Remove a ScalingPlanPooledSchedule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName} + /// + /// + /// Operation Id + /// ScalingPlanPooledSchedules_Delete + /// + /// + /// + /// 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 = _scalingPlanPooledScheduleClientDiagnostics.CreateScope("ScalingPlanPooledScheduleResource.Delete"); + scope.Start(); + try + { + var response = _scalingPlanPooledScheduleRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new DesktopVirtualizationArmOperation(response); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update a ScalingPlanPooledSchedule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName} + /// + /// + /// Operation Id + /// ScalingPlanPooledSchedules_Update + /// + /// + /// + /// Object containing ScalingPlanPooledSchedule definitions. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(ScalingPlanPooledSchedulePatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using var scope = _scalingPlanPooledScheduleClientDiagnostics.CreateScope("ScalingPlanPooledScheduleResource.Update"); + scope.Start(); + try + { + var response = await _scalingPlanPooledScheduleRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ScalingPlanPooledScheduleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update a ScalingPlanPooledSchedule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName} + /// + /// + /// Operation Id + /// ScalingPlanPooledSchedules_Update + /// + /// + /// + /// Object containing ScalingPlanPooledSchedule definitions. + /// The cancellation token to use. + /// is null. + public virtual Response Update(ScalingPlanPooledSchedulePatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using var scope = _scalingPlanPooledScheduleClientDiagnostics.CreateScope("ScalingPlanPooledScheduleResource.Update"); + scope.Start(); + try + { + var response = _scalingPlanPooledScheduleRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); + return Response.FromValue(new ScalingPlanPooledScheduleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanResource.cs index e5cc3389f15e..9aca0601777d 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanResource.cs @@ -89,6 +89,59 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } + /// Gets a collection of ScalingPlanPooledScheduleResources in the ScalingPlan. + /// An object representing collection of ScalingPlanPooledScheduleResources and their operations over a ScalingPlanPooledScheduleResource. + public virtual ScalingPlanPooledScheduleCollection GetScalingPlanPooledSchedules() + { + return GetCachedClient(Client => new ScalingPlanPooledScheduleCollection(Client, Id)); + } + + /// + /// Get a ScalingPlanPooledSchedule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName} + /// + /// + /// Operation Id + /// ScalingPlanPooledSchedules_Get + /// + /// + /// + /// The name of the ScalingPlanSchedule. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetScalingPlanPooledScheduleAsync(string scalingPlanScheduleName, CancellationToken cancellationToken = default) + { + return await GetScalingPlanPooledSchedules().GetAsync(scalingPlanScheduleName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get a ScalingPlanPooledSchedule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName} + /// + /// + /// Operation Id + /// ScalingPlanPooledSchedules_Get + /// + /// + /// + /// The name of the ScalingPlanSchedule. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetScalingPlanPooledSchedule(string scalingPlanScheduleName, CancellationToken cancellationToken = default) + { + return GetScalingPlanPooledSchedules().Get(scalingPlanScheduleName, cancellationToken); + } + /// /// Get a scaling plan. /// diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/SessionHostCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/SessionHostCollection.cs index 8a4ff751e222..22adc682f6ea 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/SessionHostCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/SessionHostCollection.cs @@ -139,12 +139,15 @@ public virtual Response Get(string sessionHostName, Cancell /// /// /// + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _sessionHostRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _sessionHostRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _sessionHostRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _sessionHostRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, isDescending, initialSkip); return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new SessionHostResource(Client, SessionHostData.DeserializeSessionHostData(e)), _sessionHostClientDiagnostics, Pipeline, "SessionHostCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -161,12 +164,15 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + public virtual Pageable GetAll(int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _sessionHostRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _sessionHostRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _sessionHostRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _sessionHostRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, isDescending, initialSkip); return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new SessionHostResource(Client, SessionHostData.DeserializeSessionHostData(e)), _sessionHostClientDiagnostics, Pipeline, "SessionHostCollection.GetAll", "value", "nextLink", cancellationToken); } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/SessionHostData.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/SessionHostData.cs index e80e9c213068..a05f320da469 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/SessionHostData.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/SessionHostData.cs @@ -38,6 +38,7 @@ public SessionHostData() /// Virtual Machine Id of SessionHost's underlying virtual machine. /// Resource Id of SessionHost's underlying virtual machine. /// User assigned to SessionHost. + /// Friendly name of SessionHost. /// Status for a SessionHost. /// The timestamp of the status. /// The version of the OS on the session host. @@ -46,7 +47,7 @@ public SessionHostData() /// The timestamp of the last update. /// The error message. /// List of SessionHostHealthCheckReports. - internal SessionHostData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string objectId, DateTimeOffset? lastHeartBeatOn, int? sessions, string agentVersion, bool? allowNewSession, string vmId, ResourceIdentifier resourceId, string assignedUser, SessionHostStatus? status, DateTimeOffset? statusTimestamp, string osVersion, string sxsStackVersion, SessionHostUpdateState? updateState, DateTimeOffset? lastUpdatedOn, string updateErrorMessage, IReadOnlyList sessionHostHealthCheckResults) : base(id, name, resourceType, systemData) + internal SessionHostData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string objectId, DateTimeOffset? lastHeartBeatOn, int? sessions, string agentVersion, bool? allowNewSession, string vmId, ResourceIdentifier resourceId, string assignedUser, string friendlyName, SessionHostStatus? status, DateTimeOffset? statusTimestamp, string osVersion, string sxsStackVersion, SessionHostUpdateState? updateState, DateTimeOffset? lastUpdatedOn, string updateErrorMessage, IReadOnlyList sessionHostHealthCheckResults) : base(id, name, resourceType, systemData) { ObjectId = objectId; LastHeartBeatOn = lastHeartBeatOn; @@ -56,6 +57,7 @@ internal SessionHostData(ResourceIdentifier id, string name, ResourceType resour VmId = vmId; ResourceId = resourceId; AssignedUser = assignedUser; + FriendlyName = friendlyName; Status = status; StatusTimestamp = statusTimestamp; OSVersion = osVersion; @@ -82,6 +84,8 @@ internal SessionHostData(ResourceIdentifier id, string name, ResourceType resour public ResourceIdentifier ResourceId { get; } /// User assigned to SessionHost. public string AssignedUser { get; set; } + /// Friendly name of SessionHost. + public string FriendlyName { get; set; } /// Status for a SessionHost. public SessionHostStatus? Status { get; set; } /// The timestamp of the status. diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/SessionHostResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/SessionHostResource.cs index fffdcfb495e6..89ae0e6a7d26 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/SessionHostResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/SessionHostResource.cs @@ -288,9 +288,10 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, Canc /// /// /// Object containing SessionHost definitions. + /// Force flag to update assign, unassign or reassign personal desktop. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(SessionHostPatch patch, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(SessionHostPatch patch, bool? force = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); @@ -298,7 +299,7 @@ public virtual async Task> UpdateAsync(SessionHost scope.Start(); try { - var response = await _sessionHostRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); + var response = await _sessionHostRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, force, cancellationToken).ConfigureAwait(false); return Response.FromValue(new SessionHostResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -322,9 +323,10 @@ public virtual async Task> UpdateAsync(SessionHost /// /// /// Object containing SessionHost definitions. + /// Force flag to update assign, unassign or reassign personal desktop. /// The cancellation token to use. /// is null. - public virtual Response Update(SessionHostPatch patch, CancellationToken cancellationToken = default) + public virtual Response Update(SessionHostPatch patch, bool? force = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); @@ -332,7 +334,7 @@ public virtual Response Update(SessionHostPatch patch, Canc scope.Start(); try { - var response = _sessionHostRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); + var response = _sessionHostRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, force, cancellationToken); return Response.FromValue(new SessionHostResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/UserSessionCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/UserSessionCollection.cs index 15086b50ef98..53b20a233d6e 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/UserSessionCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/UserSessionCollection.cs @@ -139,12 +139,15 @@ public virtual Response Get(string userSessionId, Cancellat /// /// /// + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _userSessionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _userSessionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _userSessionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _userSessionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, pageSizeHint, isDescending, initialSkip); return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new UserSessionResource(Client, UserSessionData.DeserializeUserSessionData(e)), _userSessionClientDiagnostics, Pipeline, "UserSessionCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -161,12 +164,15 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + public virtual Pageable GetAll(int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _userSessionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _userSessionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _userSessionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _userSessionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, pageSizeHint, isDescending, initialSkip); return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new UserSessionResource(Client, UserSessionData.DeserializeUserSessionData(e)), _userSessionClientDiagnostics, Pipeline, "UserSessionCollection.GetAll", "value", "nextLink", cancellationToken); } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationCollection.cs index 46d46f712152..2241ea57a6c2 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationCollection.cs @@ -221,12 +221,15 @@ public virtual Response Get(string applicationName, /// /// /// + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _virtualApplicationApplicationsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _virtualApplicationApplicationsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _virtualApplicationApplicationsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _virtualApplicationApplicationsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, isDescending, initialSkip); return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new VirtualApplicationResource(Client, VirtualApplicationData.DeserializeVirtualApplicationData(e)), _virtualApplicationApplicationsClientDiagnostics, Pipeline, "VirtualApplicationCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -243,12 +246,15 @@ public virtual AsyncPageable GetAllAsync(Cancellatio /// /// /// + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + public virtual Pageable GetAll(int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _virtualApplicationApplicationsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _virtualApplicationApplicationsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _virtualApplicationApplicationsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _virtualApplicationApplicationsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, isDescending, initialSkip); return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new VirtualApplicationResource(Client, VirtualApplicationData.DeserializeVirtualApplicationData(e)), _virtualApplicationApplicationsClientDiagnostics, Pipeline, "VirtualApplicationCollection.GetAll", "value", "nextLink", cancellationToken); } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupCollection.cs index 6941672222a4..27b5308a0262 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupCollection.cs @@ -223,12 +223,15 @@ public virtual Response Get(string applicationG /// /// /// OData filter expression. Valid properties for filtering are applicationGroupType. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// 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) + public virtual AsyncPageable GetAllAsync(string filter = null, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _virtualApplicationGroupApplicationGroupsRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, filter); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _virtualApplicationGroupApplicationGroupsRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, filter); + HttpMessage FirstPageRequest(int? pageSizeHint) => _virtualApplicationGroupApplicationGroupsRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, filter, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _virtualApplicationGroupApplicationGroupsRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, filter, pageSizeHint, isDescending, initialSkip); return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new VirtualApplicationGroupResource(Client, VirtualApplicationGroupData.DeserializeVirtualApplicationGroupData(e)), _virtualApplicationGroupApplicationGroupsClientDiagnostics, Pipeline, "VirtualApplicationGroupCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -246,12 +249,15 @@ public virtual AsyncPageable GetAllAsync(string /// /// /// OData filter expression. Valid properties for filtering are applicationGroupType. + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// 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) + public virtual Pageable GetAll(string filter = null, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _virtualApplicationGroupApplicationGroupsRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, filter); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _virtualApplicationGroupApplicationGroupsRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, filter); + HttpMessage FirstPageRequest(int? pageSizeHint) => _virtualApplicationGroupApplicationGroupsRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, filter, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _virtualApplicationGroupApplicationGroupsRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, filter, pageSizeHint, isDescending, initialSkip); return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new VirtualApplicationGroupResource(Client, VirtualApplicationGroupData.DeserializeVirtualApplicationGroupData(e)), _virtualApplicationGroupApplicationGroupsClientDiagnostics, Pipeline, "VirtualApplicationGroupCollection.GetAll", "value", "nextLink", cancellationToken); } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupData.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupData.cs index e220d4904e0e..32d9b9468561 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupData.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupData.cs @@ -46,7 +46,6 @@ public VirtualApplicationGroupData(AzureLocation location, ResourceIdentifier ho /// HostPool arm path of ApplicationGroup. /// Workspace arm path of ApplicationGroup. /// Resource Type of ApplicationGroup. - /// The registration info of HostPool. /// Is cloud pc 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. @@ -54,7 +53,7 @@ public VirtualApplicationGroupData(AzureLocation location, ResourceIdentifier ho /// Gets or sets the identity. Current supported identity types: SystemAssigned. /// The resource model definition representing SKU. /// Gets or sets the plan. - internal VirtualApplicationGroupData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string objectId, string description, string friendlyName, ResourceIdentifier hostPoolId, ResourceIdentifier workspaceId, VirtualApplicationGroupType applicationGroupType, DesktopVirtualizationMigrationProperties migrationRequest, bool? isCloudPCResource, ResourceIdentifier managedBy, string kind, ETag? etag, ManagedServiceIdentity identity, DesktopVirtualizationSku sku, ArmPlan plan) : base(id, name, resourceType, systemData, tags, location) + internal VirtualApplicationGroupData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string objectId, string description, string friendlyName, ResourceIdentifier hostPoolId, ResourceIdentifier workspaceId, VirtualApplicationGroupType applicationGroupType, bool? isCloudPCResource, ResourceIdentifier managedBy, string kind, ETag? etag, ManagedServiceIdentity identity, DesktopVirtualizationSku sku, ArmPlan plan) : base(id, name, resourceType, systemData, tags, location) { ObjectId = objectId; Description = description; @@ -62,7 +61,6 @@ internal VirtualApplicationGroupData(ResourceIdentifier id, string name, Resourc HostPoolId = hostPoolId; WorkspaceId = workspaceId; ApplicationGroupType = applicationGroupType; - MigrationRequest = migrationRequest; IsCloudPCResource = isCloudPCResource; ManagedBy = managedBy; Kind = kind; @@ -84,8 +82,6 @@ internal VirtualApplicationGroupData(ResourceIdentifier id, string name, Resourc public ResourceIdentifier WorkspaceId { get; } /// Resource Type of ApplicationGroup. public VirtualApplicationGroupType ApplicationGroupType { get; set; } - /// The registration info of HostPool. - public DesktopVirtualizationMigrationProperties MigrationRequest { get; set; } /// Is cloud pc resource. public bool? IsCloudPCResource { 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. diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupResource.cs index 4128908a21bd..ac0298ceb11a 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupResource.cs @@ -412,12 +412,15 @@ public virtual Response Update(VirtualApplicati /// /// /// + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetStartMenuItemsAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetStartMenuItemsAsync(int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _startMenuItemsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _startMenuItemsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _startMenuItemsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _startMenuItemsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, isDescending, initialSkip); return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, DesktopVirtualizationStartMenuItem.DeserializeDesktopVirtualizationStartMenuItem, _startMenuItemsClientDiagnostics, Pipeline, "VirtualApplicationGroupResource.GetStartMenuItems", "value", "nextLink", cancellationToken); } @@ -434,12 +437,15 @@ public virtual AsyncPageable GetStartMenuIte /// /// /// + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetStartMenuItems(CancellationToken cancellationToken = default) + public virtual Pageable GetStartMenuItems(int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _startMenuItemsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _startMenuItemsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _startMenuItemsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _startMenuItemsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, isDescending, initialSkip); return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, DesktopVirtualizationStartMenuItem.DeserializeDesktopVirtualizationStartMenuItem, _startMenuItemsClientDiagnostics, Pipeline, "VirtualApplicationGroupResource.GetStartMenuItems", "value", "nextLink", cancellationToken); } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualDesktopCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualDesktopCollection.cs index 3fa102b1600b..3bac776455d5 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualDesktopCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualDesktopCollection.cs @@ -139,12 +139,16 @@ public virtual Response Get(string desktopName, Cancella /// /// /// + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _virtualDesktopDesktopsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return PageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => new VirtualDesktopResource(Client, VirtualDesktopData.DeserializeVirtualDesktopData(e)), _virtualDesktopDesktopsClientDiagnostics, Pipeline, "VirtualDesktopCollection.GetAll", "value", null, cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _virtualDesktopDesktopsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _virtualDesktopDesktopsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, isDescending, initialSkip); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new VirtualDesktopResource(Client, VirtualDesktopData.DeserializeVirtualDesktopData(e)), _virtualDesktopDesktopsClientDiagnostics, Pipeline, "VirtualDesktopCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -160,12 +164,16 @@ public virtual AsyncPageable GetAllAsync(CancellationTok /// /// /// + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + public virtual Pageable GetAll(int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _virtualDesktopDesktopsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return PageableHelpers.CreatePageable(FirstPageRequest, null, e => new VirtualDesktopResource(Client, VirtualDesktopData.DeserializeVirtualDesktopData(e)), _virtualDesktopDesktopsClientDiagnostics, Pipeline, "VirtualDesktopCollection.GetAll", "value", null, cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _virtualDesktopDesktopsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _virtualDesktopDesktopsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, isDescending, initialSkip); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new VirtualDesktopResource(Client, VirtualDesktopData.DeserializeVirtualDesktopData(e)), _virtualDesktopDesktopsClientDiagnostics, Pipeline, "VirtualDesktopCollection.GetAll", "value", "nextLink", cancellationToken); } /// diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualWorkspaceCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualWorkspaceCollection.cs index 591785fdc4cd..f18b4e347da4 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualWorkspaceCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualWorkspaceCollection.cs @@ -222,12 +222,15 @@ public virtual Response Get(string workspaceName, Canc /// /// /// + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _virtualWorkspaceWorkspacesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _virtualWorkspaceWorkspacesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _virtualWorkspaceWorkspacesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _virtualWorkspaceWorkspacesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, pageSizeHint, isDescending, initialSkip); return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new VirtualWorkspaceResource(Client, VirtualWorkspaceData.DeserializeVirtualWorkspaceData(e)), _virtualWorkspaceWorkspacesClientDiagnostics, Pipeline, "VirtualWorkspaceCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -244,12 +247,15 @@ public virtual AsyncPageable GetAllAsync(CancellationT /// /// /// + /// Number of items per page. + /// Indicates whether the collection is descending. + /// Initial number of items to skip. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + public virtual Pageable GetAll(int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _virtualWorkspaceWorkspacesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _virtualWorkspaceWorkspacesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage FirstPageRequest(int? pageSizeHint) => _virtualWorkspaceWorkspacesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, pageSizeHint, isDescending, initialSkip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _virtualWorkspaceWorkspacesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, pageSizeHint, isDescending, initialSkip); return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new VirtualWorkspaceResource(Client, VirtualWorkspaceData.DeserializeVirtualWorkspaceData(e)), _virtualWorkspaceWorkspacesClientDiagnostics, Pipeline, "VirtualWorkspaceCollection.GetAll", "value", "nextLink", cancellationToken); } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/autorest.md b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/autorest.md index 97ff5aae514c..e1e8fcf05cfb 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/autorest.md +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/autorest.md @@ -5,18 +5,21 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml azure-arm: true -generate-model-factory: false +generate-model-factory: true csharp: true library-name: DesktopVirtualization namespace: Azure.ResourceManager.DesktopVirtualization -require: https://github.com/Azure/azure-rest-api-specs/blob/49af362e33d89967d7776fdd3a26d5462c9fbb59/specification/desktopvirtualization/resource-manager/readme.md -tag: package-2021-07 +require: https://github.com/Azure/azure-rest-api-specs/blob/45765fbbfd14084eb7a12ebd099aaeddb2a13173/specification/desktopvirtualization/resource-manager/readme.md +# tag: package-2022-09 output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true modelerfour: flatten-payloads: false +#mgmt-debug: +# show-serialized-names: true + format-by-name-rules: 'tenantId': 'uuid' 'ETag': 'etag' @@ -97,21 +100,31 @@ rename-mapping: UpdateState: SessionHostUpdateState MsixPackageApplications.rawIcon: -|any MsixPackageApplications.rawPng: -|any + ScalingPlan.properties.hostPoolType: ScalingHostPoolType + Time: ScalingActionTime + AgentUpdateProperties: SessionHostAgentUpdateProperties + AgentUpdateProperties.useSessionHostLocalTime: DoesUseSessionHostLocalTime + AgentUpdatePatchProperties: SessionHostAgentUpdatePatchProperties + AgentUpdatePatchProperties.useSessionHostLocalTime: DoesUseSessionHostLocalTime + MaintenanceWindowProperties: SessionHostMaintenanceWindowProperties + +prepend-rp-prefix: + - DayOfWeek directive: # remove this useless allOf so that we will not have a `ResourceModelWithAllowedPropertySetSku` type - - from: swagger-document + - from: types.json where: $.definitions.ResourceModelWithAllowedPropertySet.properties.sku transform: > return { "$ref": "#/definitions/Sku" } # nullable issue - - from: swagger-document + - from: desktopvirtualization.json where: $.definitions.ApplicationGroupProperties.properties.workspaceArmPath transform: $["x-nullable"] = true # remove the format so that we can use rename-mapping to change the property type to BinaryData - - from: swagger-document + - from: desktopvirtualization.json where: $.definitions transform: > delete $.MsixPackageApplications.properties.rawIcon['format']; diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(1,Personal,DepthFirst,Persistent,Desktop).json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(1,Personal,DepthFirst,Persistent,Desktop).json index 7d1ceca787aa..90a12f169244 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(1,Personal,DepthFirst,Persistent,Desktop).json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(1,Personal,DepthFirst,Persistent,Desktop).json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud1?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud1?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud1?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud1?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -269,7 +269,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud1?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud1?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -367,7 +367,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud1?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud1?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -454,7 +454,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud1?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud1?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -541,7 +541,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud1?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud1?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -568,7 +568,7 @@ "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud1?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud1?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -644,7 +644,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -675,7 +675,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(1,Personal,DepthFirst,Persistent,Desktop)Async.json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(1,Personal,DepthFirst,Persistent,Desktop)Async.json index 8d1f1f9b0768..57148ea3d863 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(1,Personal,DepthFirst,Persistent,Desktop)Async.json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(1,Personal,DepthFirst,Persistent,Desktop)Async.json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud1?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud1?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud1?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud1?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -269,7 +269,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud1?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud1?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -367,7 +367,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud1?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud1?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -454,7 +454,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud1?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud1?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -541,7 +541,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud1?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud1?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -568,7 +568,7 @@ "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud1?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud1?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -644,7 +644,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -675,7 +675,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(2,Personal,DepthFirst,Persistent,RailApplications).json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(2,Personal,DepthFirst,Persistent,RailApplications).json index 2ea17c986af5..3a23848644e5 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(2,Personal,DepthFirst,Persistent,RailApplications).json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(2,Personal,DepthFirst,Persistent,RailApplications).json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud2?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud2?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud2?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud2?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -269,7 +269,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud2?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud2?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -367,7 +367,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud2?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud2?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -454,7 +454,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud2?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud2?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -541,7 +541,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud2?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud2?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -568,7 +568,7 @@ "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud2?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud2?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -644,7 +644,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -675,7 +675,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(2,Personal,DepthFirst,Persistent,RailApplications)Async.json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(2,Personal,DepthFirst,Persistent,RailApplications)Async.json index 0cb4f0f295c8..45e3eb537188 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(2,Personal,DepthFirst,Persistent,RailApplications)Async.json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(2,Personal,DepthFirst,Persistent,RailApplications)Async.json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud2?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud2?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud2?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud2?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -269,7 +269,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud2?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud2?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -367,7 +367,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud2?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud2?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -454,7 +454,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud2?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud2?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -541,7 +541,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud2?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud2?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -568,7 +568,7 @@ "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud2?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud2?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -644,7 +644,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -675,7 +675,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(3,Personal,BreadthFirst,Persistent,Desktop).json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(3,Personal,BreadthFirst,Persistent,Desktop).json index 684f1eea22ae..ce2ff4c926a8 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(3,Personal,BreadthFirst,Persistent,Desktop).json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(3,Personal,BreadthFirst,Persistent,Desktop).json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud3?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud3?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud3?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud3?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -269,7 +269,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud3?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud3?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -367,7 +367,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud3?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud3?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -454,7 +454,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud3?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud3?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -541,7 +541,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud3?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud3?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -568,7 +568,7 @@ "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud3?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud3?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -644,7 +644,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -675,7 +675,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(3,Personal,BreadthFirst,Persistent,Desktop)Async.json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(3,Personal,BreadthFirst,Persistent,Desktop)Async.json index f1db3accec9d..1dd8573f2f72 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(3,Personal,BreadthFirst,Persistent,Desktop)Async.json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(3,Personal,BreadthFirst,Persistent,Desktop)Async.json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud3?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud3?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud3?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud3?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -269,7 +269,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud3?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud3?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -367,7 +367,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud3?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud3?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -454,7 +454,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud3?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud3?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -541,7 +541,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud3?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud3?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -568,7 +568,7 @@ "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud3?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud3?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -644,7 +644,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -675,7 +675,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(4,Personal,BreadthFirst,Persistent,RailApplications).json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(4,Personal,BreadthFirst,Persistent,RailApplications).json index 0b46bcbc44df..c05a58df4368 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(4,Personal,BreadthFirst,Persistent,RailApplications).json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(4,Personal,BreadthFirst,Persistent,RailApplications).json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud4?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud4?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud4?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud4?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -269,7 +269,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud4?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud4?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -367,7 +367,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud4?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud4?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -454,7 +454,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud4?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud4?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -541,7 +541,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud4?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud4?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -568,7 +568,7 @@ "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud4?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud4?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -644,7 +644,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -675,7 +675,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(4,Personal,BreadthFirst,Persistent,RailApplications)Async.json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(4,Personal,BreadthFirst,Persistent,RailApplications)Async.json index 723a0d98f336..5b7660ea2c4d 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(4,Personal,BreadthFirst,Persistent,RailApplications)Async.json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(4,Personal,BreadthFirst,Persistent,RailApplications)Async.json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud4?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud4?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud4?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud4?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -269,7 +269,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud4?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud4?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -367,7 +367,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud4?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud4?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -454,7 +454,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud4?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud4?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -541,7 +541,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud4?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud4?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -568,7 +568,7 @@ "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud4?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud4?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -644,7 +644,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -675,7 +675,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(5,Pooled,DepthFirst,DepthFirst,Desktop).json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(5,Pooled,DepthFirst,DepthFirst,Desktop).json index d2487f981442..27f863430e3a 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(5,Pooled,DepthFirst,DepthFirst,Desktop).json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(5,Pooled,DepthFirst,DepthFirst,Desktop).json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud5?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud5?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud5?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud5?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -269,7 +269,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud5?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud5?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -367,7 +367,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud5?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud5?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -454,7 +454,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud5?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud5?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -541,7 +541,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud5?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud5?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -568,7 +568,7 @@ "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud5?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud5?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -644,7 +644,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -675,7 +675,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(5,Pooled,DepthFirst,DepthFirst,Desktop)Async.json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(5,Pooled,DepthFirst,DepthFirst,Desktop)Async.json index 97958886ab41..91abba515cf4 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(5,Pooled,DepthFirst,DepthFirst,Desktop)Async.json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(5,Pooled,DepthFirst,DepthFirst,Desktop)Async.json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud5?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud5?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud5?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud5?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -269,7 +269,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud5?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud5?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -367,7 +367,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud5?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud5?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -454,7 +454,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud5?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud5?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -541,7 +541,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud5?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud5?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -568,7 +568,7 @@ "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud5?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud5?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -644,7 +644,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -675,7 +675,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(6,Pooled,DepthFirst,DepthFirst,RailApplications).json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(6,Pooled,DepthFirst,DepthFirst,RailApplications).json index 4b064c5e9aef..8da8d807f802 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(6,Pooled,DepthFirst,DepthFirst,RailApplications).json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(6,Pooled,DepthFirst,DepthFirst,RailApplications).json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud6?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud6?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud6?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud6?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -269,7 +269,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud6?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud6?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -367,7 +367,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud6?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud6?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -454,7 +454,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud6?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud6?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -541,7 +541,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud6?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud6?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -568,7 +568,7 @@ "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud6?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud6?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -644,7 +644,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -675,7 +675,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(6,Pooled,DepthFirst,DepthFirst,RailApplications)Async.json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(6,Pooled,DepthFirst,DepthFirst,RailApplications)Async.json index 848962b63cd7..a057b94bb65a 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(6,Pooled,DepthFirst,DepthFirst,RailApplications)Async.json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(6,Pooled,DepthFirst,DepthFirst,RailApplications)Async.json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud6?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud6?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud6?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud6?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -269,7 +269,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud6?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud6?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -367,7 +367,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud6?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud6?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -454,7 +454,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud6?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud6?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -541,7 +541,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud6?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud6?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -568,7 +568,7 @@ "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud6?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud6?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -644,7 +644,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -675,7 +675,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(7,Pooled,BreadthFirst,BreadthFirst,Desktop).json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(7,Pooled,BreadthFirst,BreadthFirst,Desktop).json index 253b82b52eee..bb9a58f1ccf8 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(7,Pooled,BreadthFirst,BreadthFirst,Desktop).json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(7,Pooled,BreadthFirst,BreadthFirst,Desktop).json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud7?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud7?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud7?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud7?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -269,7 +269,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud7?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud7?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -367,7 +367,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud7?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud7?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -454,7 +454,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud7?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud7?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -541,7 +541,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud7?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud7?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -568,7 +568,7 @@ "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud7?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud7?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -644,7 +644,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -675,7 +675,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(7,Pooled,BreadthFirst,BreadthFirst,Desktop)Async.json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(7,Pooled,BreadthFirst,BreadthFirst,Desktop)Async.json index beb607262a6f..43f3860126a3 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(7,Pooled,BreadthFirst,BreadthFirst,Desktop)Async.json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(7,Pooled,BreadthFirst,BreadthFirst,Desktop)Async.json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud7?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud7?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud7?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud7?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -269,7 +269,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud7?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud7?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -367,7 +367,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud7?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud7?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -454,7 +454,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud7?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud7?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -541,7 +541,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud7?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud7?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -568,7 +568,7 @@ "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud7?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud7?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -644,7 +644,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -675,7 +675,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(8,Pooled,BreadthFirst,BreadthFirst,RailApplications).json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(8,Pooled,BreadthFirst,BreadthFirst,RailApplications).json index 737f89eefada..93e8eb571aca 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(8,Pooled,BreadthFirst,BreadthFirst,RailApplications).json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(8,Pooled,BreadthFirst,BreadthFirst,RailApplications).json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud8?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud8?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud8?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud8?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -269,7 +269,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud8?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud8?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -367,7 +367,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud8?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud8?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -454,7 +454,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud8?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud8?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -541,7 +541,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud8?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud8?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -568,7 +568,7 @@ "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud8?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud8?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -644,7 +644,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -675,7 +675,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(8,Pooled,BreadthFirst,BreadthFirst,RailApplications)Async.json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(8,Pooled,BreadthFirst,BreadthFirst,RailApplications)Async.json index 5a969e7479f0..74942fd2c037 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(8,Pooled,BreadthFirst,BreadthFirst,RailApplications)Async.json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/HostPoolCollectionTests/HostPoolCrud(8,Pooled,BreadthFirst,BreadthFirst,RailApplications)Async.json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud8?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud8?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud8?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud8?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -269,7 +269,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud8?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud8?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -367,7 +367,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud8?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud8?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -454,7 +454,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud8?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud8?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -541,7 +541,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud8?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud8?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -568,7 +568,7 @@ "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud8?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testHostPoolCrud8?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -644,7 +644,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -675,7 +675,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationCollectionTests/RemoteApplicationCrud().json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationCollectionTests/RemoteApplicationCrud().json index 2b33b1062ad9..4384693b7320 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationCollectionTests/RemoteApplicationCrud().json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationCollectionTests/RemoteApplicationCrud().json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationCrudHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationCrudHP?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -261,7 +261,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG/applications/notepad?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG/applications/notepad?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -341,7 +341,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG/applications/notepad?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG/applications/notepad?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -411,7 +411,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG/applications/notepad?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG/applications/notepad?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -491,7 +491,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG/applications/notepad?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG/applications/notepad?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -561,7 +561,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG/applications/notepad?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG/applications/notepad?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -600,7 +600,7 @@ "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG/applications/notepad?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG/applications/notepad?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -646,7 +646,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -716,7 +716,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationCrudHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationCrudHP?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -845,7 +845,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -876,7 +876,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationCollectionTests/RemoteApplicationCrud()Async.json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationCollectionTests/RemoteApplicationCrud()Async.json index 36158cdc6026..fc29fc688f7c 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationCollectionTests/RemoteApplicationCrud()Async.json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationCollectionTests/RemoteApplicationCrud()Async.json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationCrudHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationCrudHP?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -261,7 +261,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG/applications/notepad?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG/applications/notepad?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -341,7 +341,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG/applications/notepad?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG/applications/notepad?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -411,7 +411,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG/applications/notepad?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG/applications/notepad?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -491,7 +491,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG/applications/notepad?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG/applications/notepad?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -561,7 +561,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG/applications/notepad?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG/applications/notepad?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -600,7 +600,7 @@ "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG/applications/notepad?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG/applications/notepad?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -646,7 +646,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationCrudAG?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -716,7 +716,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationCrudHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationCrudHP?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -845,7 +845,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -876,7 +876,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/DesktopApplicationGroupCrud().json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/DesktopApplicationGroupCrud().json index 7f019678816b..cf5e083d982e 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/DesktopApplicationGroupCrud().json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/DesktopApplicationGroupCrud().json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testDesktopApplicationGroupCrudHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testDesktopApplicationGroupCrudHP?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationGroupCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationGroupCrudAG?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -261,7 +261,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationGroupCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationGroupCrudAG?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -331,7 +331,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationGroupCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationGroupCrudAG?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -411,7 +411,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationGroupCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationGroupCrudAG?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -481,7 +481,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationGroupCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationGroupCrudAG?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -551,7 +551,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationGroupCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationGroupCrudAG?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -578,7 +578,7 @@ "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationGroupCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationGroupCrudAG?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -612,7 +612,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testDesktopApplicationGroupCrudHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testDesktopApplicationGroupCrudHP?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -741,7 +741,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -772,7 +772,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/DesktopApplicationGroupCrud()Async.json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/DesktopApplicationGroupCrud()Async.json index bec8133f14d6..78fc4ad1f3f3 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/DesktopApplicationGroupCrud()Async.json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/DesktopApplicationGroupCrud()Async.json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testDesktopApplicationGroupCrudHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testDesktopApplicationGroupCrudHP?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationGroupCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationGroupCrudAG?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -261,7 +261,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationGroupCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationGroupCrudAG?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -331,7 +331,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationGroupCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationGroupCrudAG?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -411,7 +411,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationGroupCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationGroupCrudAG?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -481,7 +481,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationGroupCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationGroupCrudAG?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -551,7 +551,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationGroupCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationGroupCrudAG?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -578,7 +578,7 @@ "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationGroupCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationGroupCrudAG?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -612,7 +612,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testDesktopApplicationGroupCrudHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testDesktopApplicationGroupCrudHP?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -741,7 +741,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -772,7 +772,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupCrud().json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupCrud().json index 04fe714a1792..cb22b41b9c3f 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupCrud().json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupCrud().json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationGroupCrudHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationGroupCrudHP?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupCrudAG?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -261,7 +261,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupCrudAG?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -331,7 +331,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupCrudAG?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -411,7 +411,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupCrudAG?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -481,7 +481,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupCrudAG?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -551,7 +551,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupCrudAG?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -578,7 +578,7 @@ "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupCrudAG?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -612,7 +612,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationGroupCrudHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationGroupCrudHP?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -741,7 +741,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -772,7 +772,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupCrud()Async.json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupCrud()Async.json index 0dee45079482..4c288773d47e 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupCrud()Async.json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupCrud()Async.json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationGroupCrudHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationGroupCrudHP?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupCrudAG?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -261,7 +261,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupCrudAG?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -331,7 +331,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupCrudAG?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -411,7 +411,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupCrudAG?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -481,7 +481,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupCrudAG?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -551,7 +551,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupCrudAG?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -578,7 +578,7 @@ "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupCrudAG?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -612,7 +612,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationGroupCrudHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationGroupCrudHP?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -741,7 +741,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -772,7 +772,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList(0).json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList(0).json index 12b8c63523fb..f08362e638cb 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList(0).json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList(0).json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/RemoteApplicationGroupListHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/RemoteApplicationGroupListHP?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -255,7 +255,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -286,7 +286,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -378,7 +378,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/RemoteApplicationGroupListHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/RemoteApplicationGroupListHP?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList(0)Async.json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList(0)Async.json index 498483b7b75d..26c6b665dcc1 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList(0)Async.json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList(0)Async.json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/RemoteApplicationGroupListHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/RemoteApplicationGroupListHP?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -255,7 +255,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -286,7 +286,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -378,7 +378,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/RemoteApplicationGroupListHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/RemoteApplicationGroupListHP?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList(1).json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList(1).json index e4143b781af1..e30bed669d33 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList(1).json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList(1).json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/RemoteApplicationGroupListHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/RemoteApplicationGroupListHP?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG0?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG0?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -261,7 +261,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -378,7 +378,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -453,7 +453,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG0?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG0?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -523,7 +523,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -615,7 +615,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/RemoteApplicationGroupListHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/RemoteApplicationGroupListHP?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList(1)Async.json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList(1)Async.json index e3bf7ee2ea55..09a82da667ab 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList(1)Async.json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList(1)Async.json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/RemoteApplicationGroupListHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/RemoteApplicationGroupListHP?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG0?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG0?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -261,7 +261,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -378,7 +378,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -453,7 +453,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG0?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG0?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -523,7 +523,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -615,7 +615,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/RemoteApplicationGroupListHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/RemoteApplicationGroupListHP?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList(10).json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList(10).json index 3f33cd445890..aeb4769a84e2 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList(10).json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList(10).json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/RemoteApplicationGroupListHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/RemoteApplicationGroupListHP?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG0?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG0?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -261,7 +261,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG1?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG1?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -340,7 +340,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG2?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG2?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -419,7 +419,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG3?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG3?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -498,7 +498,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG4?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG4?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -577,7 +577,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG5?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG5?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -656,7 +656,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG6?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG6?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -735,7 +735,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG7?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG7?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -814,7 +814,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG8?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG8?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -893,7 +893,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG9?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG9?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -972,7 +972,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -1350,7 +1350,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -1686,7 +1686,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG0?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG0?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -1756,7 +1756,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG1?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG1?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -1826,7 +1826,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG2?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG2?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -1896,7 +1896,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG3?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG3?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -1966,7 +1966,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG4?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG4?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -2036,7 +2036,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG5?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG5?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -2106,7 +2106,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG6?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG6?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -2176,7 +2176,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG7?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG7?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -2246,7 +2246,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG8?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG8?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -2316,7 +2316,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG9?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG9?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -2386,7 +2386,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -2478,7 +2478,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/RemoteApplicationGroupListHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/RemoteApplicationGroupListHP?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList(10)Async.json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList(10)Async.json index c9f8095bee8c..07449de9b090 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList(10)Async.json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList(10)Async.json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/RemoteApplicationGroupListHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/RemoteApplicationGroupListHP?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG0?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG0?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -261,7 +261,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG1?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG1?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -340,7 +340,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG7?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG7?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -419,7 +419,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG8?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG8?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -498,7 +498,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG2?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG2?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -577,7 +577,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG5?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG5?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -656,7 +656,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG6?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG6?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -735,7 +735,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG9?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG9?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -814,7 +814,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG3?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG3?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -893,7 +893,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG4?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG4?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -972,7 +972,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -1350,7 +1350,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -1686,7 +1686,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG0?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG0?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -1756,7 +1756,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG1?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG1?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -1826,7 +1826,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG2?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG2?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -1896,7 +1896,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG3?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG3?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -1966,7 +1966,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG4?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG4?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -2036,7 +2036,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG5?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG5?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -2106,7 +2106,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG6?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG6?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -2176,7 +2176,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG7?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG7?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -2246,7 +2246,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG8?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG8?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -2316,7 +2316,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG9?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/RemoteApplicationGroupListAG9?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -2386,7 +2386,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -2478,7 +2478,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/RemoteApplicationGroupListHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/RemoteApplicationGroupListHP?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList0AG().json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList0AG().json index 09c43c4c5e51..bede676ed742 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList0AG().json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList0AG().json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationGroupList0AGHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationGroupList0AGHP?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -213,7 +213,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationGroupList0AGHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationGroupList0AGHP?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -342,7 +342,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -373,7 +373,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList0AG()Async.json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList0AG()Async.json index 873c983c46ab..d3f805fecb40 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList0AG()Async.json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList0AG()Async.json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationGroupList0AGHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationGroupList0AGHP?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -213,7 +213,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationGroupList0AGHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationGroupList0AGHP?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -342,7 +342,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -373,7 +373,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList1AG().json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList1AG().json index 4a4f2a8c1584..e8590debff70 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList1AG().json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList1AG().json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationGroupList1AGHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationGroupList1AGHP?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupList1AGAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupList1AGAG?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -261,7 +261,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -336,7 +336,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupList1AGAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupList1AGAG?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -405,7 +405,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationGroupList1AGHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationGroupList1AGHP?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -534,7 +534,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -565,7 +565,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList1AG()Async.json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList1AG()Async.json index f2293ad12af3..f966f7426251 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList1AG()Async.json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualApplicationGroupCollectionTests/RemoteApplicationGroupList1AG()Async.json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationGroupList1AGHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationGroupList1AGHP?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupList1AGAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupList1AGAG?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -261,7 +261,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -336,7 +336,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupList1AGAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testRemoteApplicationGroupList1AGAG?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -405,7 +405,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationGroupList1AGHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationGroupList1AGHP?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -474,7 +474,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -505,7 +505,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -597,7 +597,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationGroupList1AGHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testRemoteApplicationGroupList1AGHP?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualDesktopCollectionTests/DesktopApplicationCrud().json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualDesktopCollectionTests/DesktopApplicationCrud().json index bbbe1c420b3a..6cb8c20a1c70 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualDesktopCollectionTests/DesktopApplicationCrud().json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualDesktopCollectionTests/DesktopApplicationCrud().json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testDesktopApplicationCrudHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testDesktopApplicationCrudHP?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -261,7 +261,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG/desktops?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG/desktops?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -327,7 +327,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG/desktops/SessionDesktop?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG/desktops/SessionDesktop?api-version=2022-09-09", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -395,7 +395,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG/desktops/SessionDesktop?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG/desktops/SessionDesktop?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -456,7 +456,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -526,7 +526,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -596,7 +596,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -623,7 +623,7 @@ "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -657,7 +657,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testDesktopApplicationCrudHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testDesktopApplicationCrudHP?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -786,7 +786,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -817,7 +817,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualDesktopCollectionTests/DesktopApplicationCrud()Async.json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualDesktopCollectionTests/DesktopApplicationCrud()Async.json index be4806f54a92..1521645e7d9a 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualDesktopCollectionTests/DesktopApplicationCrud()Async.json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualDesktopCollectionTests/DesktopApplicationCrud()Async.json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testDesktopApplicationCrudHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testDesktopApplicationCrudHP?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -261,7 +261,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG/desktops?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG/desktops?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -327,7 +327,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG/desktops/SessionDesktop?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG/desktops/SessionDesktop?api-version=2022-09-09", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -395,7 +395,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG/desktops/SessionDesktop?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG/desktops/SessionDesktop?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -456,7 +456,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -526,7 +526,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -596,7 +596,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -623,7 +623,7 @@ "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups/testDesktopApplicationCrudAG?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -657,7 +657,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testDesktopApplicationCrudHP?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools/testDesktopApplicationCrudHP?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -786,7 +786,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -817,7 +817,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualWorkspaceCollectionTests/WorkspaceCrud().json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualWorkspaceCollectionTests/WorkspaceCrud().json index 6cf42e978916..fe16a74c7aa6 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualWorkspaceCollectionTests/WorkspaceCrud().json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualWorkspaceCollectionTests/WorkspaceCrud().json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/workspaces/testWorkspaceCrudWS?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/workspaces/testWorkspaceCrudWS?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -155,7 +155,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/workspaces/testWorkspaceCrudWS?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/workspaces/testWorkspaceCrudWS?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -219,7 +219,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/workspaces/testWorkspaceCrudWS?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/workspaces/testWorkspaceCrudWS?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -291,7 +291,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/workspaces/testWorkspaceCrudWS?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/workspaces/testWorkspaceCrudWS?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -355,7 +355,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/workspaces/testWorkspaceCrudWS?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/workspaces/testWorkspaceCrudWS?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -412,7 +412,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/workspaces/testWorkspaceCrudWS?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/workspaces/testWorkspaceCrudWS?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -439,7 +439,7 @@ "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/workspaces/testWorkspaceCrudWS?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/workspaces/testWorkspaceCrudWS?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -515,7 +515,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -546,7 +546,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualWorkspaceCollectionTests/WorkspaceCrud()Async.json b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualWorkspaceCollectionTests/WorkspaceCrud()Async.json index 599d9a646735..24b9dfe335b2 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualWorkspaceCollectionTests/WorkspaceCrud()Async.json +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/tests/SessionRecords/VirtualWorkspaceCollectionTests/WorkspaceCrud()Async.json @@ -85,7 +85,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/workspaces/testWorkspaceCrudWS?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/workspaces/testWorkspaceCrudWS?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -155,7 +155,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/workspaces/testWorkspaceCrudWS?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/workspaces/testWorkspaceCrudWS?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -219,7 +219,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/workspaces/testWorkspaceCrudWS?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/workspaces/testWorkspaceCrudWS?api-version=2022-09-09", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -291,7 +291,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/workspaces/testWorkspaceCrudWS?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/workspaces/testWorkspaceCrudWS?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -355,7 +355,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/workspaces/testWorkspaceCrudWS?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/workspaces/testWorkspaceCrudWS?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -412,7 +412,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/workspaces/testWorkspaceCrudWS?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/workspaces/testWorkspaceCrudWS?api-version=2022-09-09", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -439,7 +439,7 @@ "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/workspaces/testWorkspaceCrudWS?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/workspaces/testWorkspaceCrudWS?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -515,7 +515,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/applicationGroups?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -546,7 +546,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12", + "RequestUri": "https://management.azure.com/subscriptions/292d7caa-a878-4de8-b774-689097666272/resourceGroups/azsdkRG/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2022-09-09", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json",