diff --git a/sdk/devcenter/Azure.Developer.DevCenter/CHANGELOG.md b/sdk/devcenter/Azure.Developer.DevCenter/CHANGELOG.md index 3c4b52320e34..cb8cb9c49418 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/CHANGELOG.md +++ b/sdk/devcenter/Azure.Developer.DevCenter/CHANGELOG.md @@ -10,6 +10,11 @@ This release updates the Azure DevCenter library to use the 2023-04-01 GA API. - `DeploymentEnvironmentsClient` now works with "environment definitions" instead of "catalog items" - Creating a new environment requires passing `environmentDefinitionName` instead of `catalogItemName` - Creating a new environment requires passing an additional parameter `catalogName` + - `DevCenterClientOptions` renamed to `AzureDeveloperDevCenterClientOptions` + - No more default parameters in the clients. `userId`, `filter`, `maxCount`, `hibernate` and `context` parameters need to be specified in the methods. + - `GetAction` renamed to `GetDevBoxAction` + - `GetActions` renamed to `GetDevBoxActions` + ## 1.0.0-beta.2 (2023-02-07) This release updates the Azure DevCenter library to use the 2022-11-11-preview API. diff --git a/sdk/devcenter/Azure.Developer.DevCenter/README.md b/sdk/devcenter/Azure.Developer.DevCenter/README.md index fa0da0f60818..5c237c895d71 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/README.md +++ b/sdk/devcenter/Azure.Developer.DevCenter/README.md @@ -77,7 +77,7 @@ You can familiarize yourself with different APIs using [Samples](https://github. ```C# Snippet:Azure_DevCenter_GetProjects_Scenario string targetProjectName = null; -await foreach (BinaryData data in devCenterClient.GetProjectsAsync()) +await foreach (BinaryData data in devCenterClient.GetProjectsAsync(null, null, null)) { JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement; targetProjectName = result.GetProperty("name").ToString(); @@ -90,7 +90,7 @@ Interaction with DevBox pools is facilitated through the `DevBoxesClient`. Pools ```C# Snippet:Azure_DevCenter_GetPools_Scenario string targetPoolName = null; -await foreach (BinaryData data in devBoxesClient.GetPoolsAsync(targetProjectName)) +await foreach (BinaryData data in devBoxesClient.GetPoolsAsync(targetProjectName, null, null, null)) { JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement; targetPoolName = result.GetProperty("name").ToString(); @@ -127,7 +127,8 @@ Once a DevBox is provisioned, you can connect to it using an RDP connection stri Response remoteConnectionResponse = await devBoxesClient.GetRemoteConnectionAsync( targetProjectName, "me", - "MyDevBox"); + "MyDevBox", + null); JsonElement remoteConnectionData = JsonDocument.Parse(remoteConnectionResponse.ContentStream).RootElement; Console.WriteLine($"Connect using web URL {remoteConnectionData.GetProperty("webUrl")}."); ``` @@ -153,7 +154,7 @@ Console.WriteLine($"Completed dev box deletion."); ```C# Snippet:Azure_DevCenter_GetCatalogs_Scenario string catalogName = null; -await foreach (BinaryData data in environmentsClient.GetCatalogsAsync(projectName)) +await foreach (BinaryData data in environmentsClient.GetCatalogsAsync(projectName, null, null)) { JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement; catalogName = result.GetProperty("name").ToString(); @@ -179,7 +180,7 @@ Issue a request to get all environment types in a project. ```C# Snippet:Azure_DevCenter_GetEnvironmentTypes_Scenario string environmentTypeName = null; -await foreach (BinaryData data in environmentsClient.GetEnvironmentTypesAsync(projectName)) +await foreach (BinaryData data in environmentsClient.GetEnvironmentTypesAsync(projectName, null, null)) { JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement; environmentTypeName = result.GetProperty("name").ToString(); diff --git a/sdk/devcenter/Azure.Developer.DevCenter/api/Azure.Developer.DevCenter.netstandard2.0.cs b/sdk/devcenter/Azure.Developer.DevCenter/api/Azure.Developer.DevCenter.netstandard2.0.cs index 44ecad4379e7..7d42d6b1b879 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/api/Azure.Developer.DevCenter.netstandard2.0.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/api/Azure.Developer.DevCenter.netstandard2.0.cs @@ -1,108 +1,108 @@ namespace Azure.Developer.DevCenter { + public partial class AzureDeveloperDevCenterClientOptions : Azure.Core.ClientOptions + { + public AzureDeveloperDevCenterClientOptions(Azure.Developer.DevCenter.AzureDeveloperDevCenterClientOptions.ServiceVersion version = Azure.Developer.DevCenter.AzureDeveloperDevCenterClientOptions.ServiceVersion.V2023_04_01) { } + public enum ServiceVersion + { + V2023_04_01 = 1, + } + } public partial class DeploymentEnvironmentsClient { protected DeploymentEnvironmentsClient() { } public DeploymentEnvironmentsClient(System.Uri endpoint, Azure.Core.TokenCredential credential) { } - public DeploymentEnvironmentsClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Developer.DevCenter.DevCenterClientOptions options) { } + public DeploymentEnvironmentsClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Developer.DevCenter.AzureDeveloperDevCenterClientOptions options) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } public virtual Azure.Operation CreateOrUpdateEnvironment(Azure.WaitUntil waitUntil, string projectName, string userId, string environmentName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task> CreateOrUpdateEnvironmentAsync(Azure.WaitUntil waitUntil, string projectName, string userId, string environmentName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Operation DeleteEnvironment(Azure.WaitUntil waitUntil, string projectName, string userId, string environmentName, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteEnvironmentAsync(Azure.WaitUntil waitUntil, string projectName, string userId, string environmentName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetAllEnvironments(string projectName, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetAllEnvironmentsAsync(string projectName, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetCatalog(string projectName, string catalogName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCatalogAsync(string projectName, string catalogName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetCatalogs(string projectName, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetCatalogsAsync(string projectName, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetEnvironment(string projectName, string userId, string environmentName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetEnvironmentAsync(string projectName, string userId, string environmentName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetEnvironmentDefinition(string projectName, string catalogName, string definitionName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetEnvironmentDefinitionAsync(string projectName, string catalogName, string definitionName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetEnvironmentDefinitions(string projectName, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetEnvironmentDefinitionsAsync(string projectName, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetEnvironmentDefinitionsByCatalog(string projectName, string catalogName, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetEnvironmentDefinitionsByCatalogAsync(string projectName, string catalogName, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetEnvironments(string projectName, string userId, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetEnvironmentsAsync(string projectName, string userId, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetEnvironmentTypes(string projectName, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetEnvironmentTypesAsync(string projectName, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } + public virtual Azure.Pageable GetAllEnvironments(string projectName, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetAllEnvironmentsAsync(string projectName, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetCatalog(string projectName, string catalogName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetCatalogAsync(string projectName, string catalogName, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetCatalogs(string projectName, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetCatalogsAsync(string projectName, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetEnvironment(string projectName, string userId, string environmentName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetEnvironmentAsync(string projectName, string userId, string environmentName, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetEnvironmentDefinition(string projectName, string catalogName, string definitionName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetEnvironmentDefinitionAsync(string projectName, string catalogName, string definitionName, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetEnvironmentDefinitions(string projectName, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetEnvironmentDefinitionsAsync(string projectName, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetEnvironmentDefinitionsByCatalog(string projectName, string catalogName, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetEnvironmentDefinitionsByCatalogAsync(string projectName, string catalogName, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetEnvironments(string projectName, string userId, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetEnvironmentsAsync(string projectName, string userId, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetEnvironmentTypes(string projectName, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetEnvironmentTypesAsync(string projectName, int? maxCount, Azure.RequestContext context) { throw null; } } public partial class DevBoxesClient { protected DevBoxesClient() { } public DevBoxesClient(System.Uri endpoint, Azure.Core.TokenCredential credential) { } - public DevBoxesClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Developer.DevCenter.DevCenterClientOptions options) { } + public DevBoxesClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Developer.DevCenter.AzureDeveloperDevCenterClientOptions options) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } public virtual Azure.Operation CreateDevBox(Azure.WaitUntil waitUntil, string projectName, string userId, string devBoxName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task> CreateDevBoxAsync(Azure.WaitUntil waitUntil, string projectName, string userId, string devBoxName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response DelayAction(string projectName, string userId, string devBoxName, string actionName, System.DateTimeOffset until, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task DelayActionAsync(string projectName, string userId, string devBoxName, string actionName, System.DateTimeOffset until, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable DelayAllActions(string projectName, string userId, string devBoxName, System.DateTimeOffset until, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable DelayAllActionsAsync(string projectName, string userId, string devBoxName, System.DateTimeOffset until, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response DelayAction(string projectName, string userId, string devBoxName, string actionName, System.DateTimeOffset delayUntil, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task DelayActionAsync(string projectName, string userId, string devBoxName, string actionName, System.DateTimeOffset delayUntil, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable DelayAllActions(string projectName, string userId, string devBoxName, System.DateTimeOffset delayUntil, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable DelayAllActionsAsync(string projectName, string userId, string devBoxName, System.DateTimeOffset delayUntil, Azure.RequestContext context) { throw null; } public virtual Azure.Operation DeleteDevBox(Azure.WaitUntil waitUntil, string projectName, string userId, string devBoxName, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteDevBoxAsync(Azure.WaitUntil waitUntil, string projectName, string userId, string devBoxName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetAction(string projectName, string userId, string devBoxName, string actionName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetActionAsync(string projectName, string userId, string devBoxName, string actionName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetActions(string projectName, string userId, string devBoxName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetActionsAsync(string projectName, string userId, string devBoxName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetAllDevBoxes(string filter = null, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetAllDevBoxesAsync(string filter = null, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetAllDevBoxesByUser(string userId, string filter = null, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetAllDevBoxesByUserAsync(string userId, string filter = null, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetDevBox(string projectName, string userId, string devBoxName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetDevBoxAsync(string projectName, string userId, string devBoxName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetDevBoxes(string projectName, string userId, string filter = null, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetDevBoxesAsync(string projectName, string userId, string filter = null, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetPool(string projectName, string poolName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetPoolAsync(string projectName, string poolName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetPools(string projectName, string filter = null, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetPoolsAsync(string projectName, string filter = null, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetRemoteConnection(string projectName, string userId, string devBoxName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetRemoteConnectionAsync(string projectName, string userId, string devBoxName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetSchedule(string projectName, string poolName, string scheduleName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetScheduleAsync(string projectName, string poolName, string scheduleName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetSchedules(string projectName, string poolName, string filter = null, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetSchedulesAsync(string projectName, string poolName, string filter = null, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.Operation RestartDevBox(Azure.WaitUntil waitUntil, string projectName, string userId, string devBoxName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> RestartDevBoxAsync(Azure.WaitUntil waitUntil, string projectName, string userId, string devBoxName, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Pageable GetAllDevBoxes(string filter, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetAllDevBoxesAsync(string filter, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetAllDevBoxesByUser(string userId, string filter, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetAllDevBoxesByUserAsync(string userId, string filter, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetDevBox(string projectName, string userId, string devBoxName, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetDevBoxAction(string projectName, string userId, string devBoxName, string actionName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetDevBoxActionAsync(string projectName, string userId, string devBoxName, string actionName, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetDevBoxActions(string projectName, string userId, string devBoxName, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetDevBoxActionsAsync(string projectName, string userId, string devBoxName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetDevBoxAsync(string projectName, string userId, string devBoxName, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetDevBoxes(string projectName, string userId, string filter, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetDevBoxesAsync(string projectName, string userId, string filter, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetPool(string projectName, string poolName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetPoolAsync(string projectName, string poolName, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetPools(string projectName, string filter, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetPoolsAsync(string projectName, string filter, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetRemoteConnection(string projectName, string userId, string devBoxName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetRemoteConnectionAsync(string projectName, string userId, string devBoxName, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetSchedule(string projectName, string poolName, string scheduleName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetScheduleAsync(string projectName, string poolName, string scheduleName, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetSchedules(string projectName, string poolName, string filter, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetSchedulesAsync(string projectName, string poolName, string filter, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.Operation RestartDevBox(Azure.WaitUntil waitUntil, string projectName, string userId, string devBoxName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> RestartDevBoxAsync(Azure.WaitUntil waitUntil, string projectName, string userId, string devBoxName, Azure.RequestContext context) { throw null; } public virtual Azure.Response SkipAction(string projectName, string userId, string devBoxName, string actionName, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task SkipActionAsync(string projectName, string userId, string devBoxName, string actionName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Operation StartDevBox(Azure.WaitUntil waitUntil, string projectName, string userId, string devBoxName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> StartDevBoxAsync(Azure.WaitUntil waitUntil, string projectName, string userId, string devBoxName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Operation StopDevBox(Azure.WaitUntil waitUntil, string projectName, string userId, string devBoxName, bool? hibernate = default(bool?), Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> StopDevBoxAsync(Azure.WaitUntil waitUntil, string projectName, string userId, string devBoxName, bool? hibernate = default(bool?), Azure.RequestContext context = null) { throw null; } + public virtual Azure.Operation StartDevBox(Azure.WaitUntil waitUntil, string projectName, string userId, string devBoxName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> StartDevBoxAsync(Azure.WaitUntil waitUntil, string projectName, string userId, string devBoxName, Azure.RequestContext context) { throw null; } + public virtual Azure.Operation StopDevBox(Azure.WaitUntil waitUntil, string projectName, string userId, string devBoxName, bool? hibernate, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> StopDevBoxAsync(Azure.WaitUntil waitUntil, string projectName, string userId, string devBoxName, bool? hibernate, Azure.RequestContext context) { throw null; } } public partial class DevCenterClient { protected DevCenterClient() { } public DevCenterClient(System.Uri endpoint, Azure.Core.TokenCredential credential) { } - public DevCenterClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Developer.DevCenter.DevCenterClientOptions options) { } + public DevCenterClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Developer.DevCenter.AzureDeveloperDevCenterClientOptions options) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response GetProject(string projectName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task GetProjectAsync(string projectName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetProjects(string filter = null, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual Azure.AsyncPageable GetProjectsAsync(string filter = null, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; } - } - public partial class DevCenterClientOptions : Azure.Core.ClientOptions - { - public DevCenterClientOptions(Azure.Developer.DevCenter.DevCenterClientOptions.ServiceVersion version = Azure.Developer.DevCenter.DevCenterClientOptions.ServiceVersion.V2023_04_01) { } - public enum ServiceVersion - { - V2023_04_01 = 1, - } + public virtual Azure.Response GetProject(string projectName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task GetProjectAsync(string projectName, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetProjects(string filter, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetProjectsAsync(string filter, int? maxCount, Azure.RequestContext context) { throw null; } } } namespace Microsoft.Extensions.Azure { public static partial class DeveloperDevCenterClientBuilderExtensions { - public static Azure.Core.Extensions.IAzureClientBuilder AddDeploymentEnvironmentsClient(this TBuilder builder, System.Uri endpoint) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential { throw null; } - public static Azure.Core.Extensions.IAzureClientBuilder AddDeploymentEnvironmentsClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } - public static Azure.Core.Extensions.IAzureClientBuilder AddDevBoxesClient(this TBuilder builder, System.Uri endpoint) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential { throw null; } - public static Azure.Core.Extensions.IAzureClientBuilder AddDevBoxesClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } - public static Azure.Core.Extensions.IAzureClientBuilder AddDevCenterClient(this TBuilder builder, System.Uri endpoint) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential { throw null; } - public static Azure.Core.Extensions.IAzureClientBuilder AddDevCenterClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } + public static Azure.Core.Extensions.IAzureClientBuilder AddDeploymentEnvironmentsClient(this TBuilder builder, System.Uri endpoint) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential { throw null; } + public static Azure.Core.Extensions.IAzureClientBuilder AddDeploymentEnvironmentsClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } + public static Azure.Core.Extensions.IAzureClientBuilder AddDevBoxesClient(this TBuilder builder, System.Uri endpoint) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential { throw null; } + public static Azure.Core.Extensions.IAzureClientBuilder AddDevBoxesClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } + public static Azure.Core.Extensions.IAzureClientBuilder AddDevCenterClient(this TBuilder builder, System.Uri endpoint) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential { throw null; } + public static Azure.Core.Extensions.IAzureClientBuilder AddDevCenterClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } } } diff --git a/sdk/devcenter/Azure.Developer.DevCenter/samples/Sample_CreateDeleteDevBoxAsync.md b/sdk/devcenter/Azure.Developer.DevCenter/samples/Sample_CreateDeleteDevBoxAsync.md index 35596bb1ebba..bf60e4be251a 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/samples/Sample_CreateDeleteDevBoxAsync.md +++ b/sdk/devcenter/Azure.Developer.DevCenter/samples/Sample_CreateDeleteDevBoxAsync.md @@ -8,7 +8,7 @@ Create a `DevCenterClient` and issue a request to get all projects the signed-in ```C# Snippet:Azure_DevCenter_GetProjects_Scenario string targetProjectName = null; -await foreach (BinaryData data in devCenterClient.GetProjectsAsync()) +await foreach (BinaryData data in devCenterClient.GetProjectsAsync(null, null, null)) { JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement; targetProjectName = result.GetProperty("name").ToString(); @@ -21,7 +21,7 @@ Create a `DevBoxesClient` and issue a request to get all pools in a project. ```C# Snippet:Azure_DevCenter_GetPools_Scenario string targetPoolName = null; -await foreach (BinaryData data in devBoxesClient.GetPoolsAsync(targetProjectName)) +await foreach (BinaryData data in devBoxesClient.GetPoolsAsync(targetProjectName, null, null, null)) { JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement; targetPoolName = result.GetProperty("name").ToString(); @@ -58,7 +58,8 @@ Once your dev box is created, issue a request to get URLs for connecting to it v Response remoteConnectionResponse = await devBoxesClient.GetRemoteConnectionAsync( targetProjectName, "me", - "MyDevBox"); + "MyDevBox", + null); JsonElement remoteConnectionData = JsonDocument.Parse(remoteConnectionResponse.ContentStream).RootElement; Console.WriteLine($"Connect using web URL {remoteConnectionData.GetProperty("webUrl")}."); ``` diff --git a/sdk/devcenter/Azure.Developer.DevCenter/samples/Sample_CreateDeleteEnvironmentAsync.md b/sdk/devcenter/Azure.Developer.DevCenter/samples/Sample_CreateDeleteEnvironmentAsync.md index bc19c4a7ac1a..7ab5cf44520a 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/samples/Sample_CreateDeleteEnvironmentAsync.md +++ b/sdk/devcenter/Azure.Developer.DevCenter/samples/Sample_CreateDeleteEnvironmentAsync.md @@ -8,7 +8,7 @@ Create a `DevCenterClient` and issue a request to get all projects the signed-in ```C# Snippet:Azure_DevCenter_GetProjects_Scenario string targetProjectName = null; -await foreach (BinaryData data in devCenterClient.GetProjectsAsync()) +await foreach (BinaryData data in devCenterClient.GetProjectsAsync(null, null, null)) { JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement; targetProjectName = result.GetProperty("name").ToString(); @@ -22,7 +22,7 @@ Create an `EnvironmentsClient` and issue a request to get all catalogs in a proj ```C# Snippet:Azure_DevCenter_GetCatalogs_Scenario string catalogName = null; -await foreach (BinaryData data in environmentsClient.GetCatalogsAsync(projectName)) +await foreach (BinaryData data in environmentsClient.GetCatalogsAsync(projectName, null, null)) { JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement; catalogName = result.GetProperty("name").ToString(); @@ -46,7 +46,7 @@ Issue a request to get all environment types in a project. ```C# Snippet:Azure_DevCenter_GetEnvironmentTypes_Scenario string environmentTypeName = null; -await foreach (BinaryData data in environmentsClient.GetEnvironmentTypesAsync(projectName)) +await foreach (BinaryData data in environmentsClient.GetEnvironmentTypesAsync(projectName, null, null)) { JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement; environmentTypeName = result.GetProperty("name").ToString(); diff --git a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DevCenterClientOptions.cs b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/AzureDeveloperDevCenterClientOptions.cs similarity index 68% rename from sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DevCenterClientOptions.cs rename to sdk/devcenter/Azure.Developer.DevCenter/src/Generated/AzureDeveloperDevCenterClientOptions.cs index 60ee3f5e2669..20f4158b8464 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DevCenterClientOptions.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/AzureDeveloperDevCenterClientOptions.cs @@ -10,8 +10,8 @@ namespace Azure.Developer.DevCenter { - /// Client options for DevCenter library clients. - public partial class DevCenterClientOptions : ClientOptions + /// Client options for Azure.Developer.DevCenter library clients. + public partial class AzureDeveloperDevCenterClientOptions : ClientOptions { private const ServiceVersion LatestVersion = ServiceVersion.V2023_04_01; @@ -24,8 +24,8 @@ public enum ServiceVersion internal string Version { get; } - /// Initializes new instance of DevCenterClientOptions. - public DevCenterClientOptions(ServiceVersion version = LatestVersion) + /// Initializes new instance of AzureDeveloperDevCenterClientOptions. + public AzureDeveloperDevCenterClientOptions(ServiceVersion version = LatestVersion) { Version = version switch { diff --git a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DeploymentEnvironmentsClient.cs b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DeploymentEnvironmentsClient.cs index ee8ef9064e0b..3b28d24345aa 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DeploymentEnvironmentsClient.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DeploymentEnvironmentsClient.cs @@ -39,7 +39,7 @@ protected DeploymentEnvironmentsClient() /// The DevCenter-specific URI to operate on. /// A credential used to authenticate to an Azure Service. /// or is null. - public DeploymentEnvironmentsClient(Uri endpoint, TokenCredential credential) : this(endpoint, credential, new DevCenterClientOptions()) + public DeploymentEnvironmentsClient(Uri endpoint, TokenCredential credential) : this(endpoint, credential, new AzureDeveloperDevCenterClientOptions()) { } @@ -48,11 +48,11 @@ protected DeploymentEnvironmentsClient() /// A credential used to authenticate to an Azure Service. /// The options for configuring the client. /// or is null. - public DeploymentEnvironmentsClient(Uri endpoint, TokenCredential credential, DevCenterClientOptions options) + public DeploymentEnvironmentsClient(Uri endpoint, TokenCredential credential, AzureDeveloperDevCenterClientOptions options) { Argument.AssertNotNull(endpoint, nameof(endpoint)); Argument.AssertNotNull(credential, nameof(credential)); - options ??= new DevCenterClientOptions(); + options ??= new AzureDeveloperDevCenterClientOptions(); ClientDiagnostics = new ClientDiagnostics(options, true); _tokenCredential = credential; @@ -72,7 +72,7 @@ public DeploymentEnvironmentsClient(Uri endpoint, TokenCredential credential, De /// /// /// The DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of the environment. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// , or is null. @@ -80,7 +80,7 @@ public DeploymentEnvironmentsClient(Uri endpoint, TokenCredential credential, De /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetEnvironmentAsync(string projectName, string userId, string environmentName, RequestContext context = null) + public virtual async Task GetEnvironmentAsync(string projectName, string userId, string environmentName, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(userId, nameof(userId)); @@ -111,7 +111,7 @@ public virtual async Task GetEnvironmentAsync(string projectName, stri /// /// /// The DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of the environment. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// , or is null. @@ -119,7 +119,7 @@ public virtual async Task GetEnvironmentAsync(string projectName, stri /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetEnvironment(string projectName, string userId, string environmentName, RequestContext context = null) + public virtual Response GetEnvironment(string projectName, string userId, string environmentName, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(userId, nameof(userId)); @@ -157,7 +157,7 @@ public virtual Response GetEnvironment(string projectName, string userId, string /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetCatalogAsync(string projectName, string catalogName, RequestContext context = null) + public virtual async Task GetCatalogAsync(string projectName, string catalogName, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(catalogName, nameof(catalogName)); @@ -194,7 +194,7 @@ public virtual async Task GetCatalogAsync(string projectName, string c /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetCatalog(string projectName, string catalogName, RequestContext context = null) + public virtual Response GetCatalog(string projectName, string catalogName, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(catalogName, nameof(catalogName)); @@ -232,7 +232,7 @@ public virtual Response GetCatalog(string projectName, string catalogName, Reque /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetEnvironmentDefinitionAsync(string projectName, string catalogName, string definitionName, RequestContext context = null) + public virtual async Task GetEnvironmentDefinitionAsync(string projectName, string catalogName, string definitionName, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(catalogName, nameof(catalogName)); @@ -271,7 +271,7 @@ public virtual async Task GetEnvironmentDefinitionAsync(string project /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetEnvironmentDefinition(string projectName, string catalogName, string definitionName, RequestContext context = null) + public virtual Response GetEnvironmentDefinition(string projectName, string catalogName, string definitionName, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(catalogName, nameof(catalogName)); @@ -309,7 +309,7 @@ public virtual Response GetEnvironmentDefinition(string projectName, string cata /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetAllEnvironmentsAsync(string projectName, int? maxCount = null, RequestContext context = null) + public virtual AsyncPageable GetAllEnvironmentsAsync(string projectName, int? maxCount, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); @@ -336,7 +336,7 @@ public virtual AsyncPageable GetAllEnvironmentsAsync(string projectN /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetAllEnvironments(string projectName, int? maxCount = null, RequestContext context = null) + public virtual Pageable GetAllEnvironments(string projectName, int? maxCount, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); @@ -356,7 +356,7 @@ public virtual Pageable GetAllEnvironments(string projectName, int? /// /// /// The DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The maximum number of resources to return from the operation. Example: 'top=10'. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// or is null. @@ -364,7 +364,7 @@ public virtual Pageable GetAllEnvironments(string projectName, int? /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetEnvironmentsAsync(string projectName, string userId, int? maxCount = null, RequestContext context = null) + public virtual AsyncPageable GetEnvironmentsAsync(string projectName, string userId, int? maxCount, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(userId, nameof(userId)); @@ -385,7 +385,7 @@ public virtual AsyncPageable GetEnvironmentsAsync(string projectName /// /// /// The DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The maximum number of resources to return from the operation. Example: 'top=10'. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// or is null. @@ -393,7 +393,7 @@ public virtual AsyncPageable GetEnvironmentsAsync(string projectName /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetEnvironments(string projectName, string userId, int? maxCount = null, RequestContext context = null) + public virtual Pageable GetEnvironments(string projectName, string userId, int? maxCount, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(userId, nameof(userId)); @@ -421,7 +421,7 @@ public virtual Pageable GetEnvironments(string projectName, string u /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetCatalogsAsync(string projectName, int? maxCount = null, RequestContext context = null) + public virtual AsyncPageable GetCatalogsAsync(string projectName, int? maxCount, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); @@ -448,7 +448,7 @@ public virtual AsyncPageable GetCatalogsAsync(string projectName, in /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetCatalogs(string projectName, int? maxCount = null, RequestContext context = null) + public virtual Pageable GetCatalogs(string projectName, int? maxCount, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); @@ -475,7 +475,7 @@ public virtual Pageable GetCatalogs(string projectName, int? maxCoun /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetEnvironmentDefinitionsAsync(string projectName, int? maxCount = null, RequestContext context = null) + public virtual AsyncPageable GetEnvironmentDefinitionsAsync(string projectName, int? maxCount, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); @@ -502,7 +502,7 @@ public virtual AsyncPageable GetEnvironmentDefinitionsAsync(string p /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetEnvironmentDefinitions(string projectName, int? maxCount = null, RequestContext context = null) + public virtual Pageable GetEnvironmentDefinitions(string projectName, int? maxCount, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); @@ -530,7 +530,7 @@ public virtual Pageable GetEnvironmentDefinitions(string projectName /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetEnvironmentDefinitionsByCatalogAsync(string projectName, string catalogName, int? maxCount = null, RequestContext context = null) + public virtual AsyncPageable GetEnvironmentDefinitionsByCatalogAsync(string projectName, string catalogName, int? maxCount, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(catalogName, nameof(catalogName)); @@ -559,7 +559,7 @@ public virtual AsyncPageable GetEnvironmentDefinitionsByCatalogAsync /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetEnvironmentDefinitionsByCatalog(string projectName, string catalogName, int? maxCount = null, RequestContext context = null) + public virtual Pageable GetEnvironmentDefinitionsByCatalog(string projectName, string catalogName, int? maxCount, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(catalogName, nameof(catalogName)); @@ -587,7 +587,7 @@ public virtual Pageable GetEnvironmentDefinitionsByCatalog(string pr /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetEnvironmentTypesAsync(string projectName, int? maxCount = null, RequestContext context = null) + public virtual AsyncPageable GetEnvironmentTypesAsync(string projectName, int? maxCount, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); @@ -614,7 +614,7 @@ public virtual AsyncPageable GetEnvironmentTypesAsync(string project /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetEnvironmentTypes(string projectName, int? maxCount = null, RequestContext context = null) + public virtual Pageable GetEnvironmentTypes(string projectName, int? maxCount, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); @@ -635,7 +635,7 @@ public virtual Pageable GetEnvironmentTypes(string projectName, int? /// /// 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 DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of the environment. /// The content to send as the body of the request. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. @@ -677,7 +677,7 @@ public virtual async Task> CreateOrUpdateEnvironmentAsync( /// /// 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 DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of the environment. /// The content to send as the body of the request. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. @@ -719,7 +719,7 @@ public virtual Operation CreateOrUpdateEnvironment(WaitUntil waitUnt /// /// 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 DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of the environment. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// , or is null. @@ -738,7 +738,7 @@ public virtual async Task DeleteEnvironmentAsync(WaitUntil waitUntil, try { using HttpMessage message = CreateDeleteEnvironmentRequest(projectName, userId, environmentName, context); - return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "DeploymentEnvironmentsClient.DeleteEnvironment", OperationFinalStateVia.Location, context, waitUntil).ConfigureAwait(false); + return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "DeploymentEnvironmentsClient.DeleteEnvironment", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); } catch (Exception e) { @@ -759,7 +759,7 @@ public virtual async Task DeleteEnvironmentAsync(WaitUntil waitUntil, /// /// 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 DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of the environment. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// , or is null. @@ -778,7 +778,7 @@ public virtual Operation DeleteEnvironment(WaitUntil waitUntil, string projectNa try { using HttpMessage message = CreateDeleteEnvironmentRequest(projectName, userId, environmentName, context); - return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "DeploymentEnvironmentsClient.DeleteEnvironment", OperationFinalStateVia.Location, context, waitUntil); + return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "DeploymentEnvironmentsClient.DeleteEnvironment", OperationFinalStateVia.OperationLocation, context, waitUntil); } catch (Exception e) { diff --git a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DevBoxesClient.cs b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DevBoxesClient.cs index 234a72573dbf..422303c068a1 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DevBoxesClient.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DevBoxesClient.cs @@ -39,7 +39,7 @@ protected DevBoxesClient() /// The DevCenter-specific URI to operate on. /// A credential used to authenticate to an Azure Service. /// or is null. - public DevBoxesClient(Uri endpoint, TokenCredential credential) : this(endpoint, credential, new DevCenterClientOptions()) + public DevBoxesClient(Uri endpoint, TokenCredential credential) : this(endpoint, credential, new AzureDeveloperDevCenterClientOptions()) { } @@ -48,11 +48,11 @@ protected DevBoxesClient() /// A credential used to authenticate to an Azure Service. /// The options for configuring the client. /// or is null. - public DevBoxesClient(Uri endpoint, TokenCredential credential, DevCenterClientOptions options) + public DevBoxesClient(Uri endpoint, TokenCredential credential, AzureDeveloperDevCenterClientOptions options) { Argument.AssertNotNull(endpoint, nameof(endpoint)); Argument.AssertNotNull(credential, nameof(credential)); - options ??= new DevCenterClientOptions(); + options ??= new AzureDeveloperDevCenterClientOptions(); ClientDiagnostics = new ClientDiagnostics(options, true); _tokenCredential = credential; @@ -79,7 +79,7 @@ public DevBoxesClient(Uri endpoint, TokenCredential credential, DevCenterClientO /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetPoolAsync(string projectName, string poolName, RequestContext context = null) + public virtual async Task GetPoolAsync(string projectName, string poolName, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); @@ -116,7 +116,7 @@ public virtual async Task GetPoolAsync(string projectName, string pool /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetPool(string projectName, string poolName, RequestContext context = null) + public virtual Response GetPool(string projectName, string poolName, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); @@ -154,7 +154,7 @@ public virtual Response GetPool(string projectName, string poolName, RequestCont /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetScheduleAsync(string projectName, string poolName, string scheduleName, RequestContext context = null) + public virtual async Task GetScheduleAsync(string projectName, string poolName, string scheduleName, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); @@ -193,7 +193,7 @@ public virtual async Task GetScheduleAsync(string projectName, string /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetSchedule(string projectName, string poolName, string scheduleName, RequestContext context = null) + public virtual Response GetSchedule(string projectName, string poolName, string scheduleName, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); @@ -224,7 +224,7 @@ public virtual Response GetSchedule(string projectName, string poolName, string /// /// /// The DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// , or is null. @@ -232,7 +232,7 @@ public virtual Response GetSchedule(string projectName, string poolName, string /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetDevBoxAsync(string projectName, string userId, string devBoxName, RequestContext context = null) + public virtual async Task GetDevBoxAsync(string projectName, string userId, string devBoxName, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(userId, nameof(userId)); @@ -263,7 +263,7 @@ public virtual async Task GetDevBoxAsync(string projectName, string us /// /// /// The DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// , or is null. @@ -271,7 +271,7 @@ public virtual async Task GetDevBoxAsync(string projectName, string us /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetDevBox(string projectName, string userId, string devBoxName, RequestContext context = null) + public virtual Response GetDevBox(string projectName, string userId, string devBoxName, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(userId, nameof(userId)); @@ -302,7 +302,7 @@ public virtual Response GetDevBox(string projectName, string userId, string devB /// /// /// The DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// , or is null. @@ -310,7 +310,7 @@ public virtual Response GetDevBox(string projectName, string userId, string devB /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetRemoteConnectionAsync(string projectName, string userId, string devBoxName, RequestContext context = null) + public virtual async Task GetRemoteConnectionAsync(string projectName, string userId, string devBoxName, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(userId, nameof(userId)); @@ -341,7 +341,7 @@ public virtual async Task GetRemoteConnectionAsync(string projectName, /// /// /// The DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// , or is null. @@ -349,7 +349,7 @@ public virtual async Task GetRemoteConnectionAsync(string projectName, /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetRemoteConnection(string projectName, string userId, string devBoxName, RequestContext context = null) + public virtual Response GetRemoteConnection(string projectName, string userId, string devBoxName, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(userId, nameof(userId)); @@ -380,7 +380,7 @@ public virtual Response GetRemoteConnection(string projectName, string userId, s /// /// /// The DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. /// The name of an action that will take place on a Dev Box. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. @@ -388,19 +388,19 @@ public virtual Response GetRemoteConnection(string projectName, string userId, s /// , , or is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetActionAsync(string projectName, string userId, string devBoxName, string actionName, RequestContext context = null) + /// + public virtual async Task GetDevBoxActionAsync(string projectName, string userId, string devBoxName, string actionName, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(userId, nameof(userId)); Argument.AssertNotNullOrEmpty(devBoxName, nameof(devBoxName)); Argument.AssertNotNullOrEmpty(actionName, nameof(actionName)); - using var scope = ClientDiagnostics.CreateScope("DevBoxesClient.GetAction"); + using var scope = ClientDiagnostics.CreateScope("DevBoxesClient.GetDevBoxAction"); scope.Start(); try { - using HttpMessage message = CreateGetActionRequest(projectName, userId, devBoxName, actionName, context); + using HttpMessage message = CreateGetDevBoxActionRequest(projectName, userId, devBoxName, actionName, context); return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) @@ -421,7 +421,7 @@ public virtual async Task GetActionAsync(string projectName, string us /// /// /// The DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. /// The name of an action that will take place on a Dev Box. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. @@ -429,19 +429,19 @@ public virtual async Task GetActionAsync(string projectName, string us /// , , or is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetAction(string projectName, string userId, string devBoxName, string actionName, RequestContext context = null) + /// + public virtual Response GetDevBoxAction(string projectName, string userId, string devBoxName, string actionName, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(userId, nameof(userId)); Argument.AssertNotNullOrEmpty(devBoxName, nameof(devBoxName)); Argument.AssertNotNullOrEmpty(actionName, nameof(actionName)); - using var scope = ClientDiagnostics.CreateScope("DevBoxesClient.GetAction"); + using var scope = ClientDiagnostics.CreateScope("DevBoxesClient.GetDevBoxAction"); scope.Start(); try { - using HttpMessage message = CreateGetActionRequest(projectName, userId, devBoxName, actionName, context); + using HttpMessage message = CreateGetDevBoxActionRequest(projectName, userId, devBoxName, actionName, context); return _pipeline.ProcessMessage(message, context); } catch (Exception e) @@ -462,7 +462,7 @@ public virtual Response GetAction(string projectName, string userId, string devB /// /// /// The DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. /// The name of an action that will take place on a Dev Box. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. @@ -503,7 +503,7 @@ public virtual async Task SkipActionAsync(string projectName, string u /// /// /// The DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. /// The name of an action that will take place on a Dev Box. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. @@ -544,17 +544,17 @@ public virtual Response SkipAction(string projectName, string userId, string dev /// /// /// The DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. /// The name of an action that will take place on a Dev Box. - /// The time to delay the Dev Box action or actions until. + /// The time to delay the Dev Box action or actions until. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task DelayActionAsync(string projectName, string userId, string devBoxName, string actionName, DateTimeOffset until, RequestContext context = null) + public virtual async Task DelayActionAsync(string projectName, string userId, string devBoxName, string actionName, DateTimeOffset delayUntil, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(userId, nameof(userId)); @@ -565,7 +565,7 @@ public virtual async Task DelayActionAsync(string projectName, string scope.Start(); try { - using HttpMessage message = CreateDelayActionRequest(projectName, userId, devBoxName, actionName, until, context); + using HttpMessage message = CreateDelayActionRequest(projectName, userId, devBoxName, actionName, delayUntil, context); return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) @@ -586,17 +586,17 @@ public virtual async Task DelayActionAsync(string projectName, string /// /// /// The DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. /// The name of an action that will take place on a Dev Box. - /// The time to delay the Dev Box action or actions until. + /// The time to delay the Dev Box action or actions until. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response DelayAction(string projectName, string userId, string devBoxName, string actionName, DateTimeOffset until, RequestContext context = null) + public virtual Response DelayAction(string projectName, string userId, string devBoxName, string actionName, DateTimeOffset delayUntil, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(userId, nameof(userId)); @@ -607,7 +607,7 @@ public virtual Response DelayAction(string projectName, string userId, string de scope.Start(); try { - using HttpMessage message = CreateDelayActionRequest(projectName, userId, devBoxName, actionName, until, context); + using HttpMessage message = CreateDelayActionRequest(projectName, userId, devBoxName, actionName, delayUntil, context); return _pipeline.ProcessMessage(message, context); } catch (Exception e) @@ -636,7 +636,7 @@ public virtual Response DelayAction(string projectName, string userId, string de /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetPoolsAsync(string projectName, string filter = null, int? maxCount = null, RequestContext context = null) + public virtual AsyncPageable GetPoolsAsync(string projectName, string filter, int? maxCount, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); @@ -664,7 +664,7 @@ public virtual AsyncPageable GetPoolsAsync(string projectName, strin /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetPools(string projectName, string filter = null, int? maxCount = null, RequestContext context = null) + public virtual Pageable GetPools(string projectName, string filter, int? maxCount, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); @@ -693,7 +693,7 @@ public virtual Pageable GetPools(string projectName, string filter = /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetSchedulesAsync(string projectName, string poolName, string filter = null, int? maxCount = null, RequestContext context = null) + public virtual AsyncPageable GetSchedulesAsync(string projectName, string poolName, string filter, int? maxCount, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); @@ -723,7 +723,7 @@ public virtual AsyncPageable GetSchedulesAsync(string projectName, s /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetSchedules(string projectName, string poolName, string filter = null, int? maxCount = null, RequestContext context = null) + public virtual Pageable GetSchedules(string projectName, string poolName, string filter, int? maxCount, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); @@ -749,7 +749,7 @@ public virtual Pageable GetSchedules(string projectName, string pool /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetAllDevBoxesAsync(string filter = null, int? maxCount = null, RequestContext context = null) + public virtual AsyncPageable GetAllDevBoxesAsync(string filter, int? maxCount, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetAllDevBoxesRequest(filter, maxCount, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetAllDevBoxesNextPageRequest(nextLink, filter, maxCount, context); @@ -772,7 +772,7 @@ public virtual AsyncPageable GetAllDevBoxesAsync(string filter = nul /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetAllDevBoxes(string filter = null, int? maxCount = null, RequestContext context = null) + public virtual Pageable GetAllDevBoxes(string filter, int? maxCount, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetAllDevBoxesRequest(filter, maxCount, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetAllDevBoxesNextPageRequest(nextLink, filter, maxCount, context); @@ -789,7 +789,7 @@ public virtual Pageable GetAllDevBoxes(string filter = null, int? ma /// /// /// - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// An OData filter clause to apply to the operation. /// The maximum number of resources to return from the operation. Example: 'top=10'. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. @@ -798,7 +798,7 @@ public virtual Pageable GetAllDevBoxes(string filter = null, int? ma /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetAllDevBoxesByUserAsync(string userId, string filter = null, int? maxCount = null, RequestContext context = null) + public virtual AsyncPageable GetAllDevBoxesByUserAsync(string userId, string filter, int? maxCount, RequestContext context) { Argument.AssertNotNullOrEmpty(userId, nameof(userId)); @@ -817,7 +817,7 @@ public virtual AsyncPageable GetAllDevBoxesByUserAsync(string userId /// /// /// - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// An OData filter clause to apply to the operation. /// The maximum number of resources to return from the operation. Example: 'top=10'. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. @@ -826,7 +826,7 @@ public virtual AsyncPageable GetAllDevBoxesByUserAsync(string userId /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetAllDevBoxesByUser(string userId, string filter = null, int? maxCount = null, RequestContext context = null) + public virtual Pageable GetAllDevBoxesByUser(string userId, string filter, int? maxCount, RequestContext context) { Argument.AssertNotNullOrEmpty(userId, nameof(userId)); @@ -846,7 +846,7 @@ public virtual Pageable GetAllDevBoxesByUser(string userId, string f /// /// /// The DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// An OData filter clause to apply to the operation. /// The maximum number of resources to return from the operation. Example: 'top=10'. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. @@ -855,7 +855,7 @@ public virtual Pageable GetAllDevBoxesByUser(string userId, string f /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetDevBoxesAsync(string projectName, string userId, string filter = null, int? maxCount = null, RequestContext context = null) + public virtual AsyncPageable GetDevBoxesAsync(string projectName, string userId, string filter, int? maxCount, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(userId, nameof(userId)); @@ -876,7 +876,7 @@ public virtual AsyncPageable GetDevBoxesAsync(string projectName, st /// /// /// The DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// An OData filter clause to apply to the operation. /// The maximum number of resources to return from the operation. Example: 'top=10'. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. @@ -885,7 +885,7 @@ public virtual AsyncPageable GetDevBoxesAsync(string projectName, st /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetDevBoxes(string projectName, string userId, string filter = null, int? maxCount = null, RequestContext context = null) + public virtual Pageable GetDevBoxes(string projectName, string userId, string filter, int? maxCount, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(userId, nameof(userId)); @@ -906,23 +906,23 @@ public virtual Pageable GetDevBoxes(string projectName, string userI /// /// /// The DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// , or is null. /// , or is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. - /// - public virtual AsyncPageable GetActionsAsync(string projectName, string userId, string devBoxName, RequestContext context = null) + /// + public virtual AsyncPageable GetDevBoxActionsAsync(string projectName, string userId, string devBoxName, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(userId, nameof(userId)); Argument.AssertNotNullOrEmpty(devBoxName, nameof(devBoxName)); - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetActionsRequest(projectName, userId, devBoxName, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetActionsNextPageRequest(nextLink, projectName, userId, devBoxName, context); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "DevBoxesClient.GetActions", "value", "nextLink", context); + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetDevBoxActionsRequest(projectName, userId, devBoxName, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetDevBoxActionsNextPageRequest(nextLink, projectName, userId, devBoxName, context); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "DevBoxesClient.GetDevBoxActions", "value", "nextLink", context); } /// @@ -936,23 +936,23 @@ public virtual AsyncPageable GetActionsAsync(string projectName, str /// /// /// The DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// , or is null. /// , or is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. - /// - public virtual Pageable GetActions(string projectName, string userId, string devBoxName, RequestContext context = null) + /// + public virtual Pageable GetDevBoxActions(string projectName, string userId, string devBoxName, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(userId, nameof(userId)); Argument.AssertNotNullOrEmpty(devBoxName, nameof(devBoxName)); - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetActionsRequest(projectName, userId, devBoxName, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetActionsNextPageRequest(nextLink, projectName, userId, devBoxName, context); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "DevBoxesClient.GetActions", "value", "nextLink", context); + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetDevBoxActionsRequest(projectName, userId, devBoxName, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetDevBoxActionsNextPageRequest(nextLink, projectName, userId, devBoxName, context); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "DevBoxesClient.GetDevBoxActions", "value", "nextLink", context); } /// @@ -966,23 +966,23 @@ public virtual Pageable GetActions(string projectName, string userId /// /// /// The DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. - /// The time to delay the Dev Box action or actions until. + /// The time to delay the Dev Box action or actions until. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// , or is null. /// , or is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable DelayAllActionsAsync(string projectName, string userId, string devBoxName, DateTimeOffset until, RequestContext context = null) + public virtual AsyncPageable DelayAllActionsAsync(string projectName, string userId, string devBoxName, DateTimeOffset delayUntil, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(userId, nameof(userId)); Argument.AssertNotNullOrEmpty(devBoxName, nameof(devBoxName)); - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateDelayAllActionsRequest(projectName, userId, devBoxName, until, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateDelayAllActionsNextPageRequest(nextLink, projectName, userId, devBoxName, until, context); + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateDelayAllActionsRequest(projectName, userId, devBoxName, delayUntil, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateDelayAllActionsNextPageRequest(nextLink, projectName, userId, devBoxName, delayUntil, context); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "DevBoxesClient.DelayAllActions", "value", "nextLink", context); } @@ -997,23 +997,23 @@ public virtual AsyncPageable DelayAllActionsAsync(string projectName /// /// /// The DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. - /// The time to delay the Dev Box action or actions until. + /// The time to delay the Dev Box action or actions until. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// , or is null. /// , or is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable DelayAllActions(string projectName, string userId, string devBoxName, DateTimeOffset until, RequestContext context = null) + public virtual Pageable DelayAllActions(string projectName, string userId, string devBoxName, DateTimeOffset delayUntil, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(userId, nameof(userId)); Argument.AssertNotNullOrEmpty(devBoxName, nameof(devBoxName)); - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateDelayAllActionsRequest(projectName, userId, devBoxName, until, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateDelayAllActionsNextPageRequest(nextLink, projectName, userId, devBoxName, until, context); + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateDelayAllActionsRequest(projectName, userId, devBoxName, delayUntil, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateDelayAllActionsNextPageRequest(nextLink, projectName, userId, devBoxName, delayUntil, context); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "DevBoxesClient.DelayAllActions", "value", "nextLink", context); } @@ -1029,7 +1029,7 @@ public virtual Pageable DelayAllActions(string projectName, string u /// /// 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 DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. /// The content to send as the body of the request. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. @@ -1071,7 +1071,7 @@ public virtual async Task> CreateDevBoxAsync(WaitUntil wai /// /// 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 DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. /// The content to send as the body of the request. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. @@ -1113,7 +1113,7 @@ public virtual Operation CreateDevBox(WaitUntil waitUntil, string pr /// /// 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 DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// , or is null. @@ -1132,7 +1132,7 @@ public virtual async Task DeleteDevBoxAsync(WaitUntil waitUntil, stri try { using HttpMessage message = CreateDeleteDevBoxRequest(projectName, userId, devBoxName, context); - return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "DevBoxesClient.DeleteDevBox", OperationFinalStateVia.Location, context, waitUntil).ConfigureAwait(false); + return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "DevBoxesClient.DeleteDevBox", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); } catch (Exception e) { @@ -1153,7 +1153,7 @@ public virtual async Task DeleteDevBoxAsync(WaitUntil waitUntil, stri /// /// 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 DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// , or is null. @@ -1172,7 +1172,7 @@ public virtual Operation DeleteDevBox(WaitUntil waitUntil, string projectName, s try { using HttpMessage message = CreateDeleteDevBoxRequest(projectName, userId, devBoxName, context); - return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "DevBoxesClient.DeleteDevBox", OperationFinalStateVia.Location, context, waitUntil); + return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "DevBoxesClient.DeleteDevBox", OperationFinalStateVia.OperationLocation, context, waitUntil); } catch (Exception e) { @@ -1193,7 +1193,7 @@ public virtual Operation DeleteDevBox(WaitUntil waitUntil, string projectName, s /// /// 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 DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// , or is null. @@ -1201,7 +1201,7 @@ public virtual Operation DeleteDevBox(WaitUntil waitUntil, string projectName, s /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual async Task> StartDevBoxAsync(WaitUntil waitUntil, string projectName, string userId, string devBoxName, RequestContext context = null) + public virtual async Task> StartDevBoxAsync(WaitUntil waitUntil, string projectName, string userId, string devBoxName, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(userId, nameof(userId)); @@ -1212,7 +1212,7 @@ public virtual async Task> StartDevBoxAsync(WaitUntil wait try { using HttpMessage message = CreateStartDevBoxRequest(projectName, userId, devBoxName, context); - return await ProtocolOperationHelpers.ProcessMessageAsync(_pipeline, message, ClientDiagnostics, "DevBoxesClient.StartDevBox", OperationFinalStateVia.Location, context, waitUntil).ConfigureAwait(false); + return await ProtocolOperationHelpers.ProcessMessageAsync(_pipeline, message, ClientDiagnostics, "DevBoxesClient.StartDevBox", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); } catch (Exception e) { @@ -1233,7 +1233,7 @@ public virtual async Task> StartDevBoxAsync(WaitUntil wait /// /// 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 DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// , or is null. @@ -1241,7 +1241,7 @@ public virtual async Task> StartDevBoxAsync(WaitUntil wait /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual Operation StartDevBox(WaitUntil waitUntil, string projectName, string userId, string devBoxName, RequestContext context = null) + public virtual Operation StartDevBox(WaitUntil waitUntil, string projectName, string userId, string devBoxName, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(userId, nameof(userId)); @@ -1252,7 +1252,7 @@ public virtual Operation StartDevBox(WaitUntil waitUntil, string pro try { using HttpMessage message = CreateStartDevBoxRequest(projectName, userId, devBoxName, context); - return ProtocolOperationHelpers.ProcessMessage(_pipeline, message, ClientDiagnostics, "DevBoxesClient.StartDevBox", OperationFinalStateVia.Location, context, waitUntil); + return ProtocolOperationHelpers.ProcessMessage(_pipeline, message, ClientDiagnostics, "DevBoxesClient.StartDevBox", OperationFinalStateVia.OperationLocation, context, waitUntil); } catch (Exception e) { @@ -1273,7 +1273,7 @@ public virtual Operation StartDevBox(WaitUntil waitUntil, string pro /// /// 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 DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. /// Optional parameter to hibernate the dev box. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. @@ -1282,7 +1282,7 @@ public virtual Operation StartDevBox(WaitUntil waitUntil, string pro /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual async Task> StopDevBoxAsync(WaitUntil waitUntil, string projectName, string userId, string devBoxName, bool? hibernate = null, RequestContext context = null) + public virtual async Task> StopDevBoxAsync(WaitUntil waitUntil, string projectName, string userId, string devBoxName, bool? hibernate, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(userId, nameof(userId)); @@ -1293,7 +1293,7 @@ public virtual async Task> StopDevBoxAsync(WaitUntil waitU try { using HttpMessage message = CreateStopDevBoxRequest(projectName, userId, devBoxName, hibernate, context); - return await ProtocolOperationHelpers.ProcessMessageAsync(_pipeline, message, ClientDiagnostics, "DevBoxesClient.StopDevBox", OperationFinalStateVia.Location, context, waitUntil).ConfigureAwait(false); + return await ProtocolOperationHelpers.ProcessMessageAsync(_pipeline, message, ClientDiagnostics, "DevBoxesClient.StopDevBox", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); } catch (Exception e) { @@ -1314,7 +1314,7 @@ public virtual async Task> StopDevBoxAsync(WaitUntil waitU /// /// 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 DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. /// Optional parameter to hibernate the dev box. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. @@ -1323,7 +1323,7 @@ public virtual async Task> StopDevBoxAsync(WaitUntil waitU /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual Operation StopDevBox(WaitUntil waitUntil, string projectName, string userId, string devBoxName, bool? hibernate = null, RequestContext context = null) + public virtual Operation StopDevBox(WaitUntil waitUntil, string projectName, string userId, string devBoxName, bool? hibernate, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(userId, nameof(userId)); @@ -1334,7 +1334,7 @@ public virtual Operation StopDevBox(WaitUntil waitUntil, string proj try { using HttpMessage message = CreateStopDevBoxRequest(projectName, userId, devBoxName, hibernate, context); - return ProtocolOperationHelpers.ProcessMessage(_pipeline, message, ClientDiagnostics, "DevBoxesClient.StopDevBox", OperationFinalStateVia.Location, context, waitUntil); + return ProtocolOperationHelpers.ProcessMessage(_pipeline, message, ClientDiagnostics, "DevBoxesClient.StopDevBox", OperationFinalStateVia.OperationLocation, context, waitUntil); } catch (Exception e) { @@ -1355,7 +1355,7 @@ public virtual Operation StopDevBox(WaitUntil waitUntil, string proj /// /// 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 DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// , or is null. @@ -1363,7 +1363,7 @@ public virtual Operation StopDevBox(WaitUntil waitUntil, string proj /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual async Task> RestartDevBoxAsync(WaitUntil waitUntil, string projectName, string userId, string devBoxName, RequestContext context = null) + public virtual async Task> RestartDevBoxAsync(WaitUntil waitUntil, string projectName, string userId, string devBoxName, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(userId, nameof(userId)); @@ -1374,7 +1374,7 @@ public virtual async Task> RestartDevBoxAsync(WaitUntil wa try { using HttpMessage message = CreateRestartDevBoxRequest(projectName, userId, devBoxName, context); - return await ProtocolOperationHelpers.ProcessMessageAsync(_pipeline, message, ClientDiagnostics, "DevBoxesClient.RestartDevBox", OperationFinalStateVia.Location, context, waitUntil).ConfigureAwait(false); + return await ProtocolOperationHelpers.ProcessMessageAsync(_pipeline, message, ClientDiagnostics, "DevBoxesClient.RestartDevBox", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); } catch (Exception e) { @@ -1395,7 +1395,7 @@ public virtual async Task> RestartDevBoxAsync(WaitUntil wa /// /// 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 DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is "me". + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// , or is null. @@ -1403,7 +1403,7 @@ public virtual async Task> RestartDevBoxAsync(WaitUntil wa /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual Operation RestartDevBox(WaitUntil waitUntil, string projectName, string userId, string devBoxName, RequestContext context = null) + public virtual Operation RestartDevBox(WaitUntil waitUntil, string projectName, string userId, string devBoxName, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(userId, nameof(userId)); @@ -1414,7 +1414,7 @@ public virtual Operation RestartDevBox(WaitUntil waitUntil, string p try { using HttpMessage message = CreateRestartDevBoxRequest(projectName, userId, devBoxName, context); - return ProtocolOperationHelpers.ProcessMessage(_pipeline, message, ClientDiagnostics, "DevBoxesClient.RestartDevBox", OperationFinalStateVia.Location, context, waitUntil); + return ProtocolOperationHelpers.ProcessMessage(_pipeline, message, ClientDiagnostics, "DevBoxesClient.RestartDevBox", OperationFinalStateVia.OperationLocation, context, waitUntil); } catch (Exception e) { @@ -1724,7 +1724,7 @@ internal HttpMessage CreateGetRemoteConnectionRequest(string projectName, string return message; } - internal HttpMessage CreateGetActionsRequest(string projectName, string userId, string devBoxName, RequestContext context) + internal HttpMessage CreateGetDevBoxActionsRequest(string projectName, string userId, string devBoxName, RequestContext context) { var message = _pipeline.CreateMessage(context, ResponseClassifier200); var request = message.Request; @@ -1744,7 +1744,7 @@ internal HttpMessage CreateGetActionsRequest(string projectName, string userId, return message; } - internal HttpMessage CreateGetActionRequest(string projectName, string userId, string devBoxName, string actionName, RequestContext context) + internal HttpMessage CreateGetDevBoxActionRequest(string projectName, string userId, string devBoxName, string actionName, RequestContext context) { var message = _pipeline.CreateMessage(context, ResponseClassifier200); var request = message.Request; @@ -1787,7 +1787,7 @@ internal HttpMessage CreateSkipActionRequest(string projectName, string userId, return message; } - internal HttpMessage CreateDelayActionRequest(string projectName, string userId, string devBoxName, string actionName, DateTimeOffset until, RequestContext context) + internal HttpMessage CreateDelayActionRequest(string projectName, string userId, string devBoxName, string actionName, DateTimeOffset delayUntil, RequestContext context) { var message = _pipeline.CreateMessage(context, ResponseClassifier200); var request = message.Request; @@ -1803,14 +1803,14 @@ internal HttpMessage CreateDelayActionRequest(string projectName, string userId, uri.AppendPath("/actions/", false); uri.AppendPath(actionName, true); uri.AppendPath(":delay", false); - uri.AppendQuery("until", until, "O", true); + uri.AppendQuery("until", delayUntil, "O", true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); return message; } - internal HttpMessage CreateDelayAllActionsRequest(string projectName, string userId, string devBoxName, DateTimeOffset until, RequestContext context) + internal HttpMessage CreateDelayAllActionsRequest(string projectName, string userId, string devBoxName, DateTimeOffset delayUntil, RequestContext context) { var message = _pipeline.CreateMessage(context, ResponseClassifier200); var request = message.Request; @@ -1824,7 +1824,7 @@ internal HttpMessage CreateDelayAllActionsRequest(string projectName, string use uri.AppendPath("/devboxes/", false); uri.AppendPath(devBoxName, true); uri.AppendPath("/actions:delay", false); - uri.AppendQuery("until", until, "O", true); + uri.AppendQuery("until", delayUntil, "O", true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -1896,7 +1896,7 @@ internal HttpMessage CreateGetDevBoxesNextPageRequest(string nextLink, string pr return message; } - internal HttpMessage CreateGetActionsNextPageRequest(string nextLink, string projectName, string userId, string devBoxName, RequestContext context) + internal HttpMessage CreateGetDevBoxActionsNextPageRequest(string nextLink, string projectName, string userId, string devBoxName, RequestContext context) { var message = _pipeline.CreateMessage(context, ResponseClassifier200); var request = message.Request; @@ -1909,7 +1909,7 @@ internal HttpMessage CreateGetActionsNextPageRequest(string nextLink, string pro return message; } - internal HttpMessage CreateDelayAllActionsNextPageRequest(string nextLink, string projectName, string userId, string devBoxName, DateTimeOffset until, RequestContext context) + internal HttpMessage CreateDelayAllActionsNextPageRequest(string nextLink, string projectName, string userId, string devBoxName, DateTimeOffset delayUntil, RequestContext context) { var message = _pipeline.CreateMessage(context, ResponseClassifier200); var request = message.Request; diff --git a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DevCenterClient.cs b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DevCenterClient.cs index dad220899561..14657b41ddc0 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DevCenterClient.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DevCenterClient.cs @@ -39,7 +39,7 @@ protected DevCenterClient() /// The DevCenter-specific URI to operate on. /// A credential used to authenticate to an Azure Service. /// or is null. - public DevCenterClient(Uri endpoint, TokenCredential credential) : this(endpoint, credential, new DevCenterClientOptions()) + public DevCenterClient(Uri endpoint, TokenCredential credential) : this(endpoint, credential, new AzureDeveloperDevCenterClientOptions()) { } @@ -48,11 +48,11 @@ protected DevCenterClient() /// A credential used to authenticate to an Azure Service. /// The options for configuring the client. /// or is null. - public DevCenterClient(Uri endpoint, TokenCredential credential, DevCenterClientOptions options) + public DevCenterClient(Uri endpoint, TokenCredential credential, AzureDeveloperDevCenterClientOptions options) { Argument.AssertNotNull(endpoint, nameof(endpoint)); Argument.AssertNotNull(credential, nameof(credential)); - options ??= new DevCenterClientOptions(); + options ??= new AzureDeveloperDevCenterClientOptions(); ClientDiagnostics = new ClientDiagnostics(options, true); _tokenCredential = credential; @@ -78,7 +78,7 @@ public DevCenterClient(Uri endpoint, TokenCredential credential, DevCenterClient /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task GetProjectAsync(string projectName, RequestContext context = null) + public virtual async Task GetProjectAsync(string projectName, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); @@ -113,7 +113,7 @@ public virtual async Task GetProjectAsync(string projectName, RequestC /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response GetProject(string projectName, RequestContext context = null) + public virtual Response GetProject(string projectName, RequestContext context) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); @@ -147,7 +147,7 @@ public virtual Response GetProject(string projectName, RequestContext context = /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual AsyncPageable GetProjectsAsync(string filter = null, int? maxCount = null, RequestContext context = null) + public virtual AsyncPageable GetProjectsAsync(string filter, int? maxCount, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetProjectsRequest(filter, maxCount, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetProjectsNextPageRequest(nextLink, filter, maxCount, context); @@ -170,7 +170,7 @@ public virtual AsyncPageable GetProjectsAsync(string filter = null, /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. /// - public virtual Pageable GetProjects(string filter = null, int? maxCount = null, RequestContext context = null) + public virtual Pageable GetProjects(string filter, int? maxCount, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetProjectsRequest(filter, maxCount, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetProjectsNextPageRequest(nextLink, filter, maxCount, context); diff --git a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DeveloperDevCenterClientBuilderExtensions.cs b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DeveloperDevCenterClientBuilderExtensions.cs index 5341ddd4ecdd..865c9f1049d4 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DeveloperDevCenterClientBuilderExtensions.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DeveloperDevCenterClientBuilderExtensions.cs @@ -17,53 +17,53 @@ public static partial class DeveloperDevCenterClientBuilderExtensions /// Registers a instance. /// The builder to register with. /// The DevCenter-specific URI to operate on. - public static IAzureClientBuilder AddDevCenterClient(this TBuilder builder, Uri endpoint) + public static IAzureClientBuilder AddDevCenterClient(this TBuilder builder, Uri endpoint) where TBuilder : IAzureClientFactoryBuilderWithCredential { - return builder.RegisterClientFactory((options, cred) => new DevCenterClient(endpoint, cred, options)); + return builder.RegisterClientFactory((options, cred) => new DevCenterClient(endpoint, cred, options)); } /// Registers a instance. /// The builder to register with. /// The DevCenter-specific URI to operate on. - public static IAzureClientBuilder AddDevBoxesClient(this TBuilder builder, Uri endpoint) + public static IAzureClientBuilder AddDevBoxesClient(this TBuilder builder, Uri endpoint) where TBuilder : IAzureClientFactoryBuilderWithCredential { - return builder.RegisterClientFactory((options, cred) => new DevBoxesClient(endpoint, cred, options)); + return builder.RegisterClientFactory((options, cred) => new DevBoxesClient(endpoint, cred, options)); } /// Registers a instance. /// The builder to register with. /// The DevCenter-specific URI to operate on. - public static IAzureClientBuilder AddDeploymentEnvironmentsClient(this TBuilder builder, Uri endpoint) + public static IAzureClientBuilder AddDeploymentEnvironmentsClient(this TBuilder builder, Uri endpoint) where TBuilder : IAzureClientFactoryBuilderWithCredential { - return builder.RegisterClientFactory((options, cred) => new DeploymentEnvironmentsClient(endpoint, cred, options)); + return builder.RegisterClientFactory((options, cred) => new DeploymentEnvironmentsClient(endpoint, cred, options)); } /// Registers a instance. /// The builder to register with. /// The configuration values. - public static IAzureClientBuilder AddDevCenterClient(this TBuilder builder, TConfiguration configuration) + public static IAzureClientBuilder AddDevCenterClient(this TBuilder builder, TConfiguration configuration) where TBuilder : IAzureClientFactoryBuilderWithConfiguration { - return builder.RegisterClientFactory(configuration); + return builder.RegisterClientFactory(configuration); } /// Registers a instance. /// The builder to register with. /// The configuration values. - public static IAzureClientBuilder AddDevBoxesClient(this TBuilder builder, TConfiguration configuration) + public static IAzureClientBuilder AddDevBoxesClient(this TBuilder builder, TConfiguration configuration) where TBuilder : IAzureClientFactoryBuilderWithConfiguration { - return builder.RegisterClientFactory(configuration); + return builder.RegisterClientFactory(configuration); } /// Registers a instance. /// The builder to register with. /// The configuration values. - public static IAzureClientBuilder AddDeploymentEnvironmentsClient(this TBuilder builder, TConfiguration configuration) + public static IAzureClientBuilder AddDeploymentEnvironmentsClient(this TBuilder builder, TConfiguration configuration) where TBuilder : IAzureClientFactoryBuilderWithConfiguration { - return builder.RegisterClientFactory(configuration); + return builder.RegisterClientFactory(configuration); } } } diff --git a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/Docs/DeploymentEnvironmentsClient.xml b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/Docs/DeploymentEnvironmentsClient.xml index 1633e89acb28..53e2b5c99dfa 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/Docs/DeploymentEnvironmentsClient.xml +++ b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/Docs/DeploymentEnvironmentsClient.xml @@ -5,11 +5,11 @@ This sample shows how to call GetEnvironmentAsync and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -Response response = await client.GetEnvironmentAsync("", "me", ""); +Response response = await client.GetEnvironmentAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("environmentType").ToString()); @@ -18,13 +18,14 @@ Console.WriteLine(result.GetProperty("environmentDefinitionName").ToString()); ]]> This sample shows how to call GetEnvironmentAsync with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -Response response = await client.GetEnvironmentAsync("", "me", ""); +Response response = await client.GetEnvironmentAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; +Console.WriteLine(result.GetProperty("parameters").ToString()); Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("environmentType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -35,18 +36,18 @@ Console.WriteLine(result.GetProperty("environmentDefinitionName").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); -Console.WriteLine(result.GetProperty("parameters").ToString()); +Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); ]]> This sample shows how to call GetEnvironment and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -Response response = client.GetEnvironment("", "me", ""); +Response response = client.GetEnvironment("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("environmentType").ToString()); @@ -55,13 +56,14 @@ Console.WriteLine(result.GetProperty("environmentDefinitionName").ToString()); ]]> This sample shows how to call GetEnvironment with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -Response response = client.GetEnvironment("", "me", ""); +Response response = client.GetEnvironment("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; +Console.WriteLine(result.GetProperty("parameters").ToString()); Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("environmentType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -72,29 +74,29 @@ Console.WriteLine(result.GetProperty("environmentDefinitionName").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); -Console.WriteLine(result.GetProperty("parameters").ToString()); +Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); ]]> This sample shows how to call GetCatalogAsync and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -Response response = await client.GetCatalogAsync("", ""); +Response response = await client.GetCatalogAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); ]]> This sample shows how to call GetCatalogAsync with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -Response response = await client.GetCatalogAsync("", ""); +Response response = await client.GetCatalogAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -104,22 +106,22 @@ Console.WriteLine(result.GetProperty("name").ToString()); This sample shows how to call GetCatalog and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -Response response = client.GetCatalog("", ""); +Response response = client.GetCatalog("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); ]]> This sample shows how to call GetCatalog with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -Response response = client.GetCatalog("", ""); +Response response = client.GetCatalog("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -129,11 +131,11 @@ Console.WriteLine(result.GetProperty("name").ToString()); This sample shows how to call GetEnvironmentDefinitionAsync and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -Response response = await client.GetEnvironmentDefinitionAsync("", "", ""); +Response response = await client.GetEnvironmentDefinitionAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -142,11 +144,11 @@ Console.WriteLine(result.GetProperty("catalogName").ToString()); ]]> This sample shows how to call GetEnvironmentDefinitionAsync with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -Response response = await client.GetEnvironmentDefinitionAsync("", "", ""); +Response response = await client.GetEnvironmentDefinitionAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -169,11 +171,11 @@ Console.WriteLine(result.GetProperty("templatePath").ToString()); This sample shows how to call GetEnvironmentDefinition and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -Response response = client.GetEnvironmentDefinition("", "", ""); +Response response = client.GetEnvironmentDefinition("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -182,11 +184,11 @@ Console.WriteLine(result.GetProperty("catalogName").ToString()); ]]> This sample shows how to call GetEnvironmentDefinition with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -Response response = client.GetEnvironmentDefinition("", "", ""); +Response response = client.GetEnvironmentDefinition("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -209,11 +211,11 @@ Console.WriteLine(result.GetProperty("templatePath").ToString()); This sample shows how to call GetAllEnvironmentsAsync and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -await foreach (BinaryData item in client.GetAllEnvironmentsAsync("")) +await foreach (BinaryData item in client.GetAllEnvironmentsAsync("", null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("environmentType").ToString()); @@ -223,13 +225,14 @@ await foreach (BinaryData item in client.GetAllEnvironmentsAsync("" ]]> This sample shows how to call GetAllEnvironmentsAsync with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -await foreach (BinaryData item in client.GetAllEnvironmentsAsync("", maxCount: 1234)) +await foreach (BinaryData item in client.GetAllEnvironmentsAsync("", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("parameters").ToString()); Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("environmentType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -240,7 +243,7 @@ await foreach (BinaryData item in client.GetAllEnvironmentsAsync("" Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("parameters").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); } ]]> @@ -248,11 +251,11 @@ await foreach (BinaryData item in client.GetAllEnvironmentsAsync("" This sample shows how to call GetAllEnvironments and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -foreach (BinaryData item in client.GetAllEnvironments("")) +foreach (BinaryData item in client.GetAllEnvironments("", null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("environmentType").ToString()); @@ -262,13 +265,14 @@ foreach (BinaryData item in client.GetAllEnvironments("")) ]]> This sample shows how to call GetAllEnvironments with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -foreach (BinaryData item in client.GetAllEnvironments("", maxCount: 1234)) +foreach (BinaryData item in client.GetAllEnvironments("", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("parameters").ToString()); Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("environmentType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -279,7 +283,7 @@ foreach (BinaryData item in client.GetAllEnvironments("", maxCount: Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("parameters").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); } ]]> @@ -287,11 +291,11 @@ foreach (BinaryData item in client.GetAllEnvironments("", maxCount: This sample shows how to call GetEnvironmentsAsync and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -await foreach (BinaryData item in client.GetEnvironmentsAsync("", "me")) +await foreach (BinaryData item in client.GetEnvironmentsAsync("", "", null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("environmentType").ToString()); @@ -301,13 +305,14 @@ await foreach (BinaryData item in client.GetEnvironmentsAsync("", " ]]> This sample shows how to call GetEnvironmentsAsync with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -await foreach (BinaryData item in client.GetEnvironmentsAsync("", "me", maxCount: 1234)) +await foreach (BinaryData item in client.GetEnvironmentsAsync("", "", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("parameters").ToString()); Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("environmentType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -318,7 +323,7 @@ await foreach (BinaryData item in client.GetEnvironmentsAsync("", " Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("parameters").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); } ]]> @@ -326,11 +331,11 @@ await foreach (BinaryData item in client.GetEnvironmentsAsync("", " This sample shows how to call GetEnvironments and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -foreach (BinaryData item in client.GetEnvironments("", "me")) +foreach (BinaryData item in client.GetEnvironments("", "", null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("environmentType").ToString()); @@ -340,13 +345,14 @@ foreach (BinaryData item in client.GetEnvironments("", "me")) ]]> This sample shows how to call GetEnvironments with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -foreach (BinaryData item in client.GetEnvironments("", "me", maxCount: 1234)) +foreach (BinaryData item in client.GetEnvironments("", "", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("parameters").ToString()); Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("environmentType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -357,7 +363,7 @@ foreach (BinaryData item in client.GetEnvironments("", "me", maxCou Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("parameters").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); } ]]> @@ -365,11 +371,11 @@ foreach (BinaryData item in client.GetEnvironments("", "me", maxCou This sample shows how to call GetCatalogsAsync and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -await foreach (BinaryData item in client.GetCatalogsAsync("")) +await foreach (BinaryData item in client.GetCatalogsAsync("", null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -377,11 +383,11 @@ await foreach (BinaryData item in client.GetCatalogsAsync("")) ]]> This sample shows how to call GetCatalogsAsync with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -await foreach (BinaryData item in client.GetCatalogsAsync("", maxCount: 1234)) +await foreach (BinaryData item in client.GetCatalogsAsync("", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -392,11 +398,11 @@ await foreach (BinaryData item in client.GetCatalogsAsync("", maxCo This sample shows how to call GetCatalogs and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -foreach (BinaryData item in client.GetCatalogs("")) +foreach (BinaryData item in client.GetCatalogs("", null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -404,11 +410,11 @@ foreach (BinaryData item in client.GetCatalogs("")) ]]> This sample shows how to call GetCatalogs with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -foreach (BinaryData item in client.GetCatalogs("", maxCount: 1234)) +foreach (BinaryData item in client.GetCatalogs("", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -419,11 +425,11 @@ foreach (BinaryData item in client.GetCatalogs("", maxCount: 1234)) This sample shows how to call GetEnvironmentDefinitionsAsync and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -await foreach (BinaryData item in client.GetEnvironmentDefinitionsAsync("")) +await foreach (BinaryData item in client.GetEnvironmentDefinitionsAsync("", null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -433,11 +439,11 @@ await foreach (BinaryData item in client.GetEnvironmentDefinitionsAsync(" This sample shows how to call GetEnvironmentDefinitionsAsync with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -await foreach (BinaryData item in client.GetEnvironmentDefinitionsAsync("", maxCount: 1234)) +await foreach (BinaryData item in client.GetEnvironmentDefinitionsAsync("", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -461,11 +467,11 @@ await foreach (BinaryData item in client.GetEnvironmentDefinitionsAsync(" This sample shows how to call GetEnvironmentDefinitions and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -foreach (BinaryData item in client.GetEnvironmentDefinitions("")) +foreach (BinaryData item in client.GetEnvironmentDefinitions("", null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -475,11 +481,11 @@ foreach (BinaryData item in client.GetEnvironmentDefinitions("")) ]]> This sample shows how to call GetEnvironmentDefinitions with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -foreach (BinaryData item in client.GetEnvironmentDefinitions("", maxCount: 1234)) +foreach (BinaryData item in client.GetEnvironmentDefinitions("", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -503,11 +509,11 @@ foreach (BinaryData item in client.GetEnvironmentDefinitions("", ma This sample shows how to call GetEnvironmentDefinitionsByCatalogAsync and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -await foreach (BinaryData item in client.GetEnvironmentDefinitionsByCatalogAsync("", "")) +await foreach (BinaryData item in client.GetEnvironmentDefinitionsByCatalogAsync("", "", null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -517,11 +523,11 @@ await foreach (BinaryData item in client.GetEnvironmentDefinitionsByCatalogAsync ]]> This sample shows how to call GetEnvironmentDefinitionsByCatalogAsync with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -await foreach (BinaryData item in client.GetEnvironmentDefinitionsByCatalogAsync("", "", maxCount: 1234)) +await foreach (BinaryData item in client.GetEnvironmentDefinitionsByCatalogAsync("", "", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -545,11 +551,11 @@ await foreach (BinaryData item in client.GetEnvironmentDefinitionsByCatalogAsync This sample shows how to call GetEnvironmentDefinitionsByCatalog and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -foreach (BinaryData item in client.GetEnvironmentDefinitionsByCatalog("", "")) +foreach (BinaryData item in client.GetEnvironmentDefinitionsByCatalog("", "", null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -559,11 +565,11 @@ foreach (BinaryData item in client.GetEnvironmentDefinitionsByCatalog(" This sample shows how to call GetEnvironmentDefinitionsByCatalog with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -foreach (BinaryData item in client.GetEnvironmentDefinitionsByCatalog("", "", maxCount: 1234)) +foreach (BinaryData item in client.GetEnvironmentDefinitionsByCatalog("", "", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -587,11 +593,11 @@ foreach (BinaryData item in client.GetEnvironmentDefinitionsByCatalog(" This sample shows how to call GetEnvironmentTypesAsync and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -await foreach (BinaryData item in client.GetEnvironmentTypesAsync("")) +await foreach (BinaryData item in client.GetEnvironmentTypesAsync("", null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -601,11 +607,11 @@ await foreach (BinaryData item in client.GetEnvironmentTypesAsync(" ]]> This sample shows how to call GetEnvironmentTypesAsync with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -await foreach (BinaryData item in client.GetEnvironmentTypesAsync("", maxCount: 1234)) +await foreach (BinaryData item in client.GetEnvironmentTypesAsync("", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -618,11 +624,11 @@ await foreach (BinaryData item in client.GetEnvironmentTypesAsync(" This sample shows how to call GetEnvironmentTypes and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -foreach (BinaryData item in client.GetEnvironmentTypes("")) +foreach (BinaryData item in client.GetEnvironmentTypes("", null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -632,11 +638,11 @@ foreach (BinaryData item in client.GetEnvironmentTypes("")) ]]> This sample shows how to call GetEnvironmentTypes with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -foreach (BinaryData item in client.GetEnvironmentTypes("", maxCount: 1234)) +foreach (BinaryData item in client.GetEnvironmentTypes("", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -649,7 +655,7 @@ foreach (BinaryData item in client.GetEnvironmentTypes("", maxCount This sample shows how to call CreateOrUpdateEnvironmentAsync and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); @@ -659,7 +665,7 @@ using RequestContent content = RequestContent.Create(new catalogName = "", environmentDefinitionName = "", }); -Operation operation = await client.CreateOrUpdateEnvironmentAsync(WaitUntil.Completed, "", "me", "", content); +Operation operation = await client.CreateOrUpdateEnvironmentAsync(WaitUntil.Completed, "", "", "", content); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -669,21 +675,22 @@ Console.WriteLine(result.GetProperty("environmentDefinitionName").ToString()); ]]> This sample shows how to call CreateOrUpdateEnvironmentAsync with all parameters and request content and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { + parameters = new object(), environmentType = "", catalogName = "", environmentDefinitionName = "", - parameters = new object(), }); -Operation operation = await client.CreateOrUpdateEnvironmentAsync(WaitUntil.Completed, "", "me", "", content); +Operation operation = await client.CreateOrUpdateEnvironmentAsync(WaitUntil.Completed, "", "", "", content); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; +Console.WriteLine(result.GetProperty("parameters").ToString()); Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("environmentType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -694,14 +701,14 @@ Console.WriteLine(result.GetProperty("environmentDefinitionName").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); -Console.WriteLine(result.GetProperty("parameters").ToString()); +Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); ]]> This sample shows how to call CreateOrUpdateEnvironment and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); @@ -711,7 +718,7 @@ using RequestContent content = RequestContent.Create(new catalogName = "", environmentDefinitionName = "", }); -Operation operation = client.CreateOrUpdateEnvironment(WaitUntil.Completed, "", "me", "", content); +Operation operation = client.CreateOrUpdateEnvironment(WaitUntil.Completed, "", "", "", content); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -721,21 +728,22 @@ Console.WriteLine(result.GetProperty("environmentDefinitionName").ToString()); ]]> This sample shows how to call CreateOrUpdateEnvironment with all parameters and request content and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { + parameters = new object(), environmentType = "", catalogName = "", environmentDefinitionName = "", - parameters = new object(), }); -Operation operation = client.CreateOrUpdateEnvironment(WaitUntil.Completed, "", "me", "", content); +Operation operation = client.CreateOrUpdateEnvironment(WaitUntil.Completed, "", "", "", content); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; +Console.WriteLine(result.GetProperty("parameters").ToString()); Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("environmentType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -746,45 +754,45 @@ Console.WriteLine(result.GetProperty("environmentDefinitionName").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); -Console.WriteLine(result.GetProperty("parameters").ToString()); +Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); ]]> This sample shows how to call DeleteEnvironmentAsync. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -Operation operation = await client.DeleteEnvironmentAsync(WaitUntil.Completed, "", "me", ""); +Operation operation = await client.DeleteEnvironmentAsync(WaitUntil.Completed, "", "", ""); ]]> This sample shows how to call DeleteEnvironmentAsync with all parameters. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -Operation operation = await client.DeleteEnvironmentAsync(WaitUntil.Completed, "", "me", ""); +Operation operation = await client.DeleteEnvironmentAsync(WaitUntil.Completed, "", "", ""); ]]> This sample shows how to call DeleteEnvironment. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -Operation operation = client.DeleteEnvironment(WaitUntil.Completed, "", "me", ""); +Operation operation = client.DeleteEnvironment(WaitUntil.Completed, "", "", ""); ]]> This sample shows how to call DeleteEnvironment with all parameters. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -Operation operation = client.DeleteEnvironment(WaitUntil.Completed, "", "me", ""); +Operation operation = client.DeleteEnvironment(WaitUntil.Completed, "", "", ""); ]]> diff --git a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/Docs/DevBoxesClient.xml b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/Docs/DevBoxesClient.xml index c8409a1a6875..f371dd6e2641 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/Docs/DevBoxesClient.xml +++ b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/Docs/DevBoxesClient.xml @@ -5,11 +5,11 @@ This sample shows how to call GetPoolAsync and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Response response = await client.GetPoolAsync("", ""); +Response response = await client.GetPoolAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -18,11 +18,11 @@ Console.WriteLine(result.GetProperty("healthStatus").ToString()); ]]> This sample shows how to call GetPoolAsync with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Response response = await client.GetPoolAsync("", ""); +Response response = await client.GetPoolAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -48,11 +48,11 @@ Console.WriteLine(result.GetProperty("healthStatus").ToString()); This sample shows how to call GetPool and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Response response = client.GetPool("", ""); +Response response = client.GetPool("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -61,11 +61,11 @@ Console.WriteLine(result.GetProperty("healthStatus").ToString()); ]]> This sample shows how to call GetPool with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Response response = client.GetPool("", ""); +Response response = client.GetPool("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -91,11 +91,11 @@ Console.WriteLine(result.GetProperty("healthStatus").ToString()); This sample shows how to call GetScheduleAsync and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Response response = await client.GetScheduleAsync("", "", ""); +Response response = await client.GetScheduleAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -106,11 +106,11 @@ Console.WriteLine(result.GetProperty("timeZone").ToString()); ]]> This sample shows how to call GetScheduleAsync with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Response response = await client.GetScheduleAsync("", "", ""); +Response response = await client.GetScheduleAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -124,11 +124,11 @@ Console.WriteLine(result.GetProperty("timeZone").ToString()); This sample shows how to call GetSchedule and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Response response = client.GetSchedule("", "", ""); +Response response = client.GetSchedule("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -139,11 +139,11 @@ Console.WriteLine(result.GetProperty("timeZone").ToString()); ]]> This sample shows how to call GetSchedule with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Response response = client.GetSchedule("", "", ""); +Response response = client.GetSchedule("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -157,22 +157,23 @@ Console.WriteLine(result.GetProperty("timeZone").ToString()); This sample shows how to call GetDevBoxAsync and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Response response = await client.GetDevBoxAsync("", "me", ""); +Response response = await client.GetDevBoxAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; +Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("poolName").ToString()); ]]> This sample shows how to call GetDevBoxAsync with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Response response = await client.GetDevBoxAsync("", "me", ""); +Response response = await client.GetDevBoxAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -186,6 +187,7 @@ Console.WriteLine(result.GetProperty("uniqueId").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); +Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("location").ToString()); Console.WriteLine(result.GetProperty("osType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -206,22 +208,23 @@ Console.WriteLine(result.GetProperty("localAdministrator").ToString()); This sample shows how to call GetDevBox and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Response response = client.GetDevBox("", "me", ""); +Response response = client.GetDevBox("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; +Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("poolName").ToString()); ]]> This sample shows how to call GetDevBox with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Response response = client.GetDevBox("", "me", ""); +Response response = client.GetDevBox("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -235,6 +238,7 @@ Console.WriteLine(result.GetProperty("uniqueId").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); +Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("location").ToString()); Console.WriteLine(result.GetProperty("osType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -255,22 +259,22 @@ Console.WriteLine(result.GetProperty("localAdministrator").ToString()); This sample shows how to call GetRemoteConnectionAsync and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Response response = await client.GetRemoteConnectionAsync("", "me", ""); +Response response = await client.GetRemoteConnectionAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); ]]> This sample shows how to call GetRemoteConnectionAsync with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Response response = await client.GetRemoteConnectionAsync("", "me", ""); +Response response = await client.GetRemoteConnectionAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("webUrl").ToString()); @@ -281,50 +285,50 @@ Console.WriteLine(result.GetProperty("rdpConnectionUrl").ToString()); This sample shows how to call GetRemoteConnection and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Response response = client.GetRemoteConnection("", "me", ""); +Response response = client.GetRemoteConnection("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); ]]> This sample shows how to call GetRemoteConnection with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Response response = client.GetRemoteConnection("", "me", ""); +Response response = client.GetRemoteConnection("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("webUrl").ToString()); Console.WriteLine(result.GetProperty("rdpConnectionUrl").ToString()); ]]> - + -This sample shows how to call GetActionAsync and parse the result. +This sample shows how to call GetDevBoxActionAsync and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Response response = await client.GetActionAsync("", "me", "", ""); +Response response = await client.GetDevBoxActionAsync("", "", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("actionType").ToString()); Console.WriteLine(result.GetProperty("sourceId").ToString()); ]]> -This sample shows how to call GetActionAsync with all parameters and parse the result. +This sample shows how to call GetDevBoxActionAsync with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Response response = await client.GetActionAsync("", "me", "", ""); +Response response = await client.GetDevBoxActionAsync("", "", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -334,28 +338,28 @@ Console.WriteLine(result.GetProperty("suspendedUntil").ToString()); Console.WriteLine(result.GetProperty("next").GetProperty("scheduledTime").ToString()); ]]> - + -This sample shows how to call GetAction and parse the result. +This sample shows how to call GetDevBoxAction and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Response response = client.GetAction("", "me", "", ""); +Response response = client.GetDevBoxAction("", "", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("actionType").ToString()); Console.WriteLine(result.GetProperty("sourceId").ToString()); ]]> -This sample shows how to call GetAction with all parameters and parse the result. +This sample shows how to call GetDevBoxAction with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Response response = client.GetAction("", "me", "", ""); +Response response = client.GetDevBoxAction("", "", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -369,21 +373,21 @@ Console.WriteLine(result.GetProperty("next").GetProperty("scheduledTime").ToStri This sample shows how to call SkipActionAsync. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Response response = await client.SkipActionAsync("", "me", "", ""); +Response response = await client.SkipActionAsync("", "", "", ""); Console.WriteLine(response.Status); ]]> This sample shows how to call SkipActionAsync with all parameters. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Response response = await client.SkipActionAsync("", "me", "", ""); +Response response = await client.SkipActionAsync("", "", "", ""); Console.WriteLine(response.Status); ]]> @@ -392,21 +396,21 @@ Console.WriteLine(response.Status); This sample shows how to call SkipAction. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Response response = client.SkipAction("", "me", "", ""); +Response response = client.SkipAction("", "", "", ""); Console.WriteLine(response.Status); ]]> This sample shows how to call SkipAction with all parameters. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Response response = client.SkipAction("", "me", "", ""); +Response response = client.SkipAction("", "", "", ""); Console.WriteLine(response.Status); ]]> @@ -415,11 +419,11 @@ Console.WriteLine(response.Status); This sample shows how to call DelayActionAsync and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Response response = await client.DelayActionAsync("", "me", "", "", DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z")); +Response response = await client.DelayActionAsync("", "", "", "", DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -428,11 +432,11 @@ Console.WriteLine(result.GetProperty("sourceId").ToString()); ]]> This sample shows how to call DelayActionAsync with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Response response = await client.DelayActionAsync("", "me", "", "", DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z")); +Response response = await client.DelayActionAsync("", "", "", "", DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -446,11 +450,11 @@ Console.WriteLine(result.GetProperty("next").GetProperty("scheduledTime").ToStri This sample shows how to call DelayAction and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Response response = client.DelayAction("", "me", "", "", DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z")); +Response response = client.DelayAction("", "", "", "", DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -459,11 +463,11 @@ Console.WriteLine(result.GetProperty("sourceId").ToString()); ]]> This sample shows how to call DelayAction with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Response response = client.DelayAction("", "me", "", "", DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z")); +Response response = client.DelayAction("", "", "", "", DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -477,11 +481,11 @@ Console.WriteLine(result.GetProperty("next").GetProperty("scheduledTime").ToStri This sample shows how to call GetPoolsAsync and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -await foreach (BinaryData item in client.GetPoolsAsync("")) +await foreach (BinaryData item in client.GetPoolsAsync("", null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -491,11 +495,11 @@ await foreach (BinaryData item in client.GetPoolsAsync("")) ]]> This sample shows how to call GetPoolsAsync with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -await foreach (BinaryData item in client.GetPoolsAsync("", filter: "", maxCount: 1234)) +await foreach (BinaryData item in client.GetPoolsAsync("", "", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -522,11 +526,11 @@ await foreach (BinaryData item in client.GetPoolsAsync("", filter: This sample shows how to call GetPools and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -foreach (BinaryData item in client.GetPools("")) +foreach (BinaryData item in client.GetPools("", null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -536,11 +540,11 @@ foreach (BinaryData item in client.GetPools("")) ]]> This sample shows how to call GetPools with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -foreach (BinaryData item in client.GetPools("", filter: "", maxCount: 1234)) +foreach (BinaryData item in client.GetPools("", "", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -567,11 +571,11 @@ foreach (BinaryData item in client.GetPools("", filter: "", This sample shows how to call GetSchedulesAsync and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -await foreach (BinaryData item in client.GetSchedulesAsync("", "")) +await foreach (BinaryData item in client.GetSchedulesAsync("", "", null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -583,11 +587,11 @@ await foreach (BinaryData item in client.GetSchedulesAsync("", " This sample shows how to call GetSchedulesAsync with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -await foreach (BinaryData item in client.GetSchedulesAsync("", "", filter: "", maxCount: 1234)) +await foreach (BinaryData item in client.GetSchedulesAsync("", "", "", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -602,11 +606,11 @@ await foreach (BinaryData item in client.GetSchedulesAsync("", " This sample shows how to call GetSchedules and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -foreach (BinaryData item in client.GetSchedules("", "")) +foreach (BinaryData item in client.GetSchedules("", "", null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -618,11 +622,11 @@ foreach (BinaryData item in client.GetSchedules("", "")) ]]> This sample shows how to call GetSchedules with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -foreach (BinaryData item in client.GetSchedules("", "", filter: "", maxCount: 1234)) +foreach (BinaryData item in client.GetSchedules("", "", "", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -637,23 +641,24 @@ foreach (BinaryData item in client.GetSchedules("", "", f This sample shows how to call GetAllDevBoxesAsync and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -await foreach (BinaryData item in client.GetAllDevBoxesAsync()) +await foreach (BinaryData item in client.GetAllDevBoxesAsync(null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("poolName").ToString()); } ]]> This sample shows how to call GetAllDevBoxesAsync with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -await foreach (BinaryData item in client.GetAllDevBoxesAsync(filter: "", maxCount: 1234)) +await foreach (BinaryData item in client.GetAllDevBoxesAsync("", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -667,6 +672,7 @@ await foreach (BinaryData item in client.GetAllDevBoxesAsync(filter: "", Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("location").ToString()); Console.WriteLine(result.GetProperty("osType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -688,23 +694,24 @@ await foreach (BinaryData item in client.GetAllDevBoxesAsync(filter: "", This sample shows how to call GetAllDevBoxes and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -foreach (BinaryData item in client.GetAllDevBoxes()) +foreach (BinaryData item in client.GetAllDevBoxes(null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("poolName").ToString()); } ]]> This sample shows how to call GetAllDevBoxes with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -foreach (BinaryData item in client.GetAllDevBoxes(filter: "", maxCount: 1234)) +foreach (BinaryData item in client.GetAllDevBoxes("", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -718,6 +725,7 @@ foreach (BinaryData item in client.GetAllDevBoxes(filter: "", maxCount: Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("location").ToString()); Console.WriteLine(result.GetProperty("osType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -739,23 +747,24 @@ foreach (BinaryData item in client.GetAllDevBoxes(filter: "", maxCount: This sample shows how to call GetAllDevBoxesByUserAsync and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -await foreach (BinaryData item in client.GetAllDevBoxesByUserAsync("me")) +await foreach (BinaryData item in client.GetAllDevBoxesByUserAsync("", null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("poolName").ToString()); } ]]> This sample shows how to call GetAllDevBoxesByUserAsync with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -await foreach (BinaryData item in client.GetAllDevBoxesByUserAsync("me", filter: "", maxCount: 1234)) +await foreach (BinaryData item in client.GetAllDevBoxesByUserAsync("", "", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -769,6 +778,7 @@ await foreach (BinaryData item in client.GetAllDevBoxesByUserAsync("me", filter: Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("location").ToString()); Console.WriteLine(result.GetProperty("osType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -790,23 +800,24 @@ await foreach (BinaryData item in client.GetAllDevBoxesByUserAsync("me", filter: This sample shows how to call GetAllDevBoxesByUser and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -foreach (BinaryData item in client.GetAllDevBoxesByUser("me")) +foreach (BinaryData item in client.GetAllDevBoxesByUser("", null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("poolName").ToString()); } ]]> This sample shows how to call GetAllDevBoxesByUser with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -foreach (BinaryData item in client.GetAllDevBoxesByUser("me", filter: "", maxCount: 1234)) +foreach (BinaryData item in client.GetAllDevBoxesByUser("", "", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -820,6 +831,7 @@ foreach (BinaryData item in client.GetAllDevBoxesByUser("me", filter: "" Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("location").ToString()); Console.WriteLine(result.GetProperty("osType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -841,23 +853,24 @@ foreach (BinaryData item in client.GetAllDevBoxesByUser("me", filter: "" This sample shows how to call GetDevBoxesAsync and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -await foreach (BinaryData item in client.GetDevBoxesAsync("", "me")) +await foreach (BinaryData item in client.GetDevBoxesAsync("", "", null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("poolName").ToString()); } ]]> This sample shows how to call GetDevBoxesAsync with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -await foreach (BinaryData item in client.GetDevBoxesAsync("", "me", filter: "", maxCount: 1234)) +await foreach (BinaryData item in client.GetDevBoxesAsync("", "", "", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -871,6 +884,7 @@ await foreach (BinaryData item in client.GetDevBoxesAsync("", "me", Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("location").ToString()); Console.WriteLine(result.GetProperty("osType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -892,23 +906,24 @@ await foreach (BinaryData item in client.GetDevBoxesAsync("", "me", This sample shows how to call GetDevBoxes and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -foreach (BinaryData item in client.GetDevBoxes("", "me")) +foreach (BinaryData item in client.GetDevBoxes("", "", null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("poolName").ToString()); } ]]> This sample shows how to call GetDevBoxes with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -foreach (BinaryData item in client.GetDevBoxes("", "me", filter: "", maxCount: 1234)) +foreach (BinaryData item in client.GetDevBoxes("", "", "", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -922,6 +937,7 @@ foreach (BinaryData item in client.GetDevBoxes("", "me", filter: "< Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("location").ToString()); Console.WriteLine(result.GetProperty("osType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -939,15 +955,15 @@ foreach (BinaryData item in client.GetDevBoxes("", "me", filter: "< } ]]> - + -This sample shows how to call GetActionsAsync and parse the result. +This sample shows how to call GetDevBoxActionsAsync and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -await foreach (BinaryData item in client.GetActionsAsync("", "me", "")) +await foreach (BinaryData item in client.GetDevBoxActionsAsync("", "", "", null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -955,13 +971,13 @@ await foreach (BinaryData item in client.GetActionsAsync("", "me", Console.WriteLine(result.GetProperty("sourceId").ToString()); } ]]> -This sample shows how to call GetActionsAsync with all parameters and parse the result. +This sample shows how to call GetDevBoxActionsAsync with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -await foreach (BinaryData item in client.GetActionsAsync("", "me", "")) +await foreach (BinaryData item in client.GetDevBoxActionsAsync("", "", "", null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -972,15 +988,15 @@ await foreach (BinaryData item in client.GetActionsAsync("", "me", } ]]> - + -This sample shows how to call GetActions and parse the result. +This sample shows how to call GetDevBoxActions and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -foreach (BinaryData item in client.GetActions("", "me", "")) +foreach (BinaryData item in client.GetDevBoxActions("", "", "", null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -988,13 +1004,13 @@ foreach (BinaryData item in client.GetActions("", "me", " -This sample shows how to call GetActions with all parameters and parse the result. +This sample shows how to call GetDevBoxActions with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -foreach (BinaryData item in client.GetActions("", "me", "")) +foreach (BinaryData item in client.GetDevBoxActions("", "", "", null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -1009,11 +1025,11 @@ foreach (BinaryData item in client.GetActions("", "me", " This sample shows how to call DelayAllActionsAsync and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -await foreach (BinaryData item in client.DelayAllActionsAsync("", "me", "", DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"))) +await foreach (BinaryData item in client.DelayAllActionsAsync("", "", "", DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -1022,11 +1038,11 @@ await foreach (BinaryData item in client.DelayAllActionsAsync("", " ]]> This sample shows how to call DelayAllActionsAsync with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -await foreach (BinaryData item in client.DelayAllActionsAsync("", "me", "", DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"))) +await foreach (BinaryData item in client.DelayAllActionsAsync("", "", "", DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -1039,6 +1055,7 @@ await foreach (BinaryData item in client.DelayAllActionsAsync("", " Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); } ]]> @@ -1046,11 +1063,11 @@ await foreach (BinaryData item in client.DelayAllActionsAsync("", " This sample shows how to call DelayAllActions and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -foreach (BinaryData item in client.DelayAllActions("", "me", "", DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"))) +foreach (BinaryData item in client.DelayAllActions("", "", "", DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -1059,11 +1076,11 @@ foreach (BinaryData item in client.DelayAllActions("", "me", " This sample shows how to call DelayAllActions with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -foreach (BinaryData item in client.DelayAllActions("", "me", "", DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"))) +foreach (BinaryData item in client.DelayAllActions("", "", "", DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -1076,6 +1093,7 @@ foreach (BinaryData item in client.DelayAllActions("", "me", " @@ -1083,7 +1101,7 @@ foreach (BinaryData item in client.DelayAllActions("", "me", " This sample shows how to call CreateDevBoxAsync and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); @@ -1091,15 +1109,16 @@ using RequestContent content = RequestContent.Create(new { poolName = "", }); -Operation operation = await client.CreateDevBoxAsync(WaitUntil.Completed, "", "me", "", content); +Operation operation = await client.CreateDevBoxAsync(WaitUntil.Completed, "", "", "", content); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; +Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("poolName").ToString()); ]]> This sample shows how to call CreateDevBoxAsync with all parameters and request content and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); @@ -1108,7 +1127,7 @@ using RequestContent content = RequestContent.Create(new poolName = "", localAdministrator = "Enabled", }); -Operation operation = await client.CreateDevBoxAsync(WaitUntil.Completed, "", "me", "", content); +Operation operation = await client.CreateDevBoxAsync(WaitUntil.Completed, "", "", "", content); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -1123,6 +1142,7 @@ Console.WriteLine(result.GetProperty("uniqueId").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); +Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("location").ToString()); Console.WriteLine(result.GetProperty("osType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -1143,7 +1163,7 @@ Console.WriteLine(result.GetProperty("localAdministrator").ToString()); This sample shows how to call CreateDevBox and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); @@ -1151,15 +1171,16 @@ using RequestContent content = RequestContent.Create(new { poolName = "", }); -Operation operation = client.CreateDevBox(WaitUntil.Completed, "", "me", "", content); +Operation operation = client.CreateDevBox(WaitUntil.Completed, "", "", "", content); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; +Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("poolName").ToString()); ]]> This sample shows how to call CreateDevBox with all parameters and request content and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); @@ -1168,7 +1189,7 @@ using RequestContent content = RequestContent.Create(new poolName = "", localAdministrator = "Enabled", }); -Operation operation = client.CreateDevBox(WaitUntil.Completed, "", "me", "", content); +Operation operation = client.CreateDevBox(WaitUntil.Completed, "", "", "", content); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -1183,6 +1204,7 @@ Console.WriteLine(result.GetProperty("uniqueId").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); +Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("location").ToString()); Console.WriteLine(result.GetProperty("osType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -1203,49 +1225,49 @@ Console.WriteLine(result.GetProperty("localAdministrator").ToString()); This sample shows how to call DeleteDevBoxAsync. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Operation operation = await client.DeleteDevBoxAsync(WaitUntil.Completed, "", "me", ""); +Operation operation = await client.DeleteDevBoxAsync(WaitUntil.Completed, "", "", ""); ]]> This sample shows how to call DeleteDevBoxAsync with all parameters. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Operation operation = await client.DeleteDevBoxAsync(WaitUntil.Completed, "", "me", ""); +Operation operation = await client.DeleteDevBoxAsync(WaitUntil.Completed, "", "", ""); ]]> This sample shows how to call DeleteDevBox. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Operation operation = client.DeleteDevBox(WaitUntil.Completed, "", "me", ""); +Operation operation = client.DeleteDevBox(WaitUntil.Completed, "", "", ""); ]]> This sample shows how to call DeleteDevBox with all parameters. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Operation operation = client.DeleteDevBox(WaitUntil.Completed, "", "me", ""); +Operation operation = client.DeleteDevBox(WaitUntil.Completed, "", "", ""); ]]> This sample shows how to call StartDevBoxAsync and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Operation operation = await client.StartDevBoxAsync(WaitUntil.Completed, "", "me", ""); +Operation operation = await client.StartDevBoxAsync(WaitUntil.Completed, "", "", "", null); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -1253,11 +1275,11 @@ Console.WriteLine(result.GetProperty("status").ToString()); ]]> This sample shows how to call StartDevBoxAsync with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Operation operation = await client.StartDevBoxAsync(WaitUntil.Completed, "", "me", ""); +Operation operation = await client.StartDevBoxAsync(WaitUntil.Completed, "", "", "", null); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -1277,11 +1299,11 @@ Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()) This sample shows how to call StartDevBox and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Operation operation = client.StartDevBox(WaitUntil.Completed, "", "me", ""); +Operation operation = client.StartDevBox(WaitUntil.Completed, "", "", "", null); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -1289,11 +1311,11 @@ Console.WriteLine(result.GetProperty("status").ToString()); ]]> This sample shows how to call StartDevBox with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Operation operation = client.StartDevBox(WaitUntil.Completed, "", "me", ""); +Operation operation = client.StartDevBox(WaitUntil.Completed, "", "", "", null); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -1313,11 +1335,11 @@ Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()) This sample shows how to call StopDevBoxAsync and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Operation operation = await client.StopDevBoxAsync(WaitUntil.Completed, "", "me", ""); +Operation operation = await client.StopDevBoxAsync(WaitUntil.Completed, "", "", "", null, null); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -1325,11 +1347,11 @@ Console.WriteLine(result.GetProperty("status").ToString()); ]]> This sample shows how to call StopDevBoxAsync with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Operation operation = await client.StopDevBoxAsync(WaitUntil.Completed, "", "me", "", hibernate: true); +Operation operation = await client.StopDevBoxAsync(WaitUntil.Completed, "", "", "", true, null); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -1349,11 +1371,11 @@ Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()) This sample shows how to call StopDevBox and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Operation operation = client.StopDevBox(WaitUntil.Completed, "", "me", ""); +Operation operation = client.StopDevBox(WaitUntil.Completed, "", "", "", null, null); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -1361,11 +1383,11 @@ Console.WriteLine(result.GetProperty("status").ToString()); ]]> This sample shows how to call StopDevBox with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Operation operation = client.StopDevBox(WaitUntil.Completed, "", "me", "", hibernate: true); +Operation operation = client.StopDevBox(WaitUntil.Completed, "", "", "", true, null); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -1385,11 +1407,11 @@ Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()) This sample shows how to call RestartDevBoxAsync and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Operation operation = await client.RestartDevBoxAsync(WaitUntil.Completed, "", "me", ""); +Operation operation = await client.RestartDevBoxAsync(WaitUntil.Completed, "", "", "", null); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -1397,11 +1419,11 @@ Console.WriteLine(result.GetProperty("status").ToString()); ]]> This sample shows how to call RestartDevBoxAsync with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Operation operation = await client.RestartDevBoxAsync(WaitUntil.Completed, "", "me", ""); +Operation operation = await client.RestartDevBoxAsync(WaitUntil.Completed, "", "", "", null); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -1421,11 +1443,11 @@ Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()) This sample shows how to call RestartDevBox and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Operation operation = client.RestartDevBox(WaitUntil.Completed, "", "me", ""); +Operation operation = client.RestartDevBox(WaitUntil.Completed, "", "", "", null); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -1433,11 +1455,11 @@ Console.WriteLine(result.GetProperty("status").ToString()); ]]> This sample shows how to call RestartDevBox with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Operation operation = client.RestartDevBox(WaitUntil.Completed, "", "me", ""); +Operation operation = client.RestartDevBox(WaitUntil.Completed, "", "", "", null); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/Docs/DevCenterClient.xml b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/Docs/DevCenterClient.xml index 1420f300bac8..3675c61c53c8 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/Docs/DevCenterClient.xml +++ b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/Docs/DevCenterClient.xml @@ -5,22 +5,22 @@ This sample shows how to call GetProjectAsync and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevCenterClient client = new DevCenterClient(endpoint, credential); -Response response = await client.GetProjectAsync(""); +Response response = await client.GetProjectAsync("", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); ]]> This sample shows how to call GetProjectAsync with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevCenterClient client = new DevCenterClient(endpoint, credential); -Response response = await client.GetProjectAsync(""); +Response response = await client.GetProjectAsync("", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -32,22 +32,22 @@ Console.WriteLine(result.GetProperty("maxDevBoxesPerUser").ToString()); This sample shows how to call GetProject and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevCenterClient client = new DevCenterClient(endpoint, credential); -Response response = client.GetProject(""); +Response response = client.GetProject("", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); ]]> This sample shows how to call GetProject with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevCenterClient client = new DevCenterClient(endpoint, credential); -Response response = client.GetProject(""); +Response response = client.GetProject("", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -59,11 +59,11 @@ Console.WriteLine(result.GetProperty("maxDevBoxesPerUser").ToString()); This sample shows how to call GetProjectsAsync and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevCenterClient client = new DevCenterClient(endpoint, credential); -await foreach (BinaryData item in client.GetProjectsAsync()) +await foreach (BinaryData item in client.GetProjectsAsync(null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -71,11 +71,11 @@ await foreach (BinaryData item in client.GetProjectsAsync()) ]]> This sample shows how to call GetProjectsAsync with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevCenterClient client = new DevCenterClient(endpoint, credential); -await foreach (BinaryData item in client.GetProjectsAsync(filter: "", maxCount: 1234)) +await foreach (BinaryData item in client.GetProjectsAsync("", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -88,11 +88,11 @@ await foreach (BinaryData item in client.GetProjectsAsync(filter: "", ma This sample shows how to call GetProjects and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevCenterClient client = new DevCenterClient(endpoint, credential); -foreach (BinaryData item in client.GetProjects()) +foreach (BinaryData item in client.GetProjects(null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -100,11 +100,11 @@ foreach (BinaryData item in client.GetProjects()) ]]> This sample shows how to call GetProjects with all parameters and parse the result. "); +Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevCenterClient client = new DevCenterClient(endpoint, credential); -foreach (BinaryData item in client.GetProjects(filter: "", maxCount: 1234)) +foreach (BinaryData item in client.GetProjects("", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); diff --git a/sdk/devcenter/Azure.Developer.DevCenter/src/autorest.md b/sdk/devcenter/Azure.Developer.DevCenter/src/autorest.md deleted file mode 100644 index d6f30a611b14..000000000000 --- a/sdk/devcenter/Azure.Developer.DevCenter/src/autorest.md +++ /dev/null @@ -1,89 +0,0 @@ -# Azure SDK Code Generation for Data Plane - -Run `dotnet build /t:GenerateCode` to generate code. - -### AutoRest Configuration -> see https://aka.ms/autorest - -``` yaml -input-file: - - https://github.com/Azure/azure-rest-api-specs/blob/552eaca3fb1940d5ec303746017d1764861031e6/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json - - https://github.com/Azure/azure-rest-api-specs/blob/552eaca3fb1940d5ec303746017d1764861031e6/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json - - https://github.com/Azure/azure-rest-api-specs/blob/552eaca3fb1940d5ec303746017d1764861031e6/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json - -namespace: Azure.Developer.DevCenter -security: AADToken -security-scopes: https://devcenter.azure.com/.default -data-plane: true -keep-non-overloadable-protocol-signature: true - -directive: - - # Move project name to method level parameters - - from: swagger-document - where: $.parameters["ProjectNameParameter"] - transform: >- - $["x-ms-parameter-location"] = "method" - - # Ensure we use Uri rather than string in .NET - - from: swagger-document - where: "$.parameters.EndpointParameter" - transform: >- - $["format"] = "url"; - - # @autorest/csharp hasn't yet shipped a version which understands operation-location. Until then, pull the options. - # TODO: remove these directives once fix makes it to a version of @autorest/csharp - - from: swagger-document - where-operation: DevBoxes_DeleteDevBox - transform: >- - delete $["x-ms-long-running-operation-options"]; - - - from: swagger-document - where-operation: DevBoxes_RestartDevBox - transform: >- - delete $["x-ms-long-running-operation-options"]; - - - from: swagger-document - where-operation: DevBoxes_StartDevBox - transform: >- - delete $["x-ms-long-running-operation-options"]; - - - from: swagger-document - where-operation: DevBoxes_StopDevBox - transform: >- - delete $["x-ms-long-running-operation-options"]; - - # Override operation names to match SDK naming preferences - - from: swagger-document - where: $..[?(@.operationId !== undefined)] - transform: >- - const mappingTable = { - "DevBoxes_DelayActions": "DevBoxes_DelayAllActions", - "DevBoxes_GetDevBoxByUser": "DevBoxes_GetDevBox", - "DevBoxes_ListDevBoxesByUser": "DevBoxes_ListDevBoxes", - "DevBoxes_GetScheduleByPool": "DevBoxes_GetSchedule", - "DevCenter_ListAllDevBoxes": "DevBoxes_ListAllDevBoxes", - "DevCenter_ListAllDevBoxesByUser": "DevBoxes_ListAllDevBoxesByUser", - "Environments_CreateOrReplaceEnvironment": "DeploymentEnvironments_CreateOrUpdateEnvironment", - "Environments_DeleteEnvironment": "DeploymentEnvironments_DeleteEnvironment", - "Environments_GetCatalog": "DeploymentEnvironments_GetCatalog", - "Environments_GetEnvironmentByUser": "DeploymentEnvironments_GetEnvironment", - "Environments_GetEnvironmentDefinition": "DeploymentEnvironments_GetEnvironmentDefinition", - "Environments_ListCatalogsByProject": "DeploymentEnvironments_ListCatalogs", - "Environments_ListEnvironmentDefinitionsByCatalog": "DeploymentEnvironments_ListEnvironmentDefinitionsByCatalog", - "Environments_ListEnvironmentDefinitionsByProject": "DeploymentEnvironments_ListEnvironmentDefinitions", - "Environments_ListEnvironments": "DeploymentEnvironments_ListAllEnvironments", - "Environments_ListEnvironmentsByUser": "DeploymentEnvironments_ListEnvironments", - "Environments_ListEnvironmentTypes": "DeploymentEnvironments_ListEnvironmentTypes", - "DevBoxes_ListSchedulesByPool": "DevBoxes_ListSchedules", - }; - - $.operationId = (mappingTable[$.operationId] ?? $.operationId); - - - from: swagger-document - where: $..[?(@.operationId == "DevBoxes_ListSchedules" || @.operationId == "DevBoxes_ListPools")] - transform: >- - topParam = $.parameters[1]; - $.parameters[1] = $.parameters[2]; - $.parameters[2] = topParam; -``` diff --git a/sdk/devcenter/Azure.Developer.DevCenter/tests/DevBoxClientTests.cs b/sdk/devcenter/Azure.Developer.DevCenter/tests/DevBoxClientTests.cs index c2ae6e214f55..8ece884c4cfe 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/tests/DevBoxClientTests.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/tests/DevBoxClientTests.cs @@ -22,7 +22,7 @@ internal DevBoxesClient GetDevBoxesClient() => InstrumentClient(new DevBoxesClient( TestEnvironment.Endpoint, TestEnvironment.Credential, - InstrumentClientOptions(new DevCenterClientOptions()))); + InstrumentClientOptions(new AzureDeveloperDevCenterClientOptions()))); public DevBoxClientTests(bool isAsync) : base(isAsync) { @@ -56,7 +56,9 @@ public async Task StartAndStopDevBoxSucceeds() WaitUntil.Completed, TestEnvironment.ProjectName, TestEnvironment.MeUserId, - DevBoxName); + DevBoxName, + TestEnvironment.hibernate, + TestEnvironment.context); BinaryData devBoxData = await devBoxStopOperation.WaitForCompletionAsync(); JsonElement devBox = JsonDocument.Parse(devBoxData.ToStream()).RootElement; @@ -74,7 +76,8 @@ public async Task StartAndStopDevBoxSucceeds() WaitUntil.Completed, TestEnvironment.ProjectName, TestEnvironment.MeUserId, - DevBoxName); + DevBoxName, + TestEnvironment.context); devBoxData = await devBoxStartOperation.WaitForCompletionAsync(); devBox = JsonDocument.Parse(devBoxData.ToStream()).RootElement; @@ -94,7 +97,8 @@ public async Task GetRemoteConnectionSucceeds() Response remoteConnectionResponse = await _devBoxesClient.GetRemoteConnectionAsync( TestEnvironment.ProjectName, TestEnvironment.MeUserId, - DevBoxName); + DevBoxName, + TestEnvironment.context); JsonElement remoteConnectionData = JsonDocument.Parse(remoteConnectionResponse.ContentStream).RootElement; @@ -128,7 +132,8 @@ public async Task GetDevBoxSucceeds() Response devBoxResponse = await _devBoxesClient.GetDevBoxAsync( TestEnvironment.ProjectName, TestEnvironment.MeUserId, - DevBoxName); + DevBoxName, + TestEnvironment.context); JsonElement devBoxResponseData = JsonDocument.Parse(devBoxResponse.ContentStream).RootElement; @@ -146,7 +151,12 @@ public async Task GetDevBoxesSucceeds() { int numberOfReturnedDevBoxes = 0; - await foreach (BinaryData devBoxData in _devBoxesClient.GetDevBoxesAsync(TestEnvironment.ProjectName, TestEnvironment.MeUserId)) + await foreach (BinaryData devBoxData in _devBoxesClient.GetDevBoxesAsync( + TestEnvironment.ProjectName, + TestEnvironment.MeUserId, + TestEnvironment.filter, + TestEnvironment.maxCount, + TestEnvironment.context)) { numberOfReturnedDevBoxes++; JsonElement devBoxResponseData = JsonDocument.Parse(devBoxData.ToStream()).RootElement; @@ -168,7 +178,10 @@ public async Task GetAllDevBoxesSucceeds() { int numberOfReturnedDevBoxes = 0; - await foreach (BinaryData devBoxData in _devBoxesClient.GetAllDevBoxesAsync()) + await foreach (BinaryData devBoxData in _devBoxesClient.GetAllDevBoxesAsync( + TestEnvironment.filter, + TestEnvironment.maxCount, + TestEnvironment.context)) { numberOfReturnedDevBoxes++; JsonElement devBoxResponseData = JsonDocument.Parse(devBoxData.ToStream()).RootElement; @@ -190,7 +203,11 @@ public async Task GetAllDevBoxesByUserSucceeds() { int numberOfReturnedDevBoxes = 0; - await foreach (BinaryData devBoxData in _devBoxesClient.GetAllDevBoxesByUserAsync(TestEnvironment.MeUserId)) + await foreach (BinaryData devBoxData in _devBoxesClient.GetAllDevBoxesByUserAsync( + TestEnvironment.MeUserId, + TestEnvironment.filter, + TestEnvironment.maxCount, + TestEnvironment.context)) { numberOfReturnedDevBoxes++; JsonElement devBoxResponseData = JsonDocument.Parse(devBoxData.ToStream()).RootElement; @@ -212,7 +229,8 @@ public async Task GetPoolSucceeds() { Response getPoolResponse = await _devBoxesClient.GetPoolAsync( TestEnvironment.ProjectName, - TestEnvironment.PoolName); + TestEnvironment.PoolName, + TestEnvironment.context); JsonElement getPoolData = JsonDocument.Parse(getPoolResponse.ContentStream).RootElement; @@ -229,7 +247,11 @@ public async Task GetPoolSucceeds() public async Task GetPoolsSucceeds() { var numberOfReturnedPools = 0; - await foreach (BinaryData poolData in _devBoxesClient.GetPoolsAsync(TestEnvironment.ProjectName)) + await foreach (BinaryData poolData in _devBoxesClient.GetPoolsAsync( + TestEnvironment.ProjectName, + TestEnvironment.filter, + TestEnvironment.maxCount, + TestEnvironment.context)) { numberOfReturnedPools++; JsonElement getPoolsResponseData = JsonDocument.Parse(poolData.ToStream()).RootElement; @@ -250,7 +272,12 @@ public async Task GetPoolsSucceeds() public async Task GetSchedulesSucceeds() { var numberOfReturnedSchedules = 0; - await foreach (BinaryData scheduleData in _devBoxesClient.GetSchedulesAsync(TestEnvironment.ProjectName, TestEnvironment.PoolName)) + await foreach (BinaryData scheduleData in _devBoxesClient.GetSchedulesAsync( + TestEnvironment.ProjectName, + TestEnvironment.PoolName, + TestEnvironment.filter, + TestEnvironment.maxCount, + TestEnvironment.context)) { numberOfReturnedSchedules++; JsonElement getSchedulesResponseData = JsonDocument.Parse(scheduleData.ToStream()).RootElement; @@ -273,7 +300,8 @@ public async Task GetScheduleSucceeds() Response getScheduleResponse = await _devBoxesClient.GetScheduleAsync( TestEnvironment.ProjectName, TestEnvironment.PoolName, - "default"); + "default", + TestEnvironment.context); JsonElement getScheduleData = JsonDocument.Parse(getScheduleResponse.ContentStream).RootElement; @@ -290,7 +318,7 @@ public async Task GetScheduleSucceeds() public async Task GetActionsSucceeds() { var numberOfReturnedActions = 0; - await foreach (BinaryData actionsData in _devBoxesClient.GetActionsAsync(TestEnvironment.ProjectName, TestEnvironment.MeUserId, DevBoxName)) + await foreach (BinaryData actionsData in _devBoxesClient.GetDevBoxActionsAsync(TestEnvironment.ProjectName, TestEnvironment.MeUserId, DevBoxName, TestEnvironment.context)) { numberOfReturnedActions++; JsonElement getActionsResponseData = JsonDocument.Parse(actionsData.ToStream()).RootElement; @@ -310,11 +338,12 @@ public async Task GetActionsSucceeds() [RecordedTest] public async Task GetActionSucceeds() { - Response getActionResponse = await _devBoxesClient.GetActionAsync( + Response getActionResponse = await _devBoxesClient.GetDevBoxActionAsync( TestEnvironment.ProjectName, TestEnvironment.MeUserId, DevBoxName, - "schedule-default"); + "schedule-default", + TestEnvironment.context); JsonElement getActionData = JsonDocument.Parse(getActionResponse.ContentStream).RootElement; @@ -351,7 +380,8 @@ public async Task DelayActionSucceeds() TestEnvironment.MeUserId, DevBoxName, "schedule-default", - delayUntil); + delayUntil, + TestEnvironment.context); JsonElement delayActionData = JsonDocument.Parse(delayActionResponse.ContentStream).RootElement; if (!delayActionData.TryGetProperty("next", out var nextActionTimeJson)) @@ -374,7 +404,7 @@ public async Task DelayAllActionsSucceeds() DateTimeOffset delayUntil = DateTimeOffset.Parse("2023-05-02T16:01:53.3821556Z"); var numberOfReturnedActions = 0; - await foreach (BinaryData actionsData in _devBoxesClient.DelayAllActionsAsync(TestEnvironment.ProjectName, TestEnvironment.MeUserId, DevBoxName, delayUntil)) + await foreach (BinaryData actionsData in _devBoxesClient.DelayAllActionsAsync(TestEnvironment.ProjectName, TestEnvironment.MeUserId, DevBoxName, delayUntil, TestEnvironment.context)) { numberOfReturnedActions++; JsonElement getActionsResponseData = JsonDocument.Parse(actionsData.ToStream()).RootElement; diff --git a/sdk/devcenter/Azure.Developer.DevCenter/tests/DevCenterClientTestEnvironment.cs b/sdk/devcenter/Azure.Developer.DevCenter/tests/DevCenterClientTestEnvironment.cs index 7ad8413a39de..e977cd5f0281 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/tests/DevCenterClientTestEnvironment.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/tests/DevCenterClientTestEnvironment.cs @@ -15,5 +15,9 @@ public class DevCenterClientTestEnvironment : TestEnvironment public string EnvironmentTypeName => GetRecordedVariable("DEFAULT_ENVIRONMENT_TYPE_NAME"); public string UserId => GetRecordedVariable("STATIC_TEST_USER_ID"); public string MeUserId => "me"; + public RequestContext context = null; + public string filter = null; + public int? maxCount = null; + public bool? hibernate = null; } } diff --git a/sdk/devcenter/Azure.Developer.DevCenter/tests/DevCenterClientTests.cs b/sdk/devcenter/Azure.Developer.DevCenter/tests/DevCenterClientTests.cs index 3e4378f15820..b20dc210fbc3 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/tests/DevCenterClientTests.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/tests/DevCenterClientTests.cs @@ -18,7 +18,7 @@ internal DevCenterClient GetDevCenterClient() => InstrumentClient(new DevCenterClient( TestEnvironment.Endpoint, TestEnvironment.Credential, - InstrumentClientOptions(new DevCenterClientOptions()))); + InstrumentClientOptions(new AzureDeveloperDevCenterClientOptions()))); public DevCenterClientTests(bool isAsync) : base(isAsync) { @@ -34,7 +34,10 @@ public void SetUp() public async Task GetProjectsSucceeds() { var numberOfReturnedProjects = 0; - await foreach (BinaryData projectData in _devCenterClient.GetProjectsAsync()) + await foreach (BinaryData projectData in _devCenterClient.GetProjectsAsync( + TestEnvironment.filter, + TestEnvironment.maxCount, + TestEnvironment.context)) { numberOfReturnedProjects++; JsonElement projectResponseData = JsonDocument.Parse(projectData.ToStream()).RootElement; @@ -54,7 +57,7 @@ public async Task GetProjectsSucceeds() [RecordedTest] public async Task GetProjectSucceeds() { - Response getProjectResponse = await _devCenterClient.GetProjectAsync(TestEnvironment.ProjectName); + Response getProjectResponse = await _devCenterClient.GetProjectAsync(TestEnvironment.ProjectName, TestEnvironment.context); JsonElement getProjectData = JsonDocument.Parse(getProjectResponse.ContentStream).RootElement; diff --git a/sdk/devcenter/Azure.Developer.DevCenter/tests/EnvironmentsClientTests.cs b/sdk/devcenter/Azure.Developer.DevCenter/tests/EnvironmentsClientTests.cs index f1b854c26ca9..79e8207521ca 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/tests/EnvironmentsClientTests.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/tests/EnvironmentsClientTests.cs @@ -20,7 +20,7 @@ internal DeploymentEnvironmentsClient GetEnvironmentsClient() => InstrumentClient(new DeploymentEnvironmentsClient( TestEnvironment.Endpoint, TestEnvironment.Credential, - InstrumentClientOptions(new DevCenterClientOptions()))); + InstrumentClientOptions(new AzureDeveloperDevCenterClientOptions()))); public EnvironmentsClientTests(bool isAsync) : base(isAsync) { @@ -36,7 +36,10 @@ public void SetUp() public async Task GetCatalogsSucceeds() { var numberOfReturnedCatalogs = 0; - await foreach (BinaryData catalogData in _environmentsClient.GetCatalogsAsync(TestEnvironment.ProjectName)) + await foreach (BinaryData catalogData in _environmentsClient.GetCatalogsAsync( + TestEnvironment.ProjectName, + TestEnvironment.maxCount, + TestEnvironment.context)) { numberOfReturnedCatalogs++; JsonElement catalogResponseData = JsonDocument.Parse(catalogData.ToStream()).RootElement; @@ -56,7 +59,7 @@ public async Task GetCatalogsSucceeds() [RecordedTest] public async Task GetCatalogSucceeds() { - Response getCatalogResponse = await _environmentsClient.GetCatalogAsync(TestEnvironment.ProjectName, TestEnvironment.CatalogName); + Response getCatalogResponse = await _environmentsClient.GetCatalogAsync(TestEnvironment.ProjectName, TestEnvironment.CatalogName, TestEnvironment.context); JsonElement getCatalogData = JsonDocument.Parse(getCatalogResponse.ContentStream).RootElement; if (!getCatalogData.TryGetProperty("name", out var catalogNameJson)) @@ -72,7 +75,10 @@ public async Task GetCatalogSucceeds() public async Task GetEnvironmentTypesSucceeds() { var numberOfEnvTypes = 0; - await foreach (BinaryData envTypeData in _environmentsClient.GetEnvironmentTypesAsync(TestEnvironment.ProjectName)) + await foreach (BinaryData envTypeData in _environmentsClient.GetEnvironmentTypesAsync( + TestEnvironment.ProjectName, + TestEnvironment.maxCount, + TestEnvironment.context)) { numberOfEnvTypes++; JsonElement envTypeResponseData = JsonDocument.Parse(envTypeData.ToStream()).RootElement; @@ -93,7 +99,7 @@ public async Task GetEnvironmentTypesSucceeds() public async Task GetEnvironmentDefinitionsSucceeds() { var numberOfEnvDefinitions = 0; - await foreach (BinaryData envDefinitionsData in _environmentsClient.GetEnvironmentDefinitionsAsync(TestEnvironment.ProjectName)) + await foreach (BinaryData envDefinitionsData in _environmentsClient.GetEnvironmentDefinitionsAsync(TestEnvironment.ProjectName, TestEnvironment.maxCount, TestEnvironment.context)) { numberOfEnvDefinitions++; JsonElement envDefinitionsResponseData = JsonDocument.Parse(envDefinitionsData.ToStream()).RootElement; @@ -114,7 +120,11 @@ public async Task GetEnvironmentDefinitionsSucceeds() public async Task GetEnvironmentDefinitionsByCatalogSucceeds() { var numberOfEnvDefinitions = 0; - await foreach (BinaryData envDefinitionsData in _environmentsClient.GetEnvironmentDefinitionsByCatalogAsync(TestEnvironment.ProjectName, TestEnvironment.CatalogName)) + await foreach (BinaryData envDefinitionsData in _environmentsClient.GetEnvironmentDefinitionsByCatalogAsync( + TestEnvironment.ProjectName, + TestEnvironment.CatalogName, + TestEnvironment.maxCount, + TestEnvironment.context)) { numberOfEnvDefinitions++; JsonElement envDefinitionsResponseData = JsonDocument.Parse(envDefinitionsData.ToStream()).RootElement; @@ -139,7 +149,8 @@ public async Task GetEnvironmentSucceeds() Response getEnvResponse = await _environmentsClient.GetEnvironmentAsync( TestEnvironment.ProjectName, TestEnvironment.MeUserId, - EnvName); + EnvName, + TestEnvironment.context); JsonElement getEnvData = JsonDocument.Parse(getEnvResponse.ContentStream).RootElement; if (!getEnvData.TryGetProperty("name", out var envNameJson)) @@ -188,7 +199,10 @@ public async Task GetAllEnvironmentsSucceeds() private async Task GetAllEnvironmentsAsync() { var numberOfEnvironments = 0; - await foreach (BinaryData environmentsData in _environmentsClient.GetAllEnvironmentsAsync(TestEnvironment.ProjectName)) + await foreach (BinaryData environmentsData in _environmentsClient.GetAllEnvironmentsAsync( + TestEnvironment.ProjectName, + TestEnvironment.maxCount, + TestEnvironment.context)) { numberOfEnvironments++; JsonElement environmentsResponseData = JsonDocument.Parse(environmentsData.ToStream()).RootElement; @@ -208,7 +222,11 @@ private async Task GetAllEnvironmentsAsync() private async Task GetEnvironmentsAsync() { var numberOfEnvironments = 0; - await foreach (BinaryData environmentsData in _environmentsClient.GetEnvironmentsAsync(TestEnvironment.ProjectName, TestEnvironment.MeUserId)) + await foreach (BinaryData environmentsData in _environmentsClient.GetEnvironmentsAsync( + TestEnvironment.ProjectName, + TestEnvironment.MeUserId, + TestEnvironment.maxCount, + TestEnvironment.context)) { numberOfEnvironments++; JsonElement environmentsResponseData = JsonDocument.Parse(environmentsData.ToStream()).RootElement; @@ -229,7 +247,11 @@ private async Task SetUpEnvironmentAsync() { string envDefinitionsName = string.Empty; - await foreach (BinaryData envDefinitionsData in _environmentsClient.GetEnvironmentDefinitionsByCatalogAsync(TestEnvironment.ProjectName, TestEnvironment.CatalogName)) + await foreach (BinaryData envDefinitionsData in _environmentsClient.GetEnvironmentDefinitionsByCatalogAsync( + TestEnvironment.ProjectName, + TestEnvironment.CatalogName, + TestEnvironment.maxCount, + TestEnvironment.context)) { JsonElement envDefinitionsResponseData = JsonDocument.Parse(envDefinitionsData.ToStream()).RootElement; diff --git a/sdk/devcenter/Azure.Developer.DevCenter/tests/Generated/Samples/Samples_DeploymentEnvironmentsClient.cs b/sdk/devcenter/Azure.Developer.DevCenter/tests/Generated/Samples/Samples_DeploymentEnvironmentsClient.cs index 3b886e3b82b3..d73896b7c6a0 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/tests/Generated/Samples/Samples_DeploymentEnvironmentsClient.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/tests/Generated/Samples/Samples_DeploymentEnvironmentsClient.cs @@ -22,11 +22,11 @@ public partial class Samples_DeploymentEnvironmentsClient [Ignore("Only validating compilation of examples")] public void Example_GetEnvironment_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - Response response = client.GetEnvironment("", "me", ""); + Response response = client.GetEnvironment("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("environmentType").ToString()); @@ -38,11 +38,11 @@ public void Example_GetEnvironment_ShortVersion() [Ignore("Only validating compilation of examples")] public async Task Example_GetEnvironment_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - Response response = await client.GetEnvironmentAsync("", "me", ""); + Response response = await client.GetEnvironmentAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("environmentType").ToString()); @@ -54,13 +54,14 @@ public async Task Example_GetEnvironment_ShortVersion_Async() [Ignore("Only validating compilation of examples")] public void Example_GetEnvironment_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - Response response = client.GetEnvironment("", "me", ""); + Response response = client.GetEnvironment("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; + Console.WriteLine(result.GetProperty("parameters").ToString()); Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("environmentType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -71,20 +72,21 @@ public void Example_GetEnvironment_AllParameters() Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("parameters").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); } [Test] [Ignore("Only validating compilation of examples")] public async Task Example_GetEnvironment_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - Response response = await client.GetEnvironmentAsync("", "me", ""); + Response response = await client.GetEnvironmentAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; + Console.WriteLine(result.GetProperty("parameters").ToString()); Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("environmentType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -95,18 +97,18 @@ public async Task Example_GetEnvironment_AllParameters_Async() Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("parameters").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); } [Test] [Ignore("Only validating compilation of examples")] public void Example_GetCatalog_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - Response response = client.GetCatalog("", ""); + Response response = client.GetCatalog("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -116,11 +118,11 @@ public void Example_GetCatalog_ShortVersion() [Ignore("Only validating compilation of examples")] public async Task Example_GetCatalog_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - Response response = await client.GetCatalogAsync("", ""); + Response response = await client.GetCatalogAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -130,11 +132,11 @@ public async Task Example_GetCatalog_ShortVersion_Async() [Ignore("Only validating compilation of examples")] public void Example_GetCatalog_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - Response response = client.GetCatalog("", ""); + Response response = client.GetCatalog("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -144,11 +146,11 @@ public void Example_GetCatalog_AllParameters() [Ignore("Only validating compilation of examples")] public async Task Example_GetCatalog_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - Response response = await client.GetCatalogAsync("", ""); + Response response = await client.GetCatalogAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -158,11 +160,11 @@ public async Task Example_GetCatalog_AllParameters_Async() [Ignore("Only validating compilation of examples")] public void Example_GetEnvironmentDefinition_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - Response response = client.GetEnvironmentDefinition("", "", ""); + Response response = client.GetEnvironmentDefinition("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -174,11 +176,11 @@ public void Example_GetEnvironmentDefinition_ShortVersion() [Ignore("Only validating compilation of examples")] public async Task Example_GetEnvironmentDefinition_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - Response response = await client.GetEnvironmentDefinitionAsync("", "", ""); + Response response = await client.GetEnvironmentDefinitionAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -190,11 +192,11 @@ public async Task Example_GetEnvironmentDefinition_ShortVersion_Async() [Ignore("Only validating compilation of examples")] public void Example_GetEnvironmentDefinition_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - Response response = client.GetEnvironmentDefinition("", "", ""); + Response response = client.GetEnvironmentDefinition("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -217,11 +219,11 @@ public void Example_GetEnvironmentDefinition_AllParameters() [Ignore("Only validating compilation of examples")] public async Task Example_GetEnvironmentDefinition_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - Response response = await client.GetEnvironmentDefinitionAsync("", "", ""); + Response response = await client.GetEnvironmentDefinitionAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -244,11 +246,11 @@ public async Task Example_GetEnvironmentDefinition_AllParameters_Async() [Ignore("Only validating compilation of examples")] public void Example_GetAllEnvironments_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - foreach (BinaryData item in client.GetAllEnvironments("")) + foreach (BinaryData item in client.GetAllEnvironments("", null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("environmentType").ToString()); @@ -261,11 +263,11 @@ public void Example_GetAllEnvironments_ShortVersion() [Ignore("Only validating compilation of examples")] public async Task Example_GetAllEnvironments_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - await foreach (BinaryData item in client.GetAllEnvironmentsAsync("")) + await foreach (BinaryData item in client.GetAllEnvironmentsAsync("", null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("environmentType").ToString()); @@ -278,13 +280,14 @@ public async Task Example_GetAllEnvironments_ShortVersion_Async() [Ignore("Only validating compilation of examples")] public void Example_GetAllEnvironments_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - foreach (BinaryData item in client.GetAllEnvironments("", maxCount: 1234)) + foreach (BinaryData item in client.GetAllEnvironments("", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("parameters").ToString()); Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("environmentType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -295,7 +298,7 @@ public void Example_GetAllEnvironments_AllParameters() Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("parameters").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); } } @@ -303,13 +306,14 @@ public void Example_GetAllEnvironments_AllParameters() [Ignore("Only validating compilation of examples")] public async Task Example_GetAllEnvironments_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - await foreach (BinaryData item in client.GetAllEnvironmentsAsync("", maxCount: 1234)) + await foreach (BinaryData item in client.GetAllEnvironmentsAsync("", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("parameters").ToString()); Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("environmentType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -320,7 +324,7 @@ public async Task Example_GetAllEnvironments_AllParameters_Async() Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("parameters").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); } } @@ -328,11 +332,11 @@ public async Task Example_GetAllEnvironments_AllParameters_Async() [Ignore("Only validating compilation of examples")] public void Example_GetEnvironments_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - foreach (BinaryData item in client.GetEnvironments("", "me")) + foreach (BinaryData item in client.GetEnvironments("", "", null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("environmentType").ToString()); @@ -345,11 +349,11 @@ public void Example_GetEnvironments_ShortVersion() [Ignore("Only validating compilation of examples")] public async Task Example_GetEnvironments_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - await foreach (BinaryData item in client.GetEnvironmentsAsync("", "me")) + await foreach (BinaryData item in client.GetEnvironmentsAsync("", "", null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("environmentType").ToString()); @@ -362,13 +366,14 @@ public async Task Example_GetEnvironments_ShortVersion_Async() [Ignore("Only validating compilation of examples")] public void Example_GetEnvironments_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - foreach (BinaryData item in client.GetEnvironments("", "me", maxCount: 1234)) + foreach (BinaryData item in client.GetEnvironments("", "", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("parameters").ToString()); Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("environmentType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -379,7 +384,7 @@ public void Example_GetEnvironments_AllParameters() Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("parameters").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); } } @@ -387,13 +392,14 @@ public void Example_GetEnvironments_AllParameters() [Ignore("Only validating compilation of examples")] public async Task Example_GetEnvironments_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - await foreach (BinaryData item in client.GetEnvironmentsAsync("", "me", maxCount: 1234)) + await foreach (BinaryData item in client.GetEnvironmentsAsync("", "", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("parameters").ToString()); Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("environmentType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -404,7 +410,7 @@ public async Task Example_GetEnvironments_AllParameters_Async() Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("parameters").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); } } @@ -412,11 +418,11 @@ public async Task Example_GetEnvironments_AllParameters_Async() [Ignore("Only validating compilation of examples")] public void Example_GetCatalogs_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - foreach (BinaryData item in client.GetCatalogs("")) + foreach (BinaryData item in client.GetCatalogs("", null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -427,11 +433,11 @@ public void Example_GetCatalogs_ShortVersion() [Ignore("Only validating compilation of examples")] public async Task Example_GetCatalogs_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - await foreach (BinaryData item in client.GetCatalogsAsync("")) + await foreach (BinaryData item in client.GetCatalogsAsync("", null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -442,11 +448,11 @@ public async Task Example_GetCatalogs_ShortVersion_Async() [Ignore("Only validating compilation of examples")] public void Example_GetCatalogs_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - foreach (BinaryData item in client.GetCatalogs("", maxCount: 1234)) + foreach (BinaryData item in client.GetCatalogs("", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -457,11 +463,11 @@ public void Example_GetCatalogs_AllParameters() [Ignore("Only validating compilation of examples")] public async Task Example_GetCatalogs_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - await foreach (BinaryData item in client.GetCatalogsAsync("", maxCount: 1234)) + await foreach (BinaryData item in client.GetCatalogsAsync("", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -472,11 +478,11 @@ public async Task Example_GetCatalogs_AllParameters_Async() [Ignore("Only validating compilation of examples")] public void Example_GetEnvironmentDefinitions_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - foreach (BinaryData item in client.GetEnvironmentDefinitions("")) + foreach (BinaryData item in client.GetEnvironmentDefinitions("", null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -489,11 +495,11 @@ public void Example_GetEnvironmentDefinitions_ShortVersion() [Ignore("Only validating compilation of examples")] public async Task Example_GetEnvironmentDefinitions_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - await foreach (BinaryData item in client.GetEnvironmentDefinitionsAsync("")) + await foreach (BinaryData item in client.GetEnvironmentDefinitionsAsync("", null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -506,11 +512,11 @@ public async Task Example_GetEnvironmentDefinitions_ShortVersion_Async() [Ignore("Only validating compilation of examples")] public void Example_GetEnvironmentDefinitions_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - foreach (BinaryData item in client.GetEnvironmentDefinitions("", maxCount: 1234)) + foreach (BinaryData item in client.GetEnvironmentDefinitions("", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -534,11 +540,11 @@ public void Example_GetEnvironmentDefinitions_AllParameters() [Ignore("Only validating compilation of examples")] public async Task Example_GetEnvironmentDefinitions_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - await foreach (BinaryData item in client.GetEnvironmentDefinitionsAsync("", maxCount: 1234)) + await foreach (BinaryData item in client.GetEnvironmentDefinitionsAsync("", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -562,11 +568,11 @@ public async Task Example_GetEnvironmentDefinitions_AllParameters_Async() [Ignore("Only validating compilation of examples")] public void Example_GetEnvironmentDefinitionsByCatalog_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - foreach (BinaryData item in client.GetEnvironmentDefinitionsByCatalog("", "")) + foreach (BinaryData item in client.GetEnvironmentDefinitionsByCatalog("", "", null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -579,11 +585,11 @@ public void Example_GetEnvironmentDefinitionsByCatalog_ShortVersion() [Ignore("Only validating compilation of examples")] public async Task Example_GetEnvironmentDefinitionsByCatalog_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - await foreach (BinaryData item in client.GetEnvironmentDefinitionsByCatalogAsync("", "")) + await foreach (BinaryData item in client.GetEnvironmentDefinitionsByCatalogAsync("", "", null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -596,11 +602,11 @@ public async Task Example_GetEnvironmentDefinitionsByCatalog_ShortVersion_Async( [Ignore("Only validating compilation of examples")] public void Example_GetEnvironmentDefinitionsByCatalog_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - foreach (BinaryData item in client.GetEnvironmentDefinitionsByCatalog("", "", maxCount: 1234)) + foreach (BinaryData item in client.GetEnvironmentDefinitionsByCatalog("", "", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -624,11 +630,11 @@ public void Example_GetEnvironmentDefinitionsByCatalog_AllParameters() [Ignore("Only validating compilation of examples")] public async Task Example_GetEnvironmentDefinitionsByCatalog_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - await foreach (BinaryData item in client.GetEnvironmentDefinitionsByCatalogAsync("", "", maxCount: 1234)) + await foreach (BinaryData item in client.GetEnvironmentDefinitionsByCatalogAsync("", "", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("id").ToString()); @@ -652,11 +658,11 @@ public async Task Example_GetEnvironmentDefinitionsByCatalog_AllParameters_Async [Ignore("Only validating compilation of examples")] public void Example_GetEnvironmentTypes_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - foreach (BinaryData item in client.GetEnvironmentTypes("")) + foreach (BinaryData item in client.GetEnvironmentTypes("", null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -669,11 +675,11 @@ public void Example_GetEnvironmentTypes_ShortVersion() [Ignore("Only validating compilation of examples")] public async Task Example_GetEnvironmentTypes_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - await foreach (BinaryData item in client.GetEnvironmentTypesAsync("")) + await foreach (BinaryData item in client.GetEnvironmentTypesAsync("", null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -686,11 +692,11 @@ public async Task Example_GetEnvironmentTypes_ShortVersion_Async() [Ignore("Only validating compilation of examples")] public void Example_GetEnvironmentTypes_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - foreach (BinaryData item in client.GetEnvironmentTypes("", maxCount: 1234)) + foreach (BinaryData item in client.GetEnvironmentTypes("", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -703,11 +709,11 @@ public void Example_GetEnvironmentTypes_AllParameters() [Ignore("Only validating compilation of examples")] public async Task Example_GetEnvironmentTypes_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - await foreach (BinaryData item in client.GetEnvironmentTypesAsync("", maxCount: 1234)) + await foreach (BinaryData item in client.GetEnvironmentTypesAsync("", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -720,7 +726,7 @@ public async Task Example_GetEnvironmentTypes_AllParameters_Async() [Ignore("Only validating compilation of examples")] public void Example_CreateOrUpdateEnvironment_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); @@ -730,7 +736,7 @@ public void Example_CreateOrUpdateEnvironment_ShortVersion() catalogName = "", environmentDefinitionName = "", }); - Operation operation = client.CreateOrUpdateEnvironment(WaitUntil.Completed, "", "me", "", content); + Operation operation = client.CreateOrUpdateEnvironment(WaitUntil.Completed, "", "", "", content); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -743,7 +749,7 @@ public void Example_CreateOrUpdateEnvironment_ShortVersion() [Ignore("Only validating compilation of examples")] public async Task Example_CreateOrUpdateEnvironment_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); @@ -753,7 +759,7 @@ public async Task Example_CreateOrUpdateEnvironment_ShortVersion_Async() catalogName = "", environmentDefinitionName = "", }); - Operation operation = await client.CreateOrUpdateEnvironmentAsync(WaitUntil.Completed, "", "me", "", content); + Operation operation = await client.CreateOrUpdateEnvironmentAsync(WaitUntil.Completed, "", "", "", content); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -766,21 +772,22 @@ public async Task Example_CreateOrUpdateEnvironment_ShortVersion_Async() [Ignore("Only validating compilation of examples")] public void Example_CreateOrUpdateEnvironment_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { + parameters = new object(), environmentType = "", catalogName = "", environmentDefinitionName = "", - parameters = new object(), }); - Operation operation = client.CreateOrUpdateEnvironment(WaitUntil.Completed, "", "me", "", content); + Operation operation = client.CreateOrUpdateEnvironment(WaitUntil.Completed, "", "", "", content); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("parameters").ToString()); Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("environmentType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -791,28 +798,29 @@ public void Example_CreateOrUpdateEnvironment_AllParameters() Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("parameters").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); } [Test] [Ignore("Only validating compilation of examples")] public async Task Example_CreateOrUpdateEnvironment_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { + parameters = new object(), environmentType = "", catalogName = "", environmentDefinitionName = "", - parameters = new object(), }); - Operation operation = await client.CreateOrUpdateEnvironmentAsync(WaitUntil.Completed, "", "me", "", content); + Operation operation = await client.CreateOrUpdateEnvironmentAsync(WaitUntil.Completed, "", "", "", content); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("parameters").ToString()); Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("environmentType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -823,51 +831,51 @@ public async Task Example_CreateOrUpdateEnvironment_AllParameters_Async() Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("parameters").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); } [Test] [Ignore("Only validating compilation of examples")] public void Example_DeleteEnvironment_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - Operation operation = client.DeleteEnvironment(WaitUntil.Completed, "", "me", ""); + Operation operation = client.DeleteEnvironment(WaitUntil.Completed, "", "", ""); } [Test] [Ignore("Only validating compilation of examples")] public async Task Example_DeleteEnvironment_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - Operation operation = await client.DeleteEnvironmentAsync(WaitUntil.Completed, "", "me", ""); + Operation operation = await client.DeleteEnvironmentAsync(WaitUntil.Completed, "", "", ""); } [Test] [Ignore("Only validating compilation of examples")] public void Example_DeleteEnvironment_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - Operation operation = client.DeleteEnvironment(WaitUntil.Completed, "", "me", ""); + Operation operation = client.DeleteEnvironment(WaitUntil.Completed, "", "", ""); } [Test] [Ignore("Only validating compilation of examples")] public async Task Example_DeleteEnvironment_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - Operation operation = await client.DeleteEnvironmentAsync(WaitUntil.Completed, "", "me", ""); + Operation operation = await client.DeleteEnvironmentAsync(WaitUntil.Completed, "", "", ""); } } } diff --git a/sdk/devcenter/Azure.Developer.DevCenter/tests/Generated/Samples/Samples_DevBoxesClient.cs b/sdk/devcenter/Azure.Developer.DevCenter/tests/Generated/Samples/Samples_DevBoxesClient.cs index 791e085dc799..a7246a5ab264 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/tests/Generated/Samples/Samples_DevBoxesClient.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/tests/Generated/Samples/Samples_DevBoxesClient.cs @@ -22,11 +22,11 @@ public partial class Samples_DevBoxesClient [Ignore("Only validating compilation of examples")] public void Example_GetPool_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Response response = client.GetPool("", ""); + Response response = client.GetPool("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -38,11 +38,11 @@ public void Example_GetPool_ShortVersion() [Ignore("Only validating compilation of examples")] public async Task Example_GetPool_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Response response = await client.GetPoolAsync("", ""); + Response response = await client.GetPoolAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -54,11 +54,11 @@ public async Task Example_GetPool_ShortVersion_Async() [Ignore("Only validating compilation of examples")] public void Example_GetPool_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Response response = client.GetPool("", ""); + Response response = client.GetPool("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -84,11 +84,11 @@ public void Example_GetPool_AllParameters() [Ignore("Only validating compilation of examples")] public async Task Example_GetPool_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Response response = await client.GetPoolAsync("", ""); + Response response = await client.GetPoolAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -114,11 +114,11 @@ public async Task Example_GetPool_AllParameters_Async() [Ignore("Only validating compilation of examples")] public void Example_GetSchedule_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Response response = client.GetSchedule("", "", ""); + Response response = client.GetSchedule("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -132,11 +132,11 @@ public void Example_GetSchedule_ShortVersion() [Ignore("Only validating compilation of examples")] public async Task Example_GetSchedule_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Response response = await client.GetScheduleAsync("", "", ""); + Response response = await client.GetScheduleAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -150,11 +150,11 @@ public async Task Example_GetSchedule_ShortVersion_Async() [Ignore("Only validating compilation of examples")] public void Example_GetSchedule_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Response response = client.GetSchedule("", "", ""); + Response response = client.GetSchedule("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -168,11 +168,11 @@ public void Example_GetSchedule_AllParameters() [Ignore("Only validating compilation of examples")] public async Task Example_GetSchedule_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Response response = await client.GetScheduleAsync("", "", ""); + Response response = await client.GetScheduleAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -186,13 +186,14 @@ public async Task Example_GetSchedule_AllParameters_Async() [Ignore("Only validating compilation of examples")] public void Example_GetDevBox_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Response response = client.GetDevBox("", "me", ""); + Response response = client.GetDevBox("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; + Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("poolName").ToString()); } @@ -200,13 +201,14 @@ public void Example_GetDevBox_ShortVersion() [Ignore("Only validating compilation of examples")] public async Task Example_GetDevBox_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Response response = await client.GetDevBoxAsync("", "me", ""); + Response response = await client.GetDevBoxAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; + Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("poolName").ToString()); } @@ -214,11 +216,11 @@ public async Task Example_GetDevBox_ShortVersion_Async() [Ignore("Only validating compilation of examples")] public void Example_GetDevBox_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Response response = client.GetDevBox("", "me", ""); + Response response = client.GetDevBox("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -232,6 +234,7 @@ public void Example_GetDevBox_AllParameters() Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("location").ToString()); Console.WriteLine(result.GetProperty("osType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -252,11 +255,11 @@ public void Example_GetDevBox_AllParameters() [Ignore("Only validating compilation of examples")] public async Task Example_GetDevBox_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Response response = await client.GetDevBoxAsync("", "me", ""); + Response response = await client.GetDevBoxAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -270,6 +273,7 @@ public async Task Example_GetDevBox_AllParameters_Async() Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("location").ToString()); Console.WriteLine(result.GetProperty("osType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -290,11 +294,11 @@ public async Task Example_GetDevBox_AllParameters_Async() [Ignore("Only validating compilation of examples")] public void Example_GetRemoteConnection_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Response response = client.GetRemoteConnection("", "me", ""); + Response response = client.GetRemoteConnection("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -304,11 +308,11 @@ public void Example_GetRemoteConnection_ShortVersion() [Ignore("Only validating compilation of examples")] public async Task Example_GetRemoteConnection_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Response response = await client.GetRemoteConnectionAsync("", "me", ""); + Response response = await client.GetRemoteConnectionAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -318,11 +322,11 @@ public async Task Example_GetRemoteConnection_ShortVersion_Async() [Ignore("Only validating compilation of examples")] public void Example_GetRemoteConnection_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Response response = client.GetRemoteConnection("", "me", ""); + Response response = client.GetRemoteConnection("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("webUrl").ToString()); @@ -333,11 +337,11 @@ public void Example_GetRemoteConnection_AllParameters() [Ignore("Only validating compilation of examples")] public async Task Example_GetRemoteConnection_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Response response = await client.GetRemoteConnectionAsync("", "me", ""); + Response response = await client.GetRemoteConnectionAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("webUrl").ToString()); @@ -346,13 +350,13 @@ public async Task Example_GetRemoteConnection_AllParameters_Async() [Test] [Ignore("Only validating compilation of examples")] - public void Example_GetAction_ShortVersion() + public void Example_GetDevBoxAction_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Response response = client.GetAction("", "me", "", ""); + Response response = client.GetDevBoxAction("", "", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -362,13 +366,13 @@ public void Example_GetAction_ShortVersion() [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_GetAction_ShortVersion_Async() + public async Task Example_GetDevBoxAction_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Response response = await client.GetActionAsync("", "me", "", ""); + Response response = await client.GetDevBoxActionAsync("", "", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -378,13 +382,13 @@ public async Task Example_GetAction_ShortVersion_Async() [Test] [Ignore("Only validating compilation of examples")] - public void Example_GetAction_AllParameters() + public void Example_GetDevBoxAction_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Response response = client.GetAction("", "me", "", ""); + Response response = client.GetDevBoxAction("", "", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -396,13 +400,13 @@ public void Example_GetAction_AllParameters() [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_GetAction_AllParameters_Async() + public async Task Example_GetDevBoxAction_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Response response = await client.GetActionAsync("", "me", "", ""); + Response response = await client.GetDevBoxActionAsync("", "", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -416,11 +420,11 @@ public async Task Example_GetAction_AllParameters_Async() [Ignore("Only validating compilation of examples")] public void Example_SkipAction_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Response response = client.SkipAction("", "me", "", ""); + Response response = client.SkipAction("", "", "", ""); Console.WriteLine(response.Status); } @@ -429,11 +433,11 @@ public void Example_SkipAction_ShortVersion() [Ignore("Only validating compilation of examples")] public async Task Example_SkipAction_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Response response = await client.SkipActionAsync("", "me", "", ""); + Response response = await client.SkipActionAsync("", "", "", ""); Console.WriteLine(response.Status); } @@ -442,11 +446,11 @@ public async Task Example_SkipAction_ShortVersion_Async() [Ignore("Only validating compilation of examples")] public void Example_SkipAction_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Response response = client.SkipAction("", "me", "", ""); + Response response = client.SkipAction("", "", "", ""); Console.WriteLine(response.Status); } @@ -455,11 +459,11 @@ public void Example_SkipAction_AllParameters() [Ignore("Only validating compilation of examples")] public async Task Example_SkipAction_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Response response = await client.SkipActionAsync("", "me", "", ""); + Response response = await client.SkipActionAsync("", "", "", ""); Console.WriteLine(response.Status); } @@ -468,11 +472,11 @@ public async Task Example_SkipAction_AllParameters_Async() [Ignore("Only validating compilation of examples")] public void Example_DelayAction_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Response response = client.DelayAction("", "me", "", "", DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z")); + Response response = client.DelayAction("", "", "", "", DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -484,11 +488,11 @@ public void Example_DelayAction_ShortVersion() [Ignore("Only validating compilation of examples")] public async Task Example_DelayAction_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Response response = await client.DelayActionAsync("", "me", "", "", DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z")); + Response response = await client.DelayActionAsync("", "", "", "", DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -500,11 +504,11 @@ public async Task Example_DelayAction_ShortVersion_Async() [Ignore("Only validating compilation of examples")] public void Example_DelayAction_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Response response = client.DelayAction("", "me", "", "", DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z")); + Response response = client.DelayAction("", "", "", "", DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -518,11 +522,11 @@ public void Example_DelayAction_AllParameters() [Ignore("Only validating compilation of examples")] public async Task Example_DelayAction_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Response response = await client.DelayActionAsync("", "me", "", "", DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z")); + Response response = await client.DelayActionAsync("", "", "", "", DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -536,11 +540,11 @@ public async Task Example_DelayAction_AllParameters_Async() [Ignore("Only validating compilation of examples")] public void Example_GetPools_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - foreach (BinaryData item in client.GetPools("")) + foreach (BinaryData item in client.GetPools("", null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -553,11 +557,11 @@ public void Example_GetPools_ShortVersion() [Ignore("Only validating compilation of examples")] public async Task Example_GetPools_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - await foreach (BinaryData item in client.GetPoolsAsync("")) + await foreach (BinaryData item in client.GetPoolsAsync("", null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -570,11 +574,11 @@ public async Task Example_GetPools_ShortVersion_Async() [Ignore("Only validating compilation of examples")] public void Example_GetPools_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - foreach (BinaryData item in client.GetPools("", filter: "", maxCount: 1234)) + foreach (BinaryData item in client.GetPools("", "", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -601,11 +605,11 @@ public void Example_GetPools_AllParameters() [Ignore("Only validating compilation of examples")] public async Task Example_GetPools_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - await foreach (BinaryData item in client.GetPoolsAsync("", filter: "", maxCount: 1234)) + await foreach (BinaryData item in client.GetPoolsAsync("", "", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -632,11 +636,11 @@ public async Task Example_GetPools_AllParameters_Async() [Ignore("Only validating compilation of examples")] public void Example_GetSchedules_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - foreach (BinaryData item in client.GetSchedules("", "")) + foreach (BinaryData item in client.GetSchedules("", "", null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -651,11 +655,11 @@ public void Example_GetSchedules_ShortVersion() [Ignore("Only validating compilation of examples")] public async Task Example_GetSchedules_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - await foreach (BinaryData item in client.GetSchedulesAsync("", "")) + await foreach (BinaryData item in client.GetSchedulesAsync("", "", null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -670,11 +674,11 @@ public async Task Example_GetSchedules_ShortVersion_Async() [Ignore("Only validating compilation of examples")] public void Example_GetSchedules_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - foreach (BinaryData item in client.GetSchedules("", "", filter: "", maxCount: 1234)) + foreach (BinaryData item in client.GetSchedules("", "", "", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -689,11 +693,11 @@ public void Example_GetSchedules_AllParameters() [Ignore("Only validating compilation of examples")] public async Task Example_GetSchedules_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - await foreach (BinaryData item in client.GetSchedulesAsync("", "", filter: "", maxCount: 1234)) + await foreach (BinaryData item in client.GetSchedulesAsync("", "", "", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -708,13 +712,14 @@ public async Task Example_GetSchedules_AllParameters_Async() [Ignore("Only validating compilation of examples")] public void Example_GetAllDevBoxes_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - foreach (BinaryData item in client.GetAllDevBoxes()) + foreach (BinaryData item in client.GetAllDevBoxes(null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("poolName").ToString()); } } @@ -723,13 +728,14 @@ public void Example_GetAllDevBoxes_ShortVersion() [Ignore("Only validating compilation of examples")] public async Task Example_GetAllDevBoxes_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - await foreach (BinaryData item in client.GetAllDevBoxesAsync()) + await foreach (BinaryData item in client.GetAllDevBoxesAsync(null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("poolName").ToString()); } } @@ -738,11 +744,11 @@ public async Task Example_GetAllDevBoxes_ShortVersion_Async() [Ignore("Only validating compilation of examples")] public void Example_GetAllDevBoxes_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - foreach (BinaryData item in client.GetAllDevBoxes(filter: "", maxCount: 1234)) + foreach (BinaryData item in client.GetAllDevBoxes("", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -756,6 +762,7 @@ public void Example_GetAllDevBoxes_AllParameters() Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("location").ToString()); Console.WriteLine(result.GetProperty("osType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -777,11 +784,11 @@ public void Example_GetAllDevBoxes_AllParameters() [Ignore("Only validating compilation of examples")] public async Task Example_GetAllDevBoxes_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - await foreach (BinaryData item in client.GetAllDevBoxesAsync(filter: "", maxCount: 1234)) + await foreach (BinaryData item in client.GetAllDevBoxesAsync("", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -795,6 +802,7 @@ public async Task Example_GetAllDevBoxes_AllParameters_Async() Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("location").ToString()); Console.WriteLine(result.GetProperty("osType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -816,13 +824,14 @@ public async Task Example_GetAllDevBoxes_AllParameters_Async() [Ignore("Only validating compilation of examples")] public void Example_GetAllDevBoxesByUser_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - foreach (BinaryData item in client.GetAllDevBoxesByUser("me")) + foreach (BinaryData item in client.GetAllDevBoxesByUser("", null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("poolName").ToString()); } } @@ -831,13 +840,14 @@ public void Example_GetAllDevBoxesByUser_ShortVersion() [Ignore("Only validating compilation of examples")] public async Task Example_GetAllDevBoxesByUser_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - await foreach (BinaryData item in client.GetAllDevBoxesByUserAsync("me")) + await foreach (BinaryData item in client.GetAllDevBoxesByUserAsync("", null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("poolName").ToString()); } } @@ -846,11 +856,11 @@ public async Task Example_GetAllDevBoxesByUser_ShortVersion_Async() [Ignore("Only validating compilation of examples")] public void Example_GetAllDevBoxesByUser_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - foreach (BinaryData item in client.GetAllDevBoxesByUser("me", filter: "", maxCount: 1234)) + foreach (BinaryData item in client.GetAllDevBoxesByUser("", "", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -864,6 +874,7 @@ public void Example_GetAllDevBoxesByUser_AllParameters() Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("location").ToString()); Console.WriteLine(result.GetProperty("osType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -885,11 +896,11 @@ public void Example_GetAllDevBoxesByUser_AllParameters() [Ignore("Only validating compilation of examples")] public async Task Example_GetAllDevBoxesByUser_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - await foreach (BinaryData item in client.GetAllDevBoxesByUserAsync("me", filter: "", maxCount: 1234)) + await foreach (BinaryData item in client.GetAllDevBoxesByUserAsync("", "", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -903,6 +914,7 @@ public async Task Example_GetAllDevBoxesByUser_AllParameters_Async() Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("location").ToString()); Console.WriteLine(result.GetProperty("osType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -924,13 +936,14 @@ public async Task Example_GetAllDevBoxesByUser_AllParameters_Async() [Ignore("Only validating compilation of examples")] public void Example_GetDevBoxes_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - foreach (BinaryData item in client.GetDevBoxes("", "me")) + foreach (BinaryData item in client.GetDevBoxes("", "", null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("poolName").ToString()); } } @@ -939,13 +952,14 @@ public void Example_GetDevBoxes_ShortVersion() [Ignore("Only validating compilation of examples")] public async Task Example_GetDevBoxes_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - await foreach (BinaryData item in client.GetDevBoxesAsync("", "me")) + await foreach (BinaryData item in client.GetDevBoxesAsync("", "", null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("poolName").ToString()); } } @@ -954,11 +968,11 @@ public async Task Example_GetDevBoxes_ShortVersion_Async() [Ignore("Only validating compilation of examples")] public void Example_GetDevBoxes_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - foreach (BinaryData item in client.GetDevBoxes("", "me", filter: "", maxCount: 1234)) + foreach (BinaryData item in client.GetDevBoxes("", "", "", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -972,6 +986,7 @@ public void Example_GetDevBoxes_AllParameters() Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("location").ToString()); Console.WriteLine(result.GetProperty("osType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -993,11 +1008,11 @@ public void Example_GetDevBoxes_AllParameters() [Ignore("Only validating compilation of examples")] public async Task Example_GetDevBoxes_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - await foreach (BinaryData item in client.GetDevBoxesAsync("", "me", filter: "", maxCount: 1234)) + await foreach (BinaryData item in client.GetDevBoxesAsync("", "", "", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -1011,6 +1026,7 @@ public async Task Example_GetDevBoxes_AllParameters_Async() Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("location").ToString()); Console.WriteLine(result.GetProperty("osType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -1030,13 +1046,13 @@ public async Task Example_GetDevBoxes_AllParameters_Async() [Test] [Ignore("Only validating compilation of examples")] - public void Example_GetActions_ShortVersion() + public void Example_GetDevBoxActions_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - foreach (BinaryData item in client.GetActions("", "me", "")) + foreach (BinaryData item in client.GetDevBoxActions("", "", "", null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -1047,13 +1063,13 @@ public void Example_GetActions_ShortVersion() [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_GetActions_ShortVersion_Async() + public async Task Example_GetDevBoxActions_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - await foreach (BinaryData item in client.GetActionsAsync("", "me", "")) + await foreach (BinaryData item in client.GetDevBoxActionsAsync("", "", "", null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -1064,13 +1080,13 @@ public async Task Example_GetActions_ShortVersion_Async() [Test] [Ignore("Only validating compilation of examples")] - public void Example_GetActions_AllParameters() + public void Example_GetDevBoxActions_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - foreach (BinaryData item in client.GetActions("", "me", "")) + foreach (BinaryData item in client.GetDevBoxActions("", "", "", null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -1083,13 +1099,13 @@ public void Example_GetActions_AllParameters() [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_GetActions_AllParameters_Async() + public async Task Example_GetDevBoxActions_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - await foreach (BinaryData item in client.GetActionsAsync("", "me", "")) + await foreach (BinaryData item in client.GetDevBoxActionsAsync("", "", "", null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -1104,11 +1120,11 @@ public async Task Example_GetActions_AllParameters_Async() [Ignore("Only validating compilation of examples")] public void Example_DelayAllActions_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - foreach (BinaryData item in client.DelayAllActions("", "me", "", DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"))) + foreach (BinaryData item in client.DelayAllActions("", "", "", DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -1120,11 +1136,11 @@ public void Example_DelayAllActions_ShortVersion() [Ignore("Only validating compilation of examples")] public async Task Example_DelayAllActions_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - await foreach (BinaryData item in client.DelayAllActionsAsync("", "me", "", DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"))) + await foreach (BinaryData item in client.DelayAllActionsAsync("", "", "", DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -1136,11 +1152,11 @@ public async Task Example_DelayAllActions_ShortVersion_Async() [Ignore("Only validating compilation of examples")] public void Example_DelayAllActions_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - foreach (BinaryData item in client.DelayAllActions("", "me", "", DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"))) + foreach (BinaryData item in client.DelayAllActions("", "", "", DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -1153,6 +1169,7 @@ public void Example_DelayAllActions_AllParameters() Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); } } @@ -1160,11 +1177,11 @@ public void Example_DelayAllActions_AllParameters() [Ignore("Only validating compilation of examples")] public async Task Example_DelayAllActions_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - await foreach (BinaryData item in client.DelayAllActionsAsync("", "me", "", DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"))) + await foreach (BinaryData item in client.DelayAllActionsAsync("", "", "", DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -1177,6 +1194,7 @@ public async Task Example_DelayAllActions_AllParameters_Async() Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); } } @@ -1184,7 +1202,7 @@ public async Task Example_DelayAllActions_AllParameters_Async() [Ignore("Only validating compilation of examples")] public void Example_CreateDevBox_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); @@ -1192,10 +1210,11 @@ public void Example_CreateDevBox_ShortVersion() { poolName = "", }); - Operation operation = client.CreateDevBox(WaitUntil.Completed, "", "me", "", content); + Operation operation = client.CreateDevBox(WaitUntil.Completed, "", "", "", content); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("poolName").ToString()); } @@ -1203,7 +1222,7 @@ public void Example_CreateDevBox_ShortVersion() [Ignore("Only validating compilation of examples")] public async Task Example_CreateDevBox_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); @@ -1211,10 +1230,11 @@ public async Task Example_CreateDevBox_ShortVersion_Async() { poolName = "", }); - Operation operation = await client.CreateDevBoxAsync(WaitUntil.Completed, "", "me", "", content); + Operation operation = await client.CreateDevBoxAsync(WaitUntil.Completed, "", "", "", content); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; + Console.WriteLine(result.GetProperty("name").ToString()); Console.WriteLine(result.GetProperty("poolName").ToString()); } @@ -1222,7 +1242,7 @@ public async Task Example_CreateDevBox_ShortVersion_Async() [Ignore("Only validating compilation of examples")] public void Example_CreateDevBox_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); @@ -1231,7 +1251,7 @@ public void Example_CreateDevBox_AllParameters() poolName = "", localAdministrator = "Enabled", }); - Operation operation = client.CreateDevBox(WaitUntil.Completed, "", "me", "", content); + Operation operation = client.CreateDevBox(WaitUntil.Completed, "", "", "", content); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -1246,6 +1266,7 @@ public void Example_CreateDevBox_AllParameters() Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("location").ToString()); Console.WriteLine(result.GetProperty("osType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -1266,7 +1287,7 @@ public void Example_CreateDevBox_AllParameters() [Ignore("Only validating compilation of examples")] public async Task Example_CreateDevBox_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); @@ -1275,7 +1296,7 @@ public async Task Example_CreateDevBox_AllParameters_Async() poolName = "", localAdministrator = "Enabled", }); - Operation operation = await client.CreateDevBoxAsync(WaitUntil.Completed, "", "me", "", content); + Operation operation = await client.CreateDevBoxAsync(WaitUntil.Completed, "", "", "", content); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -1290,6 +1311,7 @@ public async Task Example_CreateDevBox_AllParameters_Async() Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("error").GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("error").GetProperty("innererror").GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("location").ToString()); Console.WriteLine(result.GetProperty("osType").ToString()); Console.WriteLine(result.GetProperty("user").ToString()); @@ -1310,55 +1332,55 @@ public async Task Example_CreateDevBox_AllParameters_Async() [Ignore("Only validating compilation of examples")] public void Example_DeleteDevBox_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Operation operation = client.DeleteDevBox(WaitUntil.Completed, "", "me", ""); + Operation operation = client.DeleteDevBox(WaitUntil.Completed, "", "", ""); } [Test] [Ignore("Only validating compilation of examples")] public async Task Example_DeleteDevBox_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Operation operation = await client.DeleteDevBoxAsync(WaitUntil.Completed, "", "me", ""); + Operation operation = await client.DeleteDevBoxAsync(WaitUntil.Completed, "", "", ""); } [Test] [Ignore("Only validating compilation of examples")] public void Example_DeleteDevBox_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Operation operation = client.DeleteDevBox(WaitUntil.Completed, "", "me", ""); + Operation operation = client.DeleteDevBox(WaitUntil.Completed, "", "", ""); } [Test] [Ignore("Only validating compilation of examples")] public async Task Example_DeleteDevBox_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Operation operation = await client.DeleteDevBoxAsync(WaitUntil.Completed, "", "me", ""); + Operation operation = await client.DeleteDevBoxAsync(WaitUntil.Completed, "", "", ""); } [Test] [Ignore("Only validating compilation of examples")] public void Example_StartDevBox_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Operation operation = client.StartDevBox(WaitUntil.Completed, "", "me", ""); + Operation operation = client.StartDevBox(WaitUntil.Completed, "", "", "", null); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -1369,11 +1391,11 @@ public void Example_StartDevBox_ShortVersion() [Ignore("Only validating compilation of examples")] public async Task Example_StartDevBox_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Operation operation = await client.StartDevBoxAsync(WaitUntil.Completed, "", "me", ""); + Operation operation = await client.StartDevBoxAsync(WaitUntil.Completed, "", "", "", null); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -1384,11 +1406,11 @@ public async Task Example_StartDevBox_ShortVersion_Async() [Ignore("Only validating compilation of examples")] public void Example_StartDevBox_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Operation operation = client.StartDevBox(WaitUntil.Completed, "", "me", ""); + Operation operation = client.StartDevBox(WaitUntil.Completed, "", "", "", null); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -1408,11 +1430,11 @@ public void Example_StartDevBox_AllParameters() [Ignore("Only validating compilation of examples")] public async Task Example_StartDevBox_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Operation operation = await client.StartDevBoxAsync(WaitUntil.Completed, "", "me", ""); + Operation operation = await client.StartDevBoxAsync(WaitUntil.Completed, "", "", "", null); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -1432,11 +1454,11 @@ public async Task Example_StartDevBox_AllParameters_Async() [Ignore("Only validating compilation of examples")] public void Example_StopDevBox_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Operation operation = client.StopDevBox(WaitUntil.Completed, "", "me", ""); + Operation operation = client.StopDevBox(WaitUntil.Completed, "", "", "", null, null); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -1447,11 +1469,11 @@ public void Example_StopDevBox_ShortVersion() [Ignore("Only validating compilation of examples")] public async Task Example_StopDevBox_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Operation operation = await client.StopDevBoxAsync(WaitUntil.Completed, "", "me", ""); + Operation operation = await client.StopDevBoxAsync(WaitUntil.Completed, "", "", "", null, null); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -1462,11 +1484,11 @@ public async Task Example_StopDevBox_ShortVersion_Async() [Ignore("Only validating compilation of examples")] public void Example_StopDevBox_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Operation operation = client.StopDevBox(WaitUntil.Completed, "", "me", "", hibernate: true); + Operation operation = client.StopDevBox(WaitUntil.Completed, "", "", "", true, null); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -1486,11 +1508,11 @@ public void Example_StopDevBox_AllParameters() [Ignore("Only validating compilation of examples")] public async Task Example_StopDevBox_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Operation operation = await client.StopDevBoxAsync(WaitUntil.Completed, "", "me", "", hibernate: true); + Operation operation = await client.StopDevBoxAsync(WaitUntil.Completed, "", "", "", true, null); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -1510,11 +1532,11 @@ public async Task Example_StopDevBox_AllParameters_Async() [Ignore("Only validating compilation of examples")] public void Example_RestartDevBox_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Operation operation = client.RestartDevBox(WaitUntil.Completed, "", "me", ""); + Operation operation = client.RestartDevBox(WaitUntil.Completed, "", "", "", null); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -1525,11 +1547,11 @@ public void Example_RestartDevBox_ShortVersion() [Ignore("Only validating compilation of examples")] public async Task Example_RestartDevBox_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Operation operation = await client.RestartDevBoxAsync(WaitUntil.Completed, "", "me", ""); + Operation operation = await client.RestartDevBoxAsync(WaitUntil.Completed, "", "", "", null); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -1540,11 +1562,11 @@ public async Task Example_RestartDevBox_ShortVersion_Async() [Ignore("Only validating compilation of examples")] public void Example_RestartDevBox_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Operation operation = client.RestartDevBox(WaitUntil.Completed, "", "me", ""); + Operation operation = client.RestartDevBox(WaitUntil.Completed, "", "", "", null); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; @@ -1564,11 +1586,11 @@ public void Example_RestartDevBox_AllParameters() [Ignore("Only validating compilation of examples")] public async Task Example_RestartDevBox_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Operation operation = await client.RestartDevBoxAsync(WaitUntil.Completed, "", "me", ""); + Operation operation = await client.RestartDevBoxAsync(WaitUntil.Completed, "", "", "", null); BinaryData responseData = operation.Value; JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; diff --git a/sdk/devcenter/Azure.Developer.DevCenter/tests/Generated/Samples/Samples_DevCenterClient.cs b/sdk/devcenter/Azure.Developer.DevCenter/tests/Generated/Samples/Samples_DevCenterClient.cs index 8c9c301a7450..b9133f85f9cf 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/tests/Generated/Samples/Samples_DevCenterClient.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/tests/Generated/Samples/Samples_DevCenterClient.cs @@ -22,11 +22,11 @@ public partial class Samples_DevCenterClient [Ignore("Only validating compilation of examples")] public void Example_GetProject_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevCenterClient client = new DevCenterClient(endpoint, credential); - Response response = client.GetProject(""); + Response response = client.GetProject("", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -36,11 +36,11 @@ public void Example_GetProject_ShortVersion() [Ignore("Only validating compilation of examples")] public async Task Example_GetProject_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevCenterClient client = new DevCenterClient(endpoint, credential); - Response response = await client.GetProjectAsync(""); + Response response = await client.GetProjectAsync("", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -50,11 +50,11 @@ public async Task Example_GetProject_ShortVersion_Async() [Ignore("Only validating compilation of examples")] public void Example_GetProject_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevCenterClient client = new DevCenterClient(endpoint, credential); - Response response = client.GetProject(""); + Response response = client.GetProject("", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -66,11 +66,11 @@ public void Example_GetProject_AllParameters() [Ignore("Only validating compilation of examples")] public async Task Example_GetProject_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevCenterClient client = new DevCenterClient(endpoint, credential); - Response response = await client.GetProjectAsync(""); + Response response = await client.GetProjectAsync("", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -82,11 +82,11 @@ public async Task Example_GetProject_AllParameters_Async() [Ignore("Only validating compilation of examples")] public void Example_GetProjects_ShortVersion() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevCenterClient client = new DevCenterClient(endpoint, credential); - foreach (BinaryData item in client.GetProjects()) + foreach (BinaryData item in client.GetProjects(null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -97,11 +97,11 @@ public void Example_GetProjects_ShortVersion() [Ignore("Only validating compilation of examples")] public async Task Example_GetProjects_ShortVersion_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevCenterClient client = new DevCenterClient(endpoint, credential); - await foreach (BinaryData item in client.GetProjectsAsync()) + await foreach (BinaryData item in client.GetProjectsAsync(null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -112,11 +112,11 @@ public async Task Example_GetProjects_ShortVersion_Async() [Ignore("Only validating compilation of examples")] public void Example_GetProjects_AllParameters() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevCenterClient client = new DevCenterClient(endpoint, credential); - foreach (BinaryData item in client.GetProjects(filter: "", maxCount: 1234)) + foreach (BinaryData item in client.GetProjects("", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -129,11 +129,11 @@ public void Example_GetProjects_AllParameters() [Ignore("Only validating compilation of examples")] public async Task Example_GetProjects_AllParameters_Async() { - Uri endpoint = new Uri(""); + Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); DevCenterClient client = new DevCenterClient(endpoint, credential); - await foreach (BinaryData item in client.GetProjectsAsync(filter: "", maxCount: 1234)) + await foreach (BinaryData item in client.GetProjectsAsync("", 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); diff --git a/sdk/devcenter/Azure.Developer.DevCenter/tests/Samples/Sample_CreateDeleteDevBoxAsync.cs b/sdk/devcenter/Azure.Developer.DevCenter/tests/Samples/Sample_CreateDeleteDevBoxAsync.cs index a4b6782d4e52..2ddc583b4bb8 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/tests/Samples/Sample_CreateDeleteDevBoxAsync.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/tests/Samples/Sample_CreateDeleteDevBoxAsync.cs @@ -19,7 +19,7 @@ public async Task CreateDeleteDevBoxAsync(Uri endpoint) #region Snippet:Azure_DevCenter_GetProjects_Scenario string targetProjectName = null; - await foreach (BinaryData data in devCenterClient.GetProjectsAsync()) + await foreach (BinaryData data in devCenterClient.GetProjectsAsync(null, null, null)) { JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement; targetProjectName = result.GetProperty("name").ToString(); @@ -37,7 +37,7 @@ public async Task CreateDeleteDevBoxAsync(Uri endpoint) // Grab a pool #region Snippet:Azure_DevCenter_GetPools_Scenario string targetPoolName = null; - await foreach (BinaryData data in devBoxesClient.GetPoolsAsync(targetProjectName)) + await foreach (BinaryData data in devBoxesClient.GetPoolsAsync(targetProjectName, null, null, null)) { JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement; targetPoolName = result.GetProperty("name").ToString(); @@ -73,7 +73,8 @@ public async Task CreateDeleteDevBoxAsync(Uri endpoint) Response remoteConnectionResponse = await devBoxesClient.GetRemoteConnectionAsync( targetProjectName, "me", - "MyDevBox"); + "MyDevBox", + null); JsonElement remoteConnectionData = JsonDocument.Parse(remoteConnectionResponse.ContentStream).RootElement; Console.WriteLine($"Connect using web URL {remoteConnectionData.GetProperty("webUrl")}."); #endregion diff --git a/sdk/devcenter/Azure.Developer.DevCenter/tests/Samples/Sample_CreateDeleteEnvironmentAsync.cs b/sdk/devcenter/Azure.Developer.DevCenter/tests/Samples/Sample_CreateDeleteEnvironmentAsync.cs index a917ee057b94..ce7be105d2ad 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/tests/Samples/Sample_CreateDeleteEnvironmentAsync.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/tests/Samples/Sample_CreateDeleteEnvironmentAsync.cs @@ -17,7 +17,7 @@ public async Task CreateDeleteEnvironmentAsync(Uri endpoint) var credential = new DefaultAzureCredential(); var devCenterClient = new DevCenterClient(endpoint, credential); string projectName = null; - await foreach (BinaryData data in devCenterClient.GetProjectsAsync()) + await foreach (BinaryData data in devCenterClient.GetProjectsAsync(null, null, null)) { JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement; projectName = result.GetProperty("name").ToString(); @@ -34,7 +34,7 @@ public async Task CreateDeleteEnvironmentAsync(Uri endpoint) #region Snippet:Azure_DevCenter_GetCatalogs_Scenario string catalogName = null; - await foreach (BinaryData data in environmentsClient.GetCatalogsAsync(projectName)) + await foreach (BinaryData data in environmentsClient.GetCatalogsAsync(projectName, null, null)) { JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement; catalogName = result.GetProperty("name").ToString(); @@ -62,7 +62,7 @@ public async Task CreateDeleteEnvironmentAsync(Uri endpoint) #region Snippet:Azure_DevCenter_GetEnvironmentTypes_Scenario string environmentTypeName = null; - await foreach (BinaryData data in environmentsClient.GetEnvironmentTypesAsync(projectName)) + await foreach (BinaryData data in environmentsClient.GetEnvironmentTypesAsync(projectName, null, null)) { JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement; environmentTypeName = result.GetProperty("name").ToString(); diff --git a/sdk/devcenter/Azure.Developer.DevCenter/tsp-location.yaml b/sdk/devcenter/Azure.Developer.DevCenter/tsp-location.yaml new file mode 100644 index 000000000000..45003093712e --- /dev/null +++ b/sdk/devcenter/Azure.Developer.DevCenter/tsp-location.yaml @@ -0,0 +1,4 @@ +directory: specification/devcenter/DevCenter +commit: 6c25bc297c82624cfcbc7758580bcad118e6ffb6 +repo: Azure/azure-rest-api-specs +cleanup: true