diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index f65af91cafc5..ee2d460dff8b 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -176,7 +176,7 @@ All should have PrivateAssets="All" set so they don't become package dependencies --> - + diff --git a/eng/emitter-package.json b/eng/emitter-package.json index 343fc5dc31c8..310193baebde 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -1,6 +1,6 @@ { "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-csharp": "0.2.0-beta.20231009.1" + "@azure-tools/typespec-csharp": "0.2.0-alpha.20231010.6" } } diff --git a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DeploymentEnvironmentsClient.cs b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DeploymentEnvironmentsClient.cs index 45e29f704ed7..ee8ef9064e0b 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DeploymentEnvironmentsClient.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DeploymentEnvironmentsClient.cs @@ -727,7 +727,7 @@ public virtual Operation CreateOrUpdateEnvironment(WaitUntil waitUnt /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual async Task> DeleteEnvironmentAsync(WaitUntil waitUntil, string projectName, string userId, string environmentName, RequestContext context = null) + public virtual async Task DeleteEnvironmentAsync(WaitUntil waitUntil, string projectName, string userId, string environmentName, RequestContext context = null) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(userId, nameof(userId)); @@ -738,7 +738,7 @@ public virtual async Task> DeleteEnvironmentAsync(WaitUnti try { using HttpMessage message = CreateDeleteEnvironmentRequest(projectName, userId, environmentName, context); - return await ProtocolOperationHelpers.ProcessMessageAsync(_pipeline, message, ClientDiagnostics, "DeploymentEnvironmentsClient.DeleteEnvironment", OperationFinalStateVia.Location, context, waitUntil).ConfigureAwait(false); + return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "DeploymentEnvironmentsClient.DeleteEnvironment", OperationFinalStateVia.Location, context, waitUntil).ConfigureAwait(false); } catch (Exception e) { @@ -767,7 +767,7 @@ public virtual async Task> DeleteEnvironmentAsync(WaitUnti /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual Operation DeleteEnvironment(WaitUntil waitUntil, string projectName, string userId, string environmentName, RequestContext context = null) + public virtual Operation DeleteEnvironment(WaitUntil waitUntil, string projectName, string userId, string environmentName, RequestContext context = null) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(userId, nameof(userId)); @@ -778,7 +778,7 @@ public virtual Operation DeleteEnvironment(WaitUntil waitUntil, stri try { using HttpMessage message = CreateDeleteEnvironmentRequest(projectName, userId, environmentName, context); - return ProtocolOperationHelpers.ProcessMessage(_pipeline, message, ClientDiagnostics, "DeploymentEnvironmentsClient.DeleteEnvironment", OperationFinalStateVia.Location, context, waitUntil); + return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "DeploymentEnvironmentsClient.DeleteEnvironment", OperationFinalStateVia.Location, 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 cd32b90fe447..234a72573dbf 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DevBoxesClient.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DevBoxesClient.cs @@ -1121,7 +1121,7 @@ public virtual Operation CreateDevBox(WaitUntil waitUntil, string pr /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual async Task> DeleteDevBoxAsync(WaitUntil waitUntil, string projectName, string userId, string devBoxName, RequestContext context = null) + public virtual async Task DeleteDevBoxAsync(WaitUntil waitUntil, string projectName, string userId, string devBoxName, RequestContext context = null) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(userId, nameof(userId)); @@ -1132,7 +1132,7 @@ public virtual async Task> DeleteDevBoxAsync(WaitUntil wai try { using HttpMessage message = CreateDeleteDevBoxRequest(projectName, userId, devBoxName, context); - return await ProtocolOperationHelpers.ProcessMessageAsync(_pipeline, message, ClientDiagnostics, "DevBoxesClient.DeleteDevBox", OperationFinalStateVia.Location, context, waitUntil).ConfigureAwait(false); + return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "DevBoxesClient.DeleteDevBox", OperationFinalStateVia.Location, context, waitUntil).ConfigureAwait(false); } catch (Exception e) { @@ -1161,7 +1161,7 @@ public virtual async Task> DeleteDevBoxAsync(WaitUntil wai /// Service returned a non-success status code. /// The representing an asynchronous operation on the service. /// - public virtual Operation DeleteDevBox(WaitUntil waitUntil, string projectName, string userId, string devBoxName, RequestContext context = null) + public virtual Operation DeleteDevBox(WaitUntil waitUntil, string projectName, string userId, string devBoxName, RequestContext context = null) { Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNullOrEmpty(userId, nameof(userId)); @@ -1172,7 +1172,7 @@ public virtual Operation DeleteDevBox(WaitUntil waitUntil, string pr try { using HttpMessage message = CreateDeleteDevBoxRequest(projectName, userId, devBoxName, context); - return ProtocolOperationHelpers.ProcessMessage(_pipeline, message, ClientDiagnostics, "DevBoxesClient.DeleteDevBox", OperationFinalStateVia.Location, context, waitUntil); + return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "DevBoxesClient.DeleteDevBox", OperationFinalStateVia.Location, context, waitUntil); } catch (Exception e) { 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 b69a9d918ef8..1633e89acb28 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/Docs/DeploymentEnvironmentsClient.xml +++ b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/Docs/DeploymentEnvironmentsClient.xml @@ -751,74 +751,40 @@ Console.WriteLine(result.GetProperty("parameters").ToString()); -This sample shows how to call DeleteEnvironmentAsync and parse the result. +This sample shows how to call DeleteEnvironmentAsync. "); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -Operation operation = await client.DeleteEnvironmentAsync(WaitUntil.Completed, "", "me", ""); -BinaryData responseData = operation.Value; - -JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; -Console.WriteLine(result.GetProperty("status").ToString()); +Operation operation = await client.DeleteEnvironmentAsync(WaitUntil.Completed, "", "me", ""); ]]> -This sample shows how to call DeleteEnvironmentAsync with all parameters and parse the result. +This sample shows how to call DeleteEnvironmentAsync with all parameters. "); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -Operation operation = await client.DeleteEnvironmentAsync(WaitUntil.Completed, "", "me", ""); -BinaryData responseData = operation.Value; - -JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; -Console.WriteLine(result.GetProperty("id").ToString()); -Console.WriteLine(result.GetProperty("name").ToString()); -Console.WriteLine(result.GetProperty("status").ToString()); -Console.WriteLine(result.GetProperty("resourceId").ToString()); -Console.WriteLine(result.GetProperty("startTime").ToString()); -Console.WriteLine(result.GetProperty("endTime").ToString()); -Console.WriteLine(result.GetProperty("percentComplete").ToString()); -Console.WriteLine(result.GetProperty("properties").ToString()); -Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); +Operation operation = await client.DeleteEnvironmentAsync(WaitUntil.Completed, "", "me", ""); ]]> -This sample shows how to call DeleteEnvironment and parse the result. +This sample shows how to call DeleteEnvironment. "); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -Operation operation = client.DeleteEnvironment(WaitUntil.Completed, "", "me", ""); -BinaryData responseData = operation.Value; - -JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; -Console.WriteLine(result.GetProperty("status").ToString()); +Operation operation = client.DeleteEnvironment(WaitUntil.Completed, "", "me", ""); ]]> -This sample shows how to call DeleteEnvironment with all parameters and parse the result. +This sample shows how to call DeleteEnvironment with all parameters. "); TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); -Operation operation = client.DeleteEnvironment(WaitUntil.Completed, "", "me", ""); -BinaryData responseData = operation.Value; - -JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; -Console.WriteLine(result.GetProperty("id").ToString()); -Console.WriteLine(result.GetProperty("name").ToString()); -Console.WriteLine(result.GetProperty("status").ToString()); -Console.WriteLine(result.GetProperty("resourceId").ToString()); -Console.WriteLine(result.GetProperty("startTime").ToString()); -Console.WriteLine(result.GetProperty("endTime").ToString()); -Console.WriteLine(result.GetProperty("percentComplete").ToString()); -Console.WriteLine(result.GetProperty("properties").ToString()); -Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); +Operation operation = client.DeleteEnvironment(WaitUntil.Completed, "", "me", ""); ]]> 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 1bfc0e684d08..c8409a1a6875 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/Docs/DevBoxesClient.xml +++ b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/Docs/DevBoxesClient.xml @@ -1201,74 +1201,40 @@ Console.WriteLine(result.GetProperty("localAdministrator").ToString()); -This sample shows how to call DeleteDevBoxAsync and parse the result. +This sample shows how to call DeleteDevBoxAsync. "); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Operation operation = await client.DeleteDevBoxAsync(WaitUntil.Completed, "", "me", ""); -BinaryData responseData = operation.Value; - -JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; -Console.WriteLine(result.GetProperty("status").ToString()); +Operation operation = await client.DeleteDevBoxAsync(WaitUntil.Completed, "", "me", ""); ]]> -This sample shows how to call DeleteDevBoxAsync with all parameters and parse the result. +This sample shows how to call DeleteDevBoxAsync with all parameters. "); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Operation operation = await client.DeleteDevBoxAsync(WaitUntil.Completed, "", "me", ""); -BinaryData responseData = operation.Value; - -JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; -Console.WriteLine(result.GetProperty("id").ToString()); -Console.WriteLine(result.GetProperty("name").ToString()); -Console.WriteLine(result.GetProperty("status").ToString()); -Console.WriteLine(result.GetProperty("resourceId").ToString()); -Console.WriteLine(result.GetProperty("startTime").ToString()); -Console.WriteLine(result.GetProperty("endTime").ToString()); -Console.WriteLine(result.GetProperty("percentComplete").ToString()); -Console.WriteLine(result.GetProperty("properties").ToString()); -Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); +Operation operation = await client.DeleteDevBoxAsync(WaitUntil.Completed, "", "me", ""); ]]> -This sample shows how to call DeleteDevBox and parse the result. +This sample shows how to call DeleteDevBox. "); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Operation operation = client.DeleteDevBox(WaitUntil.Completed, "", "me", ""); -BinaryData responseData = operation.Value; - -JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; -Console.WriteLine(result.GetProperty("status").ToString()); +Operation operation = client.DeleteDevBox(WaitUntil.Completed, "", "me", ""); ]]> -This sample shows how to call DeleteDevBox with all parameters and parse the result. +This sample shows how to call DeleteDevBox with all parameters. "); TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); -Operation operation = client.DeleteDevBox(WaitUntil.Completed, "", "me", ""); -BinaryData responseData = operation.Value; - -JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; -Console.WriteLine(result.GetProperty("id").ToString()); -Console.WriteLine(result.GetProperty("name").ToString()); -Console.WriteLine(result.GetProperty("status").ToString()); -Console.WriteLine(result.GetProperty("resourceId").ToString()); -Console.WriteLine(result.GetProperty("startTime").ToString()); -Console.WriteLine(result.GetProperty("endTime").ToString()); -Console.WriteLine(result.GetProperty("percentComplete").ToString()); -Console.WriteLine(result.GetProperty("properties").ToString()); -Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); +Operation operation = client.DeleteDevBox(WaitUntil.Completed, "", "me", ""); ]]> 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 46a011a3fa19..3b886e3b82b3 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 @@ -834,11 +834,7 @@ public void Example_DeleteEnvironment_ShortVersion() TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - Operation operation = client.DeleteEnvironment(WaitUntil.Completed, "", "me", ""); - BinaryData responseData = operation.Value; - - JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("status").ToString()); + Operation operation = client.DeleteEnvironment(WaitUntil.Completed, "", "me", ""); } [Test] @@ -849,11 +845,7 @@ public async Task Example_DeleteEnvironment_ShortVersion_Async() TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - Operation operation = await client.DeleteEnvironmentAsync(WaitUntil.Completed, "", "me", ""); - BinaryData responseData = operation.Value; - - JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("status").ToString()); + Operation operation = await client.DeleteEnvironmentAsync(WaitUntil.Completed, "", "me", ""); } [Test] @@ -864,20 +856,7 @@ public void Example_DeleteEnvironment_AllParameters() TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - Operation operation = client.DeleteEnvironment(WaitUntil.Completed, "", "me", ""); - BinaryData responseData = operation.Value; - - JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("id").ToString()); - Console.WriteLine(result.GetProperty("name").ToString()); - Console.WriteLine(result.GetProperty("status").ToString()); - Console.WriteLine(result.GetProperty("resourceId").ToString()); - Console.WriteLine(result.GetProperty("startTime").ToString()); - Console.WriteLine(result.GetProperty("endTime").ToString()); - Console.WriteLine(result.GetProperty("percentComplete").ToString()); - Console.WriteLine(result.GetProperty("properties").ToString()); - Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); + Operation operation = client.DeleteEnvironment(WaitUntil.Completed, "", "me", ""); } [Test] @@ -888,20 +867,7 @@ public async Task Example_DeleteEnvironment_AllParameters_Async() TokenCredential credential = new DefaultAzureCredential(); DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential); - Operation operation = await client.DeleteEnvironmentAsync(WaitUntil.Completed, "", "me", ""); - BinaryData responseData = operation.Value; - - JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("id").ToString()); - Console.WriteLine(result.GetProperty("name").ToString()); - Console.WriteLine(result.GetProperty("status").ToString()); - Console.WriteLine(result.GetProperty("resourceId").ToString()); - Console.WriteLine(result.GetProperty("startTime").ToString()); - Console.WriteLine(result.GetProperty("endTime").ToString()); - Console.WriteLine(result.GetProperty("percentComplete").ToString()); - Console.WriteLine(result.GetProperty("properties").ToString()); - Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); + Operation operation = await client.DeleteEnvironmentAsync(WaitUntil.Completed, "", "me", ""); } } } 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 f90303ff7bd9..791e085dc799 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 @@ -1314,11 +1314,7 @@ public void Example_DeleteDevBox_ShortVersion() TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Operation operation = client.DeleteDevBox(WaitUntil.Completed, "", "me", ""); - BinaryData responseData = operation.Value; - - JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("status").ToString()); + Operation operation = client.DeleteDevBox(WaitUntil.Completed, "", "me", ""); } [Test] @@ -1329,11 +1325,7 @@ public async Task Example_DeleteDevBox_ShortVersion_Async() TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Operation operation = await client.DeleteDevBoxAsync(WaitUntil.Completed, "", "me", ""); - BinaryData responseData = operation.Value; - - JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("status").ToString()); + Operation operation = await client.DeleteDevBoxAsync(WaitUntil.Completed, "", "me", ""); } [Test] @@ -1344,20 +1336,7 @@ public void Example_DeleteDevBox_AllParameters() TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Operation operation = client.DeleteDevBox(WaitUntil.Completed, "", "me", ""); - BinaryData responseData = operation.Value; - - JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("id").ToString()); - Console.WriteLine(result.GetProperty("name").ToString()); - Console.WriteLine(result.GetProperty("status").ToString()); - Console.WriteLine(result.GetProperty("resourceId").ToString()); - Console.WriteLine(result.GetProperty("startTime").ToString()); - Console.WriteLine(result.GetProperty("endTime").ToString()); - Console.WriteLine(result.GetProperty("percentComplete").ToString()); - Console.WriteLine(result.GetProperty("properties").ToString()); - Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); + Operation operation = client.DeleteDevBox(WaitUntil.Completed, "", "me", ""); } [Test] @@ -1368,20 +1347,7 @@ public async Task Example_DeleteDevBox_AllParameters_Async() TokenCredential credential = new DefaultAzureCredential(); DevBoxesClient client = new DevBoxesClient(endpoint, credential); - Operation operation = await client.DeleteDevBoxAsync(WaitUntil.Completed, "", "me", ""); - BinaryData responseData = operation.Value; - - JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("id").ToString()); - Console.WriteLine(result.GetProperty("name").ToString()); - Console.WriteLine(result.GetProperty("status").ToString()); - Console.WriteLine(result.GetProperty("resourceId").ToString()); - Console.WriteLine(result.GetProperty("startTime").ToString()); - Console.WriteLine(result.GetProperty("endTime").ToString()); - Console.WriteLine(result.GetProperty("percentComplete").ToString()); - Console.WriteLine(result.GetProperty("properties").ToString()); - Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString()); + Operation operation = await client.DeleteDevBoxAsync(WaitUntil.Completed, "", "me", ""); } [Test] diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/CancerProfilingClient.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/CancerProfilingClient.cs index 368a01f697a4..ec81d0227129 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/CancerProfilingClient.cs +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/CancerProfilingClient.cs @@ -126,7 +126,7 @@ public virtual async Task> InferCancerProfileAsync(WaitUnt try { using HttpMessage message = CreateInferCancerProfileRequest(content, context); - return await ProtocolOperationHelpers.ProcessMessageAsync(_pipeline, message, ClientDiagnostics, "CancerProfilingClient.InferCancerProfile", OperationFinalStateVia.Location, context, waitUntil).ConfigureAwait(false); + return await ProtocolOperationHelpers.ProcessMessageAsync(_pipeline, message, ClientDiagnostics, "CancerProfilingClient.InferCancerProfile", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); } catch (Exception e) { @@ -166,7 +166,7 @@ public virtual Operation InferCancerProfile(WaitUntil waitUntil, Req try { using HttpMessage message = CreateInferCancerProfileRequest(content, context); - return ProtocolOperationHelpers.ProcessMessage(_pipeline, message, ClientDiagnostics, "CancerProfilingClient.InferCancerProfile", OperationFinalStateVia.Location, context, waitUntil); + return ProtocolOperationHelpers.ProcessMessage(_pipeline, message, ClientDiagnostics, "CancerProfilingClient.InferCancerProfile", OperationFinalStateVia.OperationLocation, context, waitUntil); } catch (Exception e) { diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalMatchingClient.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalMatchingClient.cs index 531050542978..3358d415f7e3 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalMatchingClient.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalMatchingClient.cs @@ -126,7 +126,7 @@ public virtual async Task> MatchTrialsAsync(WaitUntil wait try { using HttpMessage message = CreateMatchTrialsRequest(content, context); - return await ProtocolOperationHelpers.ProcessMessageAsync(_pipeline, message, ClientDiagnostics, "ClinicalMatchingClient.MatchTrials", OperationFinalStateVia.Location, context, waitUntil).ConfigureAwait(false); + return await ProtocolOperationHelpers.ProcessMessageAsync(_pipeline, message, ClientDiagnostics, "ClinicalMatchingClient.MatchTrials", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); } catch (Exception e) { @@ -166,7 +166,7 @@ public virtual Operation MatchTrials(WaitUntil waitUntil, RequestCon try { using HttpMessage message = CreateMatchTrialsRequest(content, context); - return ProtocolOperationHelpers.ProcessMessage(_pipeline, message, ClientDiagnostics, "ClinicalMatchingClient.MatchTrials", OperationFinalStateVia.Location, context, waitUntil); + return ProtocolOperationHelpers.ProcessMessage(_pipeline, message, ClientDiagnostics, "ClinicalMatchingClient.MatchTrials", OperationFinalStateVia.OperationLocation, context, waitUntil); } catch (Exception e) { diff --git a/sdk/openai/Azure.AI.OpenAI/src/Generated/OpenAIClient.cs b/sdk/openai/Azure.AI.OpenAI/src/Generated/OpenAIClient.cs index e104ca9fd681..9a5fee3ef669 100644 --- a/sdk/openai/Azure.AI.OpenAI/src/Generated/OpenAIClient.cs +++ b/sdk/openai/Azure.AI.OpenAI/src/Generated/OpenAIClient.cs @@ -42,14 +42,14 @@ protected OpenAIClient() /// Represents the request data used to generate images. /// The cancellation token to use. /// is null. - internal virtual async Task> BeginAzureBatchImageGenerationAsync(WaitUntil waitUntil, ImageGenerationOptions imageGenerationOptions, CancellationToken cancellationToken = default) + internal virtual async Task> BeginAzureBatchImageGenerationAsync(WaitUntil waitUntil, ImageGenerationOptions imageGenerationOptions, CancellationToken cancellationToken = default) { Argument.AssertNotNull(imageGenerationOptions, nameof(imageGenerationOptions)); RequestContext context = FromCancellationToken(cancellationToken); using RequestContent content = imageGenerationOptions.ToRequestContent(); Operation response = await BeginAzureBatchImageGenerationAsync(waitUntil, content, context).ConfigureAwait(false); - return ProtocolOperationHelpers.Convert(response, BatchImageGenerationOperationResponse.FromResponse, ClientDiagnostics, "OpenAIClient.BeginAzureBatchImageGeneration"); + return ProtocolOperationHelpers.Convert(response, ImageGenerations.FromResponse, ClientDiagnostics, "OpenAIClient.BeginAzureBatchImageGeneration"); } /// Starts the generation of a batch of images from a text caption. @@ -57,14 +57,14 @@ internal virtual async Task> Be /// Represents the request data used to generate images. /// The cancellation token to use. /// is null. - internal virtual Operation BeginAzureBatchImageGeneration(WaitUntil waitUntil, ImageGenerationOptions imageGenerationOptions, CancellationToken cancellationToken = default) + internal virtual Operation BeginAzureBatchImageGeneration(WaitUntil waitUntil, ImageGenerationOptions imageGenerationOptions, CancellationToken cancellationToken = default) { Argument.AssertNotNull(imageGenerationOptions, nameof(imageGenerationOptions)); RequestContext context = FromCancellationToken(cancellationToken); using RequestContent content = imageGenerationOptions.ToRequestContent(); Operation response = BeginAzureBatchImageGeneration(waitUntil, content, context); - return ProtocolOperationHelpers.Convert(response, BatchImageGenerationOperationResponse.FromResponse, ClientDiagnostics, "OpenAIClient.BeginAzureBatchImageGeneration"); + return ProtocolOperationHelpers.Convert(response, ImageGenerations.FromResponse, ClientDiagnostics, "OpenAIClient.BeginAzureBatchImageGeneration"); } // The convenience method of this operation is made internal because this operation directly or indirectly uses a low confident type, for instance, unions, literal types with number values, etc. @@ -98,7 +98,7 @@ internal virtual async Task> BeginAzureBatchImageGeneratio try { using HttpMessage message = CreateBeginAzureBatchImageGenerationRequest(content, context); - return await ProtocolOperationHelpers.ProcessMessageAsync(_pipeline, message, ClientDiagnostics, "OpenAIClient.BeginAzureBatchImageGeneration", OperationFinalStateVia.Location, context, waitUntil).ConfigureAwait(false); + return await ProtocolOperationHelpers.ProcessMessageAsync(_pipeline, message, ClientDiagnostics, "OpenAIClient.BeginAzureBatchImageGeneration", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); } catch (Exception e) { @@ -138,7 +138,7 @@ internal virtual Operation BeginAzureBatchImageGeneration(WaitUntil try { using HttpMessage message = CreateBeginAzureBatchImageGenerationRequest(content, context); - return ProtocolOperationHelpers.ProcessMessage(_pipeline, message, ClientDiagnostics, "OpenAIClient.BeginAzureBatchImageGeneration", OperationFinalStateVia.Location, context, waitUntil); + return ProtocolOperationHelpers.ProcessMessage(_pipeline, message, ClientDiagnostics, "OpenAIClient.BeginAzureBatchImageGeneration", OperationFinalStateVia.OperationLocation, context, waitUntil); } catch (Exception e) {