diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index b4ededd39033..d6a3e5a9b9e1 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -187,10 +187,10 @@
# ServiceOwners: @quentinRobinson @bidisha-c
# PRLabel: %Cognitive - Content Safety
-/sdk/contentsafety/ @bowgong @mengaims @JieZhou000
+/sdk/contentsafety/ @bowgong @mengaims
# ServiceLabel: %Cognitive - Content Safety
-# ServiceOwners: @bowgong @mengaims @JieZhou000
+# ServiceOwners: @bowgong @mengaims
# PRLabel: %Cognitive - Custom Vision
/sdk/cognitiveservices/Vision.CustomVision*/ @areddish @tburns10
@@ -261,10 +261,10 @@
# ServiceOwners: @quentinRobinson @bidisha-c
# PRLabel: %Cognitive - Translator
-/sdk/translation/ @mikeymcz @cpoulain @joseharriaga
+/sdk/translation/ @mikeymcz @joseharriaga @vikaspalaskar
# ServiceLabel: %Cognitive - Translator
-# ServiceOwners: @swmachan @mikeymcz @cpoulain
+# ServiceOwners: @swmachan @mikeymcz @vikaspalaskar
# ServiceLabel: %Cognitive - Speech
# ServiceOwners: @robch
@@ -354,10 +354,10 @@
# ServiceOwners: @TravisCragg-MSFT @hilaryw29
# PRLabel: %Confidential Ledger
-/sdk/confidentialledger/ @christothes @PallabPaul
+/sdk/confidentialledger/ @christothes @PallabPaul @amruthashree18
# ServiceLabel: %Confidential Ledger
-# ServiceOwners: @PallabPaul
+# ServiceOwners: @PallabPaul @amruthashree18
# ServiceLabel: %Consumption - Billing
# ServiceOwners: @ccmbpxpcrew
@@ -516,10 +516,10 @@
# ServiceOwners: @serkantkaraca @sjkwak
# PRLabel: %Extension - WCF
-/sdk/extension-wcf/ @mconnew @subhra231
+/sdk/extension-wcf/ @mconnew
# ServiceLabel: %Extension - WCF
-# ServiceOwners: @mconnew @subhra231
+# ServiceOwners: @mconnew
# ServiceLabel: %Functions
# AzureSdkOwners: @JoshLove-msft
@@ -562,10 +562,10 @@
# ServiceOwners: @Azure/azure-iot-cli-triage
# PRLabel: %KeyVault
-/sdk/keyvault/ @heaths @schaabs @JonathanCrd @jsquire @christothes
+/sdk/keyvault/ @schaabs @JonathanCrd @jsquire @christothes
# ServiceLabel: %KeyVault
-# AzureSdkOwners: @heaths
+# AzureSdkOwners: @JonathanCrd
# ServiceOwners: @RandalliLama @jlichwa
# ServiceLabel: %Kubernetes Configuration
@@ -605,9 +605,9 @@
# ServiceOwners: @Lighthouse-Azure
# PRLabel: %Maps
-/sdk/maps/ @dubiety @jecmenicanikola
+/sdk/maps/ @dubiety
# ServiceLabel: %Maps
-# ServiceOwners: @dubiety @jecmenicanikola
+# ServiceOwners: @dubiety
# ServiceLabel: %MariaDB
# ServiceOwners: @ajlam @ambhatna @kummanish
@@ -723,7 +723,7 @@
# ServiceOwners: @netwatchsuppgithub
# PRLabel: %Network - DNS
-/sdk/dns*/ @dnssuppgithub
+/sdk/dns/ @dnssuppgithub
# ServiceLabel: %Network - DNS
# ServiceOwnerS: @dnssuppgithub
@@ -756,10 +756,10 @@
# ServiceOwners: @rhurey @dargilco
# PRLabel: %Microsoft Playwright Testing
-/sdk/playwrighttesting/ @shreyaanand @mjmadhu
+/sdk/playwrighttesting/ @Sid200026 @puagarwa @ShreyaAnand
# ServiceLabel: %Microsoft Playwright Testing
-# ServiceOwners: @shreyaanand @mjmadhu
+# ServiceOwners: @Sid200026 @puagarwa @ShreyaAnand
# ServiceLabel: %Policy
# ServiceOwners: @aperezcloud @kenieva
@@ -771,7 +771,7 @@
# ServiceOwners: @sunilagarwal @lfittl-msft @sr-msft @niklarin
# PRLabel: %Provisioning
-/sdk/provisioning/ @JoshLove-msft @tg-msft
+/sdk/provisioning/ @JoshLove-msft @tg-msft @christothes @KrzysztofCwalina
# ServiceLabel: %Provisioning
# AzureSdkOwners: @JoshLove-msft
@@ -840,10 +840,10 @@
# ServiceOwners: @hmlam
# PRLabel: %SignalR
-/sdk/signalr/ @sffamily @chenkennt @Y-Sindo
+/sdk/signalr/ @chenkennt @vicancy @JialinXin @Y-Sindo
# ServiceLabel: %SignalR
-# ServiceOwners: @sffamily @chenkennt @Y-Sindo
+# ServiceOwners: @chenkennt @vicancy @JialinXin @Y-Sindo
# ServiceLabel: %SQL
# ServiceOwners: @azureSQLGitHub
@@ -967,6 +967,12 @@
# PRLabel: %Communication - Resource Manager
/sdk/communication/Azure.ResourceManager.Communication/ @archerzz @ArcturusZhang @ArthurMa1978
+# PRLael: %Container Orchestrator Runtime
+/sdk/containerorchestratorruntime/Azure.ResourceManager.*/ @HE-Xinyu @ddadaal
+
+# ServiceLabel: %Container Orchestrator Runtime
+# ServiceOwners: @HE-Xinyu @ddadaal
+
# PRLabel: %Device Registry
/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/ @davidemontanari @atastrophic @marcodalessandro @rohankhandelwal @riteshrao
@@ -1015,6 +1021,12 @@
# ServiceLabel: %Network - Mobile %Mgmt
# ServiceOwners: @ArthurMa1978
+# PRLabel: %Network - DNS Private Resolver
+/sdk/dnsresolver/Azure.ResourceManager.*/ @jamesvoongms @jotrivet
+
+# ServiceLabel: %Network - DNS Private Resolver %Mgmt
+# ServiceOwners: @jamesvoongms @jotrivet
+
# PRLabel: %New Relic
/sdk/newrelicobservability/Azure.ResourceManager.*/ @dipeshbhakat-microsoft @vipray-ms
@@ -1052,10 +1064,7 @@
# ServiceOwners: @Daya-Patil
# PRLabel: %Self Help
-/sdk/selfhelp/Azure.ResourceManager.*/ @siddiavinashmsft @archerzz @ArcturusZhang @ArthurMa1978
-
-# ServiceLabel: %Self Help %Mgmt
-# ServiceOwners: @siddiavinashmsft
+/sdk/selfhelp/Azure.ResourceManager.*/ @archerzz @ArcturusZhang @ArthurMa1978
# PRLabel: %Spring App Discovery
/sdk/springappdiscovery/Azure.ResourceManager.*/ @sunkun99 @archerzz @ArcturusZhang @ArthurMa1978
@@ -1064,10 +1073,10 @@
# ServiceOwners: @sunkun99
# PRLabel: %Compute - Fleet
-/sdk/computefleet/ @sahilarora92 @dhruvil009
+/sdk/computefleet/Azure.ResourceManager.*/ @sahilarora92 @dhruvil009 @rahuls-microsoft
-# ServiceLabel: %Compute - Fleet
-# ServiceOwners: @sahilarora92 @dhruvil009
+# ServiceLabel: %Compute - Fleet %Mgmt
+# ServiceOwners: @sahilarora92 @dhruvil009 @rahuls-microsoft
# ######## Eng Sys ########
/eng/ @hallipr @weshaggard @benbp
diff --git a/.github/CODEOWNERS_baseline_errors.txt b/.github/CODEOWNERS_baseline_errors.txt
index 9373092cb567..3854c6f2dd05 100644
--- a/.github/CODEOWNERS_baseline_errors.txt
+++ b/.github/CODEOWNERS_baseline_errors.txt
@@ -253,7 +253,6 @@ EldertGrootenboer is not a public member of Azure.
QingChenmsft is an invalid user. Ensure the user exists, is public member of Azure and has write permissions.
vaishnavk is an invalid user. Ensure the user exists, is public member of Azure and has write permissions.
juhacket is an invalid user. Ensure the user exists, is public member of Azure and has write permissions.
-sffamily is an invalid user. Ensure the user exists, is public member of Azure and has write permissions.
chenkennt is an invalid user. Ensure the user exists, is public member of Azure and has write permissions.
azureSQLGitHub is an invalid user. Ensure the user exists, is public member of Azure and has write permissions.
xgithubtriage is an invalid user. Ensure the user exists, is public member of Azure and has write permissions.
diff --git a/.github/workflows/event-processor.yml b/.github/workflows/event-processor.yml
index 907c0d5a6e9c..32ec1923940d 100644
--- a/.github/workflows/event-processor.yml
+++ b/.github/workflows/event-processor.yml
@@ -87,10 +87,7 @@ jobs:
- name: Process Action Event
run: |
- cat > payload.json << 'EOF'
- ${{ toJson(github.event) }}
- EOF
- github-event-processor ${{ github.event_name }} payload.json
+ github-event-processor ${{ github.event_name }} ${{ github.event_path }}
shell: bash
env:
# This is a temporary secret generated by github
@@ -98,6 +95,13 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LABEL_SERVICE_API_KEY: ${{ env.LABEL_SERVICE_API_KEY }}
+ - name: Archive github event data
+ uses: actions/upload-artifact@v4
+ if: always()
+ with:
+ name: event
+ path: ${{ github.event_path }}
+
event-handler:
permissions:
issues: write
@@ -143,12 +147,16 @@ jobs:
- name: Process Action Event
run: |
- cat > payload.json << 'EOF'
- ${{ toJson(github.event) }}
- EOF
- github-event-processor ${{ github.event_name }} payload.json
+ github-event-processor ${{ github.event_name }} ${{ github.event_path }}
shell: bash
env:
# This is a temporary secret generated by github
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Archive github event data
+ uses: actions/upload-artifact@v4
+ if: always()
+ with:
+ name: event
+ path: ${{ github.event_path }}
diff --git a/.github/workflows/scheduled-event-processor.yml b/.github/workflows/scheduled-event-processor.yml
index 4b5f11322111..d3a01442bef8 100644
--- a/.github/workflows/scheduled-event-processor.yml
+++ b/.github/workflows/scheduled-event-processor.yml
@@ -69,10 +69,7 @@ jobs:
- name: Close Stale Issues Scheduled Event
if: github.event.schedule == '0 1 * * *'
run: |
- cat > payload.json << 'EOF'
- ${{ toJson(github.event) }}
- EOF
- github-event-processor ${{ github.event_name }} payload.json CloseStaleIssues
+ github-event-processor ${{ github.event_name }} ${{ github.event_path }} CloseStaleIssues
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -80,10 +77,7 @@ jobs:
- name: Identify Stale PullRequests Scheduled Event
if: github.event.schedule == '0 5 * * FRI'
run: |
- cat > payload.json << 'EOF'
- ${{ toJson(github.event) }}
- EOF
- github-event-processor ${{ github.event_name }} payload.json IdentifyStalePullRequests
+ github-event-processor ${{ github.event_name }} ${{ github.event_path }} IdentifyStalePullRequests
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -91,10 +85,7 @@ jobs:
- name: Close Stale PullRequests Scheduled Event
if: github.event.schedule == '30 2,8,14,20 * * *'
run: |
- cat > payload.json << 'EOF'
- ${{ toJson(github.event) }}
- EOF
- github-event-processor ${{ github.event_name }} payload.json CloseStalePullRequests
+ github-event-processor ${{ github.event_name }} ${{ github.event_path }} CloseStalePullRequests
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -102,10 +93,7 @@ jobs:
- name: Identify Stale Issues Scheduled Event
if: github.event.schedule == '30 3,9,15,21 * * *'
run: |
- cat > payload.json << 'EOF'
- ${{ toJson(github.event) }}
- EOF
- github-event-processor ${{ github.event_name }} payload.json IdentifyStaleIssues
+ github-event-processor ${{ github.event_name }} ${{ github.event_path }} IdentifyStaleIssues
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -113,10 +101,7 @@ jobs:
- name: Close Addressed Issues Scheduled Event
if: github.event.schedule == '30 4,10,16,22 * * *'
run: |
- cat > payload.json << 'EOF'
- ${{ toJson(github.event) }}
- EOF
- github-event-processor ${{ github.event_name }} payload.json CloseAddressedIssues
+ github-event-processor ${{ github.event_name }} ${{ github.event_path }} CloseAddressedIssues
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -124,10 +109,7 @@ jobs:
- name: Lock Closed Issues Scheduled Event
if: github.event.schedule == '30 5,11,17,23 * * *'
run: |
- cat > payload.json << 'EOF'
- ${{ toJson(github.event) }}
- EOF
- github-event-processor ${{ github.event_name }} payload.json LockClosedIssues
+ github-event-processor ${{ github.event_name }} ${{ github.event_path }} LockClosedIssues
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -135,10 +117,14 @@ jobs:
- name: Enforce Max Life of Issues Scheduled Event
if: github.event.schedule == '0 18 * * 1,3,5'
run: |
- cat > payload.json << 'EOF'
- ${{ toJson(github.event) }}
- EOF
- github-event-processor ${{ github.event_name }} payload.json EnforceMaxLifeOfIssues
+ github-event-processor ${{ github.event_name }} ${{ github.event_path }} EnforceMaxLifeOfIssues
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Archive github event data
+ uses: actions/upload-artifact@v4
+ if: always()
+ with:
+ name: event
+ path: ${{ github.event_path }}
diff --git a/.vscode/cspell.json b/.vscode/cspell.json
index 05e4251aba33..7bedaf27bcc2 100644
--- a/.vscode/cspell.json
+++ b/.vscode/cspell.json
@@ -141,6 +141,7 @@
"referer",
"renormalize",
"retriable",
+ "Servfail",
"setsas",
"signalr",
"signup",
@@ -182,6 +183,12 @@
"warnaserror"
]
},
+ {
+ "filename": "**/sdk/ai/**/*.cs",
+ "words": [
+ "Ubinary"
+ ]
+ },
{
"filename": "**/sdk/analysisservices/**/*.cs",
"words": [
@@ -239,7 +246,8 @@
"nsxt",
"vcenter",
"vcsa",
- "vmotion"
+ "vmotion",
+ "Iscsi"
]
},
{
@@ -253,6 +261,12 @@
"Drtm",
"Hvci"
]
+ },
+ {
+ "filename": "**/sdk/computefleet/**/*.cs",
+ "words": [
+ "Rdma"
+ ]
},
{
"filename": "**/sdk/batch/**/*.cs",
diff --git a/eng/Directory.Build.Common.props b/eng/Directory.Build.Common.props
index 151620649c40..4e676a2414de 100644
--- a/eng/Directory.Build.Common.props
+++ b/eng/Directory.Build.Common.props
@@ -80,10 +80,12 @@
true
- NU1901;NU1902;NU1903;NU1904
+ $(WarningsNotAsErrors);NU1901;NU1902;NU1903
+ $(WarningsNotAsErrors);NU1904
true
true
symbols.nupkg
diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props
index 6f6083dd194a..2898d8ec5886 100644
--- a/eng/Packages.Data.props
+++ b/eng/Packages.Data.props
@@ -86,7 +86,7 @@
-
+
@@ -98,7 +98,7 @@
-
+
@@ -107,7 +107,7 @@
-
+
@@ -115,10 +115,10 @@
-
+
-
+
@@ -141,7 +141,7 @@
-
+
@@ -153,9 +153,9 @@
-
-
-
+
+
+
@@ -178,6 +178,11 @@
+
+
+
+
+
-
+
@@ -238,7 +243,7 @@
-
+
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/AzureClientPlugin.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/AzureClientPlugin.cs
index 84bc3ac98d7e..e1041af28cf0 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/src/AzureClientPlugin.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/AzureClientPlugin.cs
@@ -1,9 +1,12 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
+using Microsoft.CodeAnalysis;
using Microsoft.Generator.CSharp;
using Microsoft.Generator.CSharp.ClientModel;
using System;
+using System.ClientModel;
+using System.Collections.Generic;
using System.ComponentModel.Composition;
namespace Azure.Generator;
@@ -37,6 +40,8 @@ public AzureClientPlugin(GeneratorContext context) : base(context)
///
public override void Configure()
{
+ base.Configure();
+ AddMetadataReference(MetadataReference.CreateFromFile(typeof(Response).Assembly.Location));
}
///
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/AzureTypeFactory.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/AzureTypeFactory.cs
index 662f9bea97ae..eccaceae0eb3 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/src/AzureTypeFactory.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/AzureTypeFactory.cs
@@ -1,8 +1,12 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
+using Azure.Core;
using Azure.Generator.Primitives;
+using Azure.Generator.Providers;
+using Azure.Generator.Providers.Abstraction;
using Microsoft.Generator.CSharp.ClientModel;
+using Microsoft.Generator.CSharp.ClientModel.Providers;
using Microsoft.Generator.CSharp.Input;
using Microsoft.Generator.CSharp.Primitives;
@@ -11,6 +15,33 @@ namespace Azure.Generator
///
public class AzureTypeFactory : ScmTypeFactory
{
+ ///
+ public override CSharpType ClientUriBuilderBaseType => typeof(RequestUriBuilder);
+
+ ///
+ public override IClientResponseApi ClientResponseApi => AzureClientResponseProvider.Instance;
+
+ ///
+ public override IHttpResponseApi HttpResponseApi => AzureResponseProvider.Instance;
+
+ ///
+ public override IClientPipelineApi ClientPipelineApi => HttpPipelineProvider.Instance;
+
+ ///
+ public override IHttpMessageApi HttpMessageApi => HttpMessageProvider.Instance;
+
+ ///
+ public override IExpressionApi HttpRequestApi => HttpRequestProvider.Instance;
+
+ ///
+ public override IStatusCodeClassifierApi StatusCodeClassifierApi => StatusCodeClassifierProvider.Instance;
+
+ ///
+ public override IRequestContentApi RequestContentApi => RequestContentProvider.Instance;
+
+ ///
+ public override IHttpRequestOptionsApi HttpRequestOptionsApi => HttpRequestOptionsProvider.Instance;
+
///
protected override CSharpType? CreateCSharpTypeCore(InputType inputType)
{
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/AzureClientResponseProvider.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/AzureClientResponseProvider.cs
new file mode 100644
index 000000000000..a47851a04548
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/AzureClientResponseProvider.cs
@@ -0,0 +1,48 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using Microsoft.Generator.CSharp.ClientModel.Providers;
+using Microsoft.Generator.CSharp.Expressions;
+using Microsoft.Generator.CSharp.Primitives;
+using Microsoft.Generator.CSharp.Snippets;
+using static Microsoft.Generator.CSharp.Snippets.Snippet;
+
+namespace Azure.Generator.Providers
+{
+ internal record AzureClientResponseProvider : ClientResponseApi
+ {
+ private static ClientResponseApi? _instance;
+ internal static ClientResponseApi Instance => _instance ??= new AzureClientResponseProvider(Empty);
+
+ public AzureClientResponseProvider(ValueExpression original) : base(typeof(Response), original)
+ {
+ }
+
+ public override CSharpType ClientResponseType => typeof(Response);
+
+ public override CSharpType ClientResponseOfTType => typeof(Response<>);
+
+ public override CSharpType ClientResponseExceptionType => typeof(RequestFailedException);
+
+ public override ValueExpression CreateAsync(HttpResponseApi response)
+ => New.Instance(ClientResponseExceptionType, [response]);
+
+ public override ClientResponseApi FromExpression(ValueExpression original)
+ => new AzureClientResponseProvider(original);
+
+ public override ValueExpression FromResponse(ValueExpression valueExpression) => valueExpression;
+
+ public override ValueExpression FromValue(ValueExpression valueExpression, HttpResponseApi response)
+ => Static(ClientResponseType).Invoke(nameof(FromValue), [valueExpression, response]);
+
+ public override ValueExpression FromValue(ValueExpression valueExpression, HttpResponseApi response)
+ => Static(ClientResponseType).Invoke(nameof(FromValue), [valueExpression, response], [typeof(ValueType)], false);
+
+ public override HttpResponseApi GetRawResponse()
+ => new AzureResponseProvider(GetRawResponseExpression());
+
+ public override ClientResponseApi ToExpression() => this;
+
+ private ScopedApi GetRawResponseExpression() => Original.As();
+ }
+}
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/AzureResponseProvider.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/AzureResponseProvider.cs
new file mode 100644
index 000000000000..11517a6a7f2e
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/AzureResponseProvider.cs
@@ -0,0 +1,38 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using Microsoft.Generator.CSharp.ClientModel.Providers;
+using Microsoft.Generator.CSharp.Expressions;
+using Microsoft.Generator.CSharp.Primitives;
+using Microsoft.Generator.CSharp.Snippets;
+using System;
+using System.IO;
+
+namespace Azure.Generator.Providers
+{
+ internal record AzureResponseProvider : HttpResponseApi
+ {
+ private static HttpResponseApi? _instance;
+ internal static HttpResponseApi Instance => _instance ??= new AzureResponseProvider(Empty);
+
+ public AzureResponseProvider(ValueExpression original) : base(typeof(Response), original)
+ {
+ }
+
+ public override CSharpType HttpResponseType => typeof(Response);
+
+ public override ScopedApi Content()
+ => Original.Property(nameof(Response.Content)).As();
+
+ public override ScopedApi ContentStream()
+ => Original.Property(nameof(Response.ContentStream)).As();
+
+ public override HttpResponseApi FromExpression(ValueExpression original)
+ => new AzureResponseProvider(original);
+
+ public override ScopedApi IsError()
+ => Original.Property(nameof(Response.IsError)).As();
+
+ public override HttpResponseApi ToExpression() => this;
+ }
+}
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/HttpMessageProvider.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/HttpMessageProvider.cs
new file mode 100644
index 000000000000..43391c5ca039
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/HttpMessageProvider.cs
@@ -0,0 +1,47 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using Azure.Core;
+using Microsoft.Generator.CSharp.ClientModel.Providers;
+using Microsoft.Generator.CSharp.Expressions;
+using Microsoft.Generator.CSharp.Primitives;
+using Microsoft.Generator.CSharp.Statements;
+using static Microsoft.Generator.CSharp.Snippets.Snippet;
+
+namespace Azure.Generator.Providers
+{
+ internal record HttpMessageProvider : HttpMessageApi
+ {
+ private static HttpMessageApi? _instance;
+ internal static HttpMessageApi Instance => _instance ??= new HttpMessageProvider(Empty);
+
+ public HttpMessageProvider(ValueExpression original) : base(typeof(HttpMessage), original)
+ {
+ }
+
+ public override CSharpType HttpMessageType => typeof(HttpMessage);
+
+ public override MethodBodyStatement Apply(ValueExpression options)
+ => MethodBodyStatement.Empty;
+
+ public override ValueExpression BufferResponse()
+ => Original.Property(nameof(HttpMessage.BufferResponse));
+
+ public override MethodBodyStatement[] ExtractResponse()
+ => [Original.Invoke(nameof(HttpMessage.ExtractResponseContent)).Terminate(), Return(Original.Property(nameof(HttpMessage.Response)))];
+
+ public override HttpMessageApi FromExpression(ValueExpression original)
+ => new HttpMessageProvider(original);
+
+ public override HttpRequestApi Request()
+ => new HttpRequestProvider(Original.Property(nameof(HttpMessage.Request)));
+
+ public override HttpResponseApi Response()
+ => new AzureResponseProvider(Original.Property(nameof(HttpMessage.Response)));
+
+ public override ValueExpression ResponseClassifier()
+ => Original.Property(nameof(HttpMessage.ResponseClassifier));
+
+ public override HttpMessageApi ToExpression() => this;
+ }
+}
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/HttpPipelineProvider.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/HttpPipelineProvider.cs
new file mode 100644
index 000000000000..5a1c2e40553c
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/HttpPipelineProvider.cs
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Microsoft.Generator.CSharp.ClientModel.Providers;
+using Microsoft.Generator.CSharp.Expressions;
+using Microsoft.Generator.CSharp.Primitives;
+using static Microsoft.Generator.CSharp.Snippets.Snippet;
+
+namespace Azure.Generator.Providers.Abstraction
+{
+ internal record HttpPipelineProvider : ClientPipelineApi
+ {
+ private static ClientPipelineApi? _instance;
+ internal static ClientPipelineApi Instance => _instance ??= new HttpPipelineProvider(Empty);
+
+ public HttpPipelineProvider(ValueExpression original) : base(typeof(HttpPipeline), original)
+ {
+ }
+
+ public override CSharpType ClientPipelineType => typeof(HttpPipeline);
+
+ public override CSharpType ClientPipelineOptionsType => typeof(ClientOptions);
+
+ public override CSharpType PipelinePolicyType => typeof(HttpPipelinePolicy);
+
+ public override ValueExpression Create(ValueExpression options, ValueExpression perRetryPolicies)
+ => Static(typeof(HttpPipelineBuilder)).Invoke(nameof(HttpPipelineBuilder.Build), [options, perRetryPolicies]);
+
+ public override HttpMessageApi CreateMessage()
+ => new HttpMessageProvider(Original.Invoke(nameof(HttpPipeline.CreateMessage)));
+
+ public override ValueExpression CreateMessage(HttpRequestOptionsApi requestOptions, ValueExpression responseClassifier)
+ => Original.Invoke(nameof(HttpPipeline.CreateMessage), requestOptions, responseClassifier).As();
+
+ public override ClientPipelineApi FromExpression(ValueExpression expression)
+ => new HttpPipelineProvider(expression);
+
+ public override ValueExpression PerRetryPolicy(params ValueExpression[] arguments)
+ => Empty; // TODO: implement with default retry policy for Azure
+
+ public override InvokeMethodExpression Send(HttpMessageApi message)
+ => Original.Invoke(nameof(HttpPipeline.Send), [message, Default]);
+
+ public override InvokeMethodExpression SendAsync(HttpMessageApi message)
+ => Original.Invoke(nameof(HttpPipeline.SendAsync), [message, Default], true);
+
+ public override ClientPipelineApi ToExpression() => this;
+ }
+}
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/HttpRequestOptionsProvider.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/HttpRequestOptionsProvider.cs
new file mode 100644
index 000000000000..5a1240531892
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/HttpRequestOptionsProvider.cs
@@ -0,0 +1,35 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using Microsoft.Generator.CSharp.ClientModel.Providers;
+using Microsoft.Generator.CSharp.Expressions;
+using Microsoft.Generator.CSharp.Primitives;
+using static Microsoft.Generator.CSharp.Snippets.Snippet;
+
+namespace Azure.Generator.Providers.Abstraction
+{
+ internal record HttpRequestOptionsProvider : HttpRequestOptionsApi
+ {
+ private static HttpRequestOptionsApi? _instance;
+ internal static HttpRequestOptionsApi Instance => _instance ??= new HttpRequestOptionsProvider(Empty);
+
+ public HttpRequestOptionsProvider(ValueExpression original) : base(typeof(RequestContext), original)
+ {
+ }
+
+ public override CSharpType HttpRequestOptionsType => typeof(RequestContext);
+
+ public override string ParameterName => "context";
+
+ public override ValueExpression ErrorOptions()
+ => Original.NullConditional().Property(nameof(RequestContext.ErrorOptions));
+
+ public override HttpRequestOptionsApi FromExpression(ValueExpression original)
+ => new HttpRequestOptionsProvider(original);
+
+ public override ValueExpression NoThrow()
+ => FrameworkEnumValue(Azure.ErrorOptions.NoThrow);
+
+ public override HttpRequestOptionsApi ToExpression() => this;
+ }
+}
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/HttpRequestProvider.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/HttpRequestProvider.cs
new file mode 100644
index 000000000000..060ae8050a73
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/HttpRequestProvider.cs
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using Azure.Core;
+using Microsoft.Generator.CSharp.ClientModel.Providers;
+using Microsoft.Generator.CSharp.Expressions;
+using Microsoft.Generator.CSharp.Snippets;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using static Microsoft.Generator.CSharp.Snippets.Snippet;
+
+namespace Azure.Generator.Providers
+{
+ internal record HttpRequestProvider : HttpRequestApi
+ {
+ private static HttpRequestApi? _instance;
+ internal static HttpRequestApi Instance => _instance ??= new HttpRequestProvider(Empty);
+
+ public HttpRequestProvider(ValueExpression original) : base(typeof(Request), original)
+ {
+ }
+
+ public override ValueExpression Content()
+ => Original.Property(nameof(Request.Content));
+
+ public override HttpRequestApi FromExpression(ValueExpression original)
+ => new HttpRequestProvider(original);
+
+ public override InvokeMethodExpression SetHeaders(IReadOnlyList arguments)
+ => Original.Property(nameof(PipelineRequest.Headers)).Invoke(nameof(RequestHeaders.Add), arguments);
+
+ public override AssignmentExpression SetMethod(string httpMethod)
+ => Original.Property(nameof(PipelineRequest.Method)).Assign(New.Instance(typeof(RequestMethod), [Literal(httpMethod)]));
+
+ public override AssignmentExpression SetUri(ValueExpression value)
+ => Original.Property("Uri").Assign(value);
+
+ public override HttpRequestApi ToExpression() => this;
+ }
+}
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/RequestContentProvider.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/RequestContentProvider.cs
new file mode 100644
index 000000000000..8fbd2922aeda
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/RequestContentProvider.cs
@@ -0,0 +1,38 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using Azure.Core;
+using Microsoft.Generator.CSharp.ClientModel.Providers;
+using Microsoft.Generator.CSharp.Expressions;
+using Microsoft.Generator.CSharp.Primitives;
+using Microsoft.Generator.CSharp.Snippets;
+using Microsoft.Generator.CSharp.Statements;
+using System.ClientModel.Primitives;
+using static Microsoft.Generator.CSharp.Snippets.Snippet;
+
+namespace Azure.Generator.Providers
+{
+ internal record RequestContentProvider : RequestContentApi
+ {
+ private static RequestContentApi? _instance;
+ internal static RequestContentApi Instance => _instance ??= new RequestContentProvider(Empty);
+
+ public RequestContentProvider(ValueExpression original) : base(typeof(RequestContent), original)
+ {
+ }
+
+ public override CSharpType RequestContentType => typeof(RequestContent);
+
+ public override RequestContentApi FromExpression(ValueExpression original)
+ => new RequestContentProvider(original);
+
+ public override RequestContentApi ToExpression() => this;
+
+ public override MethodBodyStatement[] Create(ValueExpression argument)
+ => [
+ Declare("content", New.Instance(), out ScopedApi content),
+ content.Property("JsonWriter").Invoke("WriteObjectValue", [argument, Static().Property("WireOptions").As()]).Terminate(),
+ Return(content)
+ ];
+ }
+}
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/StatusCodeClassifierProvider.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/StatusCodeClassifierProvider.cs
new file mode 100644
index 000000000000..090faa94c332
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/StatusCodeClassifierProvider.cs
@@ -0,0 +1,31 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using Azure.Core;
+using Microsoft.Generator.CSharp.ClientModel.Providers;
+using Microsoft.Generator.CSharp.Expressions;
+using Microsoft.Generator.CSharp.Primitives;
+using static Microsoft.Generator.CSharp.Snippets.Snippet;
+
+namespace Azure.Generator.Providers.Abstraction
+{
+ internal record StatusCodeClassifierProvider : StatusCodeClassifierApi
+ {
+ private static StatusCodeClassifierApi? _instance;
+ internal static StatusCodeClassifierApi Instance => _instance ??= new StatusCodeClassifierProvider(Empty);
+
+ public StatusCodeClassifierProvider(ValueExpression original) : base(typeof(StatusCodeClassifier), original)
+ {
+ }
+
+ public override CSharpType ResponseClassifierType => typeof(ResponseClassifier);
+
+ public override ValueExpression Create(int code)
+ => New.Instance(typeof(StatusCodeClassifier), [New.Array(typeof(ushort), true, true, [Literal(code)])]);
+
+ public override StatusCodeClassifierApi FromExpression(ValueExpression original)
+ => new StatusCodeClassifierProvider(original);
+
+ public override StatusCodeClassifierApi ToExpression() => this;
+ }
+}
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/test/Azure.Generator.Tests.csproj b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Azure.Generator.Tests.csproj
index 3ec6d60daa49..c837d9c3531e 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/test/Azure.Generator.Tests.csproj
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Azure.Generator.Tests.csproj
@@ -18,5 +18,15 @@
PreserveNewest
+
+
+
+
+
+
+
+ PreserveNewest
+
+
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/test/Common/Helpers.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Common/Helpers.cs
new file mode 100644
index 000000000000..4bbe181fc721
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Common/Helpers.cs
@@ -0,0 +1,60 @@
+using System;
+using System.Diagnostics;
+using System.IO;
+using System.Linq;
+using System.Runtime.CompilerServices;
+
+namespace Azure.Generator.Tests.Common
+{
+ internal static class Helpers
+ {
+ private static readonly string _assemblyLocation = Path.GetDirectoryName(typeof(Helpers).Assembly.Location)!;
+
+ public static string GetExpectedFromFile(string? parameters = null)
+ {
+ return File.ReadAllText(GetAssetFileOrDirectoryPath(true, parameters)).Replace("\r\n", "\n");
+ }
+
+ private static string GetAssetFileOrDirectoryPath(bool isFile, string? parameters = null)
+ {
+ var stackTrace = new StackTrace();
+ var stackFrame = GetRealMethodInvocation(stackTrace);
+ var method = stackFrame.GetMethod();
+ var callingClass = method!.DeclaringType;
+ var nsSplit = callingClass!.Namespace!.Split('.');
+ var paramString = parameters is null ? string.Empty : $"({parameters})";
+ var extName = isFile ? ".cs" : string.Empty;
+ var path = _assemblyLocation;
+ var nsSkip = 3;
+ for (int i = nsSkip; i < nsSplit.Length; i++)
+ {
+ path = Path.Combine(path, nsSplit[i]);
+ }
+ return Path.Combine(path, "TestData", callingClass.Name, $"{method.Name}{paramString}{extName}");
+ }
+
+ private static StackFrame GetRealMethodInvocation(StackTrace stackTrace)
+ {
+ int i = 1;
+ while (i < stackTrace.FrameCount)
+ {
+ var frame = stackTrace.GetFrame(i);
+ var declaringType = frame!.GetMethod()!.DeclaringType!;
+ // we need to skip those method invocations from this class, or from the async state machine when the caller is an async method
+ if (declaringType != typeof(Helpers) && declaringType.Name != "MockHelpers" && !IsCompilerGenerated(declaringType))
+ {
+ return frame;
+ }
+ i++;
+ }
+
+ throw new InvalidOperationException($"There is no method invocation outside the {typeof(Helpers)} class in the stack trace");
+
+ static bool IsCompilerGenerated(Type type)
+ {
+ return type.IsDefined(typeof(CompilerGeneratedAttribute), false) || (type.Namespace?.StartsWith("System.Runtime.CompilerServices") ?? false) ||
+ type.Name.StartsWith("<<", StringComparison.Ordinal);
+ }
+ }
+ }
+}
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/test/Common/InputFactory.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Common/InputFactory.cs
index e9c2e711a24a..44618ea85937 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/test/Common/InputFactory.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Common/InputFactory.cs
@@ -150,8 +150,7 @@ public static InputModelProperty Property(
type,
isRequired,
isReadOnly,
- isDiscriminator,
- null);
+ isDiscriminator);
}
public static InputModelType Model(
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/test/Providers/Abstractions/AzureClientResponseProviderTests.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Providers/Abstractions/AzureClientResponseProviderTests.cs
new file mode 100644
index 000000000000..62b1c787fb31
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Providers/Abstractions/AzureClientResponseProviderTests.cs
@@ -0,0 +1,49 @@
+using Azure.Generator.Tests.Common;
+using Azure.Generator.Tests.TestHelpers;
+using Microsoft.Generator.CSharp.ClientModel.Providers;
+using Microsoft.Generator.CSharp.ClientModel;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using NUnit.Framework;
+using System.ClientModel.Primitives;
+using Azure.Generator.Providers;
+
+namespace Azure.Generator.Tests.Providers.Abstractions
+{
+ internal class AzureClientResponseProviderTests
+ {
+ [Test]
+ public void ValidateReturnTypeIsOverridden()
+ {
+ ClientProvider clientProvider = CreateMockClientProvider();
+
+ var method = clientProvider.Methods.FirstOrDefault(x => !x.Signature.Name.EndsWith("Async"));
+ Assert.NotNull(method);
+ Assert.NotNull(method!.Signature.ReturnType);
+ Assert.IsTrue(method!.Signature.ReturnType!.Equals(typeof(Response)));
+ }
+
+ [Test]
+ public void ValidateBodyOfClientOperationIsOverridden()
+ {
+ var clientProvider = CreateMockClientProvider();
+
+ var method = clientProvider.Methods.FirstOrDefault(x => x.Signature.Parameters.Any(p => p.Type.Equals(typeof(RequestContext))) && !x.Signature.Name.EndsWith("Async"));
+ Assert.NotNull(method);
+ Assert.NotNull(method!.BodyStatements);
+ var test = method.BodyStatements!.ToDisplayString();
+ Assert.AreEqual(Helpers.GetExpectedFromFile(), method.BodyStatements!.ToDisplayString());
+ }
+
+ private static ClientProvider CreateMockClientProvider()
+ {
+ var client = InputFactory.Client("TestClient", [InputFactory.Operation("foo")]);
+ MockHelpers.LoadMockPlugin(clientResponseApi: AzureClientResponseProvider.Instance);
+ var clientProvider = AzureClientPlugin.Instance.TypeFactory.CreateClient(client);
+ return clientProvider;
+ }
+ }
+}
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/test/Providers/Abstractions/TestData/AzureClientResponseProviderTests/ValidateBodyOfClientOperationIsOverridden.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Providers/Abstractions/TestData/AzureClientResponseProviderTests/ValidateBodyOfClientOperationIsOverridden.cs
new file mode 100644
index 000000000000..e8bf29510dab
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Providers/Abstractions/TestData/AzureClientResponseProviderTests/ValidateBodyOfClientOperationIsOverridden.cs
@@ -0,0 +1,2 @@
+using global::Azure.Core.HttpMessage message = this.CreateFooRequest(context);
+return Pipeline.ProcessMessage(message, context);
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/test/TestHelpers/MockHelpers.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/test/TestHelpers/MockHelpers.cs
index dcce80fbaae4..1f2919f751f8 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/test/TestHelpers/MockHelpers.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/test/TestHelpers/MockHelpers.cs
@@ -3,6 +3,7 @@
using Microsoft.Generator.CSharp;
using Microsoft.Generator.CSharp.ClientModel;
+using Microsoft.Generator.CSharp.ClientModel.Providers;
using Microsoft.Generator.CSharp.Input;
using Microsoft.Generator.CSharp.Primitives;
using Microsoft.Generator.CSharp.Providers;
@@ -28,7 +29,10 @@ public static Mock LoadMockPlugin(
Func>? apiVersions = null,
Func>? inputEnums = null,
Func>? inputModels = null,
- Func>? clients = null)
+ Func>? clients = null,
+ ClientResponseApi? clientResponseApi = null,
+ ClientPipelineApi? clientPipelineApi = null,
+ HttpMessageApi? httpMessageApi = null)
{
IReadOnlyList inputNsApiVersions = apiVersions?.Invoke() ?? [];
IReadOnlyList inputNsEnums = inputEnums?.Invoke() ?? [];
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/BasicTypeSpec.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/BasicTypeSpec.csproj
index 358ee2ac9011..075aca94076a 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/BasicTypeSpec.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/BasicTypeSpec.csproj
@@ -11,6 +11,7 @@
-
+
+
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/BasicTypeSpecClient.RestClient.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/BasicTypeSpecClient.RestClient.cs
index b8bf3fd176a3..8f3177cdbe6a 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/BasicTypeSpecClient.RestClient.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/BasicTypeSpecClient.RestClient.cs
@@ -6,30 +6,30 @@
#nullable disable
using System;
-using System.ClientModel;
-using System.ClientModel.Primitives;
+using Azure;
+using Azure.Core;
namespace BasicTypeSpec
{
///
public partial class BasicTypeSpecClient
{
- private static PipelineMessageClassifier _pipelineMessageClassifier200;
- private static PipelineMessageClassifier _pipelineMessageClassifier204;
+ private static ResponseClassifier _pipelineMessageClassifier200;
+ private static ResponseClassifier _pipelineMessageClassifier204;
private static Classifier2xxAnd4xx _pipelineMessageClassifier2xxAnd4xx;
- private static PipelineMessageClassifier PipelineMessageClassifier200 => _pipelineMessageClassifier200 = PipelineMessageClassifier.Create(stackalloc ushort[] { 200 });
+ private static ResponseClassifier PipelineMessageClassifier200 => _pipelineMessageClassifier200 = new StatusCodeClassifier(stackalloc ushort[] { 200 });
- private static PipelineMessageClassifier PipelineMessageClassifier204 => _pipelineMessageClassifier204 = PipelineMessageClassifier.Create(stackalloc ushort[] { 204 });
+ private static ResponseClassifier PipelineMessageClassifier204 => _pipelineMessageClassifier204 = new StatusCodeClassifier(stackalloc ushort[] { 204 });
private static Classifier2xxAnd4xx PipelineMessageClassifier2xxAnd4xx => _pipelineMessageClassifier2xxAnd4xx ??= new Classifier2xxAnd4xx();
- internal PipelineMessage CreateSayHiRequest(string headParameter, string queryParameter, string optionalQuery, RequestOptions options)
+ internal HttpMessage CreateSayHiRequest(string headParameter, string queryParameter, string optionalQuery, RequestContext context)
{
- PipelineMessage message = Pipeline.CreateMessage();
+ HttpMessage message = Pipeline.CreateMessage();
message.ResponseClassifier = PipelineMessageClassifier200;
- PipelineRequest request = message.Request;
- request.Method = "GET";
+ Request request = message.Request;
+ request.Method = new RequestMethod("GET");
ClientUriBuilder uri = new ClientUriBuilder();
uri.Reset(_endpoint);
uri.AppendPath("/hello", false);
@@ -38,314 +38,275 @@ internal PipelineMessage CreateSayHiRequest(string headParameter, string queryPa
{
uri.AppendQuery("optionalQuery", optionalQuery, true);
}
- request.Uri = uri.ToUri();
- request.Headers.Set("head-parameter", headParameter);
- request.Headers.Set("Accept", "application/json");
- message.Apply(options);
+ request.Uri = uri;
+ request.Headers.Add("head-parameter", headParameter);
+ request.Headers.Add("Accept", "application/json");
return message;
}
- internal PipelineMessage CreateHelloAgainRequest(string p2, string p1, BinaryContent content, RequestOptions options)
+ internal HttpMessage CreateHelloAgainRequest(string p2, string p1, RequestContent content, RequestContext context)
{
- PipelineMessage message = Pipeline.CreateMessage();
+ HttpMessage message = Pipeline.CreateMessage();
message.ResponseClassifier = PipelineMessageClassifier200;
- PipelineRequest request = message.Request;
- request.Method = "GET";
+ Request request = message.Request;
+ request.Method = new RequestMethod("GET");
ClientUriBuilder uri = new ClientUriBuilder();
uri.Reset(_endpoint);
uri.AppendPath("/againHi/", false);
uri.AppendPath(p2, true);
- request.Uri = uri.ToUri();
- request.Headers.Set("p1", p1);
- request.Headers.Set("Content-Type", "text/plain");
- request.Headers.Set("Accept", "application/json");
+ request.Uri = uri;
+ request.Headers.Add("p1", p1);
+ request.Headers.Add("Content-Type", "text/plain");
+ request.Headers.Add("Accept", "application/json");
request.Content = content;
- message.Apply(options);
return message;
}
- internal PipelineMessage CreateNoContentTypeRequest(string p2, string p1, BinaryContent content, RequestOptions options)
+ internal HttpMessage CreateNoContentTypeRequest(string p2, string p1, RequestContent content, RequestContext context)
{
- PipelineMessage message = Pipeline.CreateMessage();
+ HttpMessage message = Pipeline.CreateMessage();
message.ResponseClassifier = PipelineMessageClassifier200;
- PipelineRequest request = message.Request;
- request.Method = "GET";
+ Request request = message.Request;
+ request.Method = new RequestMethod("GET");
ClientUriBuilder uri = new ClientUriBuilder();
uri.Reset(_endpoint);
uri.AppendPath("/noContentType/", false);
uri.AppendPath(p2, true);
- request.Uri = uri.ToUri();
- request.Headers.Set("p1", p1);
- request.Headers.Set("Content-Type", "application/json");
- request.Headers.Set("Accept", "application/json");
+ request.Uri = uri;
+ request.Headers.Add("p1", p1);
+ request.Headers.Add("Content-Type", "application/json");
+ request.Headers.Add("Accept", "application/json");
request.Content = content;
- message.Apply(options);
return message;
}
- internal PipelineMessage CreateHelloDemo2Request(RequestOptions options)
+ internal HttpMessage CreateHelloDemo2Request(RequestContext context)
{
- PipelineMessage message = Pipeline.CreateMessage();
+ HttpMessage message = Pipeline.CreateMessage();
message.ResponseClassifier = PipelineMessageClassifier200;
- PipelineRequest request = message.Request;
- request.Method = "GET";
+ Request request = message.Request;
+ request.Method = new RequestMethod("GET");
ClientUriBuilder uri = new ClientUriBuilder();
uri.Reset(_endpoint);
uri.AppendPath("/demoHi", false);
- request.Uri = uri.ToUri();
- request.Headers.Set("Accept", "application/json");
- message.Apply(options);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
return message;
}
- internal PipelineMessage CreateCreateLiteralRequest(BinaryContent content, RequestOptions options)
+ internal HttpMessage CreateCreateLiteralRequest(RequestContent content, RequestContext context)
{
- PipelineMessage message = Pipeline.CreateMessage();
+ HttpMessage message = Pipeline.CreateMessage();
message.ResponseClassifier = PipelineMessageClassifier200;
- PipelineRequest request = message.Request;
- request.Method = "POST";
+ Request request = message.Request;
+ request.Method = new RequestMethod("POST");
ClientUriBuilder uri = new ClientUriBuilder();
uri.Reset(_endpoint);
uri.AppendPath("/literal", false);
- request.Uri = uri.ToUri();
- request.Headers.Set("Content-Type", "application/json");
- request.Headers.Set("Accept", "application/json");
+ request.Uri = uri;
+ request.Headers.Add("Content-Type", "application/json");
+ request.Headers.Add("Accept", "application/json");
request.Content = content;
- message.Apply(options);
return message;
}
- internal PipelineMessage CreateHelloLiteralRequest(RequestOptions options)
+ internal HttpMessage CreateHelloLiteralRequest(RequestContext context)
{
- PipelineMessage message = Pipeline.CreateMessage();
+ HttpMessage message = Pipeline.CreateMessage();
message.ResponseClassifier = PipelineMessageClassifier200;
- PipelineRequest request = message.Request;
- request.Method = "GET";
+ Request request = message.Request;
+ request.Method = new RequestMethod("GET");
ClientUriBuilder uri = new ClientUriBuilder();
uri.Reset(_endpoint);
uri.AppendPath("/helloLiteral/", false);
uri.AppendPath(123.ToString(), true);
uri.AppendQuery("p3", TypeFormatters.ConvertToString(true, null), true);
- request.Uri = uri.ToUri();
- request.Headers.Set("p1", "test");
- request.Headers.Set("Accept", "application/json");
- message.Apply(options);
+ request.Uri = uri;
+ request.Headers.Add("p1", "test");
+ request.Headers.Add("Accept", "application/json");
return message;
}
- internal PipelineMessage CreateTopActionRequest(DateTimeOffset action, RequestOptions options)
+ internal HttpMessage CreateTopActionRequest(DateTimeOffset action, RequestContext context)
{
- PipelineMessage message = Pipeline.CreateMessage();
+ HttpMessage message = Pipeline.CreateMessage();
message.ResponseClassifier = PipelineMessageClassifier200;
- PipelineRequest request = message.Request;
- request.Method = "GET";
+ Request request = message.Request;
+ request.Method = new RequestMethod("GET");
ClientUriBuilder uri = new ClientUriBuilder();
uri.Reset(_endpoint);
uri.AppendPath("/top/", false);
uri.AppendPath(action.ToString("O"), true);
- request.Uri = uri.ToUri();
- request.Headers.Set("Accept", "application/json");
- message.Apply(options);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
return message;
}
- internal PipelineMessage CreateTopAction2Request(RequestOptions options)
+ internal HttpMessage CreateTopAction2Request(RequestContext context)
{
- PipelineMessage message = Pipeline.CreateMessage();
+ HttpMessage message = Pipeline.CreateMessage();
message.ResponseClassifier = PipelineMessageClassifier200;
- PipelineRequest request = message.Request;
- request.Method = "GET";
+ Request request = message.Request;
+ request.Method = new RequestMethod("GET");
ClientUriBuilder uri = new ClientUriBuilder();
uri.Reset(_endpoint);
uri.AppendPath("/top2", false);
- request.Uri = uri.ToUri();
- request.Headers.Set("Accept", "application/json");
- message.Apply(options);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
return message;
}
- internal PipelineMessage CreatePatchActionRequest(BinaryContent content, RequestOptions options)
+ internal HttpMessage CreatePatchActionRequest(RequestContent content, RequestContext context)
{
- PipelineMessage message = Pipeline.CreateMessage();
+ HttpMessage message = Pipeline.CreateMessage();
message.ResponseClassifier = PipelineMessageClassifier200;
- PipelineRequest request = message.Request;
- request.Method = "PATCH";
+ Request request = message.Request;
+ request.Method = new RequestMethod("PATCH");
ClientUriBuilder uri = new ClientUriBuilder();
uri.Reset(_endpoint);
uri.AppendPath("/patch", false);
- request.Uri = uri.ToUri();
- request.Headers.Set("Content-Type", "application/json");
- request.Headers.Set("Accept", "application/json");
+ request.Uri = uri;
+ request.Headers.Add("Content-Type", "application/json");
+ request.Headers.Add("Accept", "application/json");
request.Content = content;
- message.Apply(options);
return message;
}
- internal PipelineMessage CreateAnonymousBodyRequest(BinaryContent content, RequestOptions options)
+ internal HttpMessage CreateAnonymousBodyRequest(RequestContent content, RequestContext context)
{
- PipelineMessage message = Pipeline.CreateMessage();
+ HttpMessage message = Pipeline.CreateMessage();
message.ResponseClassifier = PipelineMessageClassifier200;
- PipelineRequest request = message.Request;
- request.Method = "POST";
+ Request request = message.Request;
+ request.Method = new RequestMethod("POST");
ClientUriBuilder uri = new ClientUriBuilder();
uri.Reset(_endpoint);
uri.AppendPath("/anonymousBody", false);
- request.Uri = uri.ToUri();
- request.Headers.Set("Content-Type", "application/json");
- request.Headers.Set("Accept", "application/json");
+ request.Uri = uri;
+ request.Headers.Add("Content-Type", "application/json");
+ request.Headers.Add("Accept", "application/json");
request.Content = content;
- message.Apply(options);
return message;
}
- internal PipelineMessage CreateFriendlyModelRequest(BinaryContent content, RequestOptions options)
+ internal HttpMessage CreateFriendlyModelRequest(RequestContent content, RequestContext context)
{
- PipelineMessage message = Pipeline.CreateMessage();
+ HttpMessage message = Pipeline.CreateMessage();
message.ResponseClassifier = PipelineMessageClassifier200;
- PipelineRequest request = message.Request;
- request.Method = "POST";
+ Request request = message.Request;
+ request.Method = new RequestMethod("POST");
ClientUriBuilder uri = new ClientUriBuilder();
uri.Reset(_endpoint);
uri.AppendPath("/friendlyName", false);
- request.Uri = uri.ToUri();
- request.Headers.Set("Content-Type", "application/json");
- request.Headers.Set("Accept", "application/json");
+ request.Uri = uri;
+ request.Headers.Add("Content-Type", "application/json");
+ request.Headers.Add("Accept", "application/json");
request.Content = content;
- message.Apply(options);
return message;
}
- internal PipelineMessage CreateAddTimeHeaderRequest(RequestOptions options)
+ internal HttpMessage CreateAddTimeHeaderRequest(RequestContext context)
{
- PipelineMessage message = Pipeline.CreateMessage();
+ HttpMessage message = Pipeline.CreateMessage();
message.ResponseClassifier = PipelineMessageClassifier204;
- PipelineRequest request = message.Request;
- request.Method = "GET";
+ Request request = message.Request;
+ request.Method = new RequestMethod("GET");
ClientUriBuilder uri = new ClientUriBuilder();
uri.Reset(_endpoint);
uri.AppendPath("/", false);
- request.Uri = uri.ToUri();
- request.Headers.Set("Repeatability-First-Sent", TypeFormatters.ConvertToString(DateTimeOffset.Now, "R"));
- message.Apply(options);
+ request.Uri = uri;
+ request.Headers.Add("Repeatability-First-Sent", TypeFormatters.ConvertToString(DateTimeOffset.Now, "R"));
return message;
}
- internal PipelineMessage CreateProjectedNameModelRequest(BinaryContent content, RequestOptions options)
+ internal HttpMessage CreateProjectedNameModelRequest(RequestContent content, RequestContext context)
{
- PipelineMessage message = Pipeline.CreateMessage();
+ HttpMessage message = Pipeline.CreateMessage();
message.ResponseClassifier = PipelineMessageClassifier200;
- PipelineRequest request = message.Request;
- request.Method = "POST";
+ Request request = message.Request;
+ request.Method = new RequestMethod("POST");
ClientUriBuilder uri = new ClientUriBuilder();
uri.Reset(_endpoint);
uri.AppendPath("/projectedName", false);
- request.Uri = uri.ToUri();
- request.Headers.Set("Content-Type", "application/json");
- request.Headers.Set("Accept", "application/json");
+ request.Uri = uri;
+ request.Headers.Add("Content-Type", "application/json");
+ request.Headers.Add("Accept", "application/json");
request.Content = content;
- message.Apply(options);
return message;
}
- internal PipelineMessage CreateReturnsAnonymousModelRequest(RequestOptions options)
+ internal HttpMessage CreateReturnsAnonymousModelRequest(RequestContext context)
{
- PipelineMessage message = Pipeline.CreateMessage();
+ HttpMessage message = Pipeline.CreateMessage();
message.ResponseClassifier = PipelineMessageClassifier200;
- PipelineRequest request = message.Request;
- request.Method = "POST";
+ Request request = message.Request;
+ request.Method = new RequestMethod("POST");
ClientUriBuilder uri = new ClientUriBuilder();
uri.Reset(_endpoint);
uri.AppendPath("/returnsAnonymousModel", false);
- request.Uri = uri.ToUri();
- request.Headers.Set("Accept", "application/json");
- message.Apply(options);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
return message;
}
- internal PipelineMessage CreateGetUnknownValueRequest(string accept, RequestOptions options)
+ internal HttpMessage CreateGetUnknownValueRequest(string accept, RequestContext context)
{
- PipelineMessage message = Pipeline.CreateMessage();
+ HttpMessage message = Pipeline.CreateMessage();
message.ResponseClassifier = PipelineMessageClassifier200;
- PipelineRequest request = message.Request;
- request.Method = "GET";
+ Request request = message.Request;
+ request.Method = new RequestMethod("GET");
ClientUriBuilder uri = new ClientUriBuilder();
uri.Reset(_endpoint);
uri.AppendPath("/unknown-value", false);
- request.Uri = uri.ToUri();
- request.Headers.Set("Accept", accept);
- message.Apply(options);
+ request.Uri = uri;
+ request.Headers.Add("Accept", accept);
return message;
}
- internal PipelineMessage CreateInternalProtocolRequest(BinaryContent content, RequestOptions options)
+ internal HttpMessage CreateInternalProtocolRequest(RequestContent content, RequestContext context)
{
- PipelineMessage message = Pipeline.CreateMessage();
+ HttpMessage message = Pipeline.CreateMessage();
message.ResponseClassifier = PipelineMessageClassifier200;
- PipelineRequest request = message.Request;
- request.Method = "POST";
+ Request request = message.Request;
+ request.Method = new RequestMethod("POST");
ClientUriBuilder uri = new ClientUriBuilder();
uri.Reset(_endpoint);
uri.AppendPath("/internalProtocol", false);
- request.Uri = uri.ToUri();
- request.Headers.Set("Content-Type", "application/json");
- request.Headers.Set("Accept", "application/json");
+ request.Uri = uri;
+ request.Headers.Add("Content-Type", "application/json");
+ request.Headers.Add("Accept", "application/json");
request.Content = content;
- message.Apply(options);
return message;
}
- internal PipelineMessage CreateStillConvenientRequest(RequestOptions options)
+ internal HttpMessage CreateStillConvenientRequest(RequestContext context)
{
- PipelineMessage message = Pipeline.CreateMessage();
+ HttpMessage message = Pipeline.CreateMessage();
message.ResponseClassifier = PipelineMessageClassifier204;
- PipelineRequest request = message.Request;
- request.Method = "GET";
+ Request request = message.Request;
+ request.Method = new RequestMethod("GET");
ClientUriBuilder uri = new ClientUriBuilder();
uri.Reset(_endpoint);
uri.AppendPath("/stillConvenient", false);
- request.Uri = uri.ToUri();
- message.Apply(options);
+ request.Uri = uri;
return message;
}
- internal PipelineMessage CreateHeadAsBooleanRequest(string id, RequestOptions options)
+ internal HttpMessage CreateHeadAsBooleanRequest(string id, RequestContext context)
{
- PipelineMessage message = Pipeline.CreateMessage();
+ HttpMessage message = Pipeline.CreateMessage();
message.ResponseClassifier = PipelineMessageClassifier2xxAnd4xx;
- PipelineRequest request = message.Request;
- request.Method = "HEAD";
+ Request request = message.Request;
+ request.Method = new RequestMethod("HEAD");
ClientUriBuilder uri = new ClientUriBuilder();
uri.Reset(_endpoint);
uri.AppendPath("/headAsBoolean/", false);
uri.AppendPath(id, true);
- request.Uri = uri.ToUri();
- message.Apply(options);
+ request.Uri = uri;
return message;
}
- private class Classifier2xxAnd4xx : PipelineMessageClassifier
+ private class Classifier2xxAnd4xx : ResponseClassifier
{
- public override bool TryClassify(PipelineMessage message, out bool isError)
- {
- isError = false;
- if (message.Response == null)
- {
- return false;
- }
- isError = message.Response.Status switch
- {
- >= 200 and < 300 => false,
- >= 400 and < 500 => false,
- _ => true
- };
- return true;
- }
-
- public override bool TryClassify(PipelineMessage message, Exception exception, out bool isRetryable)
- {
- isRetryable = false;
- return false;
- }
}
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/BasicTypeSpecClient.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/BasicTypeSpecClient.cs
index c05199299e5d..20b2d3635f26 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/BasicTypeSpecClient.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/BasicTypeSpecClient.cs
@@ -7,10 +7,12 @@
using System;
using System.ClientModel;
-using System.ClientModel.Primitives;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
using BasicTypeSpec.Models;
namespace BasicTypeSpec
@@ -50,11 +52,11 @@ public BasicTypeSpecClient(Uri endpoint, ApiKeyCredential keyCredential, BasicTy
_endpoint = endpoint;
_keyCredential = keyCredential;
- Pipeline = ClientPipeline.Create(options, Array.Empty(), new PipelinePolicy[] { ApiKeyAuthenticationPolicy.CreateHeaderApiKeyPolicy(_keyCredential, AuthorizationHeader) }, Array.Empty());
+ Pipeline = HttpPipelineBuilder.Build(options, new HttpPipelinePolicy[] { });
}
/// The HTTP pipeline for sending and receiving REST requests and responses.
- public ClientPipeline Pipeline { get; }
+ public HttpPipeline Pipeline { get; }
///
/// [Protocol Method] Return hi
@@ -67,17 +69,17 @@ public BasicTypeSpecClient(Uri endpoint, ApiKeyCredential keyCredential, BasicTy
///
///
///
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
/// or is null.
- /// Service returned a non-success status code.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual ClientResult SayHi(string headParameter, string queryParameter, string optionalQuery, RequestOptions options)
+ public virtual Response SayHi(string headParameter, string queryParameter, string optionalQuery, RequestContext context)
{
Argument.AssertNotNull(headParameter, nameof(headParameter));
Argument.AssertNotNull(queryParameter, nameof(queryParameter));
- using PipelineMessage message = CreateSayHiRequest(headParameter, queryParameter, optionalQuery, options);
- return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
+ using HttpMessage message = CreateSayHiRequest(headParameter, queryParameter, optionalQuery, context);
+ return Pipeline.ProcessMessage(message, context);
}
///
@@ -91,17 +93,17 @@ public virtual ClientResult SayHi(string headParameter, string queryParameter, s
///
///
///
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
/// or is null.
- /// Service returned a non-success status code.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual async Task SayHiAsync(string headParameter, string queryParameter, string optionalQuery, RequestOptions options)
+ public virtual async Task SayHiAsync(string headParameter, string queryParameter, string optionalQuery, RequestContext context)
{
Argument.AssertNotNull(headParameter, nameof(headParameter));
Argument.AssertNotNull(queryParameter, nameof(queryParameter));
- using PipelineMessage message = CreateSayHiRequest(headParameter, queryParameter, optionalQuery, options);
- return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
+ using HttpMessage message = CreateSayHiRequest(headParameter, queryParameter, optionalQuery, context);
+ return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
/// Return hi.
@@ -109,14 +111,14 @@ public virtual async Task SayHiAsync(string headParameter, string
///
///
/// or is null.
- /// Service returned a non-success status code.
- public virtual ClientResult SayHi(string headParameter, string queryParameter, string optionalQuery)
+ /// Service returned a non-success status code.
+ public virtual Response SayHi(string headParameter, string queryParameter, string optionalQuery)
{
Argument.AssertNotNull(headParameter, nameof(headParameter));
Argument.AssertNotNull(queryParameter, nameof(queryParameter));
- ClientResult result = SayHi(headParameter, queryParameter, optionalQuery, null);
- return ClientResult.FromValue((Thing)result, result.GetRawResponse());
+ Response result = SayHi(headParameter, queryParameter, optionalQuery, null);
+ return Response.FromValue((Thing)result, result);
}
/// Return hi.
@@ -124,14 +126,14 @@ public virtual ClientResult SayHi(string headParameter, string queryParam
///
///
/// or is null.
- /// Service returned a non-success status code.
- public virtual async Task> SayHiAsync(string headParameter, string queryParameter, string optionalQuery)
+ /// Service returned a non-success status code.
+ public virtual async Task> SayHiAsync(string headParameter, string queryParameter, string optionalQuery)
{
Argument.AssertNotNull(headParameter, nameof(headParameter));
Argument.AssertNotNull(queryParameter, nameof(queryParameter));
- ClientResult result = await SayHiAsync(headParameter, queryParameter, optionalQuery, null).ConfigureAwait(false);
- return ClientResult.FromValue((Thing)result, result.GetRawResponse());
+ Response result = await SayHiAsync(headParameter, queryParameter, optionalQuery, null).ConfigureAwait(false);
+ return Response.FromValue((Thing)result, result);
}
///
@@ -145,18 +147,18 @@ public virtual async Task> SayHiAsync(string headParameter,
///
///
/// The content to send as the body of the request.
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
/// , or is null.
- /// Service returned a non-success status code.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual ClientResult HelloAgain(string p2, string p1, BinaryContent content, RequestOptions options)
+ public virtual Response HelloAgain(string p2, string p1, RequestContent content, RequestContext context)
{
Argument.AssertNotNull(p2, nameof(p2));
Argument.AssertNotNull(p1, nameof(p1));
Argument.AssertNotNull(content, nameof(content));
- using PipelineMessage message = CreateHelloAgainRequest(p2, p1, content, options);
- return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
+ using HttpMessage message = CreateHelloAgainRequest(p2, p1, content, context);
+ return Pipeline.ProcessMessage(message, context);
}
///
@@ -170,18 +172,18 @@ public virtual ClientResult HelloAgain(string p2, string p1, BinaryContent conte
///
///
/// The content to send as the body of the request.
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
/// , or is null.
- /// Service returned a non-success status code.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual async Task HelloAgainAsync(string p2, string p1, BinaryContent content, RequestOptions options)
+ public virtual async Task HelloAgainAsync(string p2, string p1, RequestContent content, RequestContext context)
{
Argument.AssertNotNull(p2, nameof(p2));
Argument.AssertNotNull(p1, nameof(p1));
Argument.AssertNotNull(content, nameof(content));
- using PipelineMessage message = CreateHelloAgainRequest(p2, p1, content, options);
- return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
+ using HttpMessage message = CreateHelloAgainRequest(p2, p1, content, context);
+ return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
/// Return hi again.
@@ -189,15 +191,15 @@ public virtual async Task HelloAgainAsync(string p2, string p1, Bi
///
///
/// , or is null.
- /// Service returned a non-success status code.
- public virtual ClientResult HelloAgain(string p2, string p1, RoundTripModel action)
+ /// Service returned a non-success status code.
+ public virtual Response HelloAgain(string p2, string p1, RoundTripModel action)
{
Argument.AssertNotNull(p2, nameof(p2));
Argument.AssertNotNull(p1, nameof(p1));
Argument.AssertNotNull(action, nameof(action));
- ClientResult result = HelloAgain(p2, p1, action, null);
- return ClientResult.FromValue((RoundTripModel)result, result.GetRawResponse());
+ Response result = HelloAgain(p2, p1, action, null);
+ return Response.FromValue((RoundTripModel)result, result);
}
/// Return hi again.
@@ -205,15 +207,15 @@ public virtual ClientResult HelloAgain(string p2, string p1, Rou
///
///
/// , or is null.
- /// Service returned a non-success status code.
- public virtual async Task> HelloAgainAsync(string p2, string p1, RoundTripModel action)
+ /// Service returned a non-success status code.
+ public virtual async Task> HelloAgainAsync(string p2, string p1, RoundTripModel action)
{
Argument.AssertNotNull(p2, nameof(p2));
Argument.AssertNotNull(p1, nameof(p1));
Argument.AssertNotNull(action, nameof(action));
- ClientResult result = await HelloAgainAsync(p2, p1, action, null).ConfigureAwait(false);
- return ClientResult.FromValue((RoundTripModel)result, result.GetRawResponse());
+ Response result = await HelloAgainAsync(p2, p1, action, null).ConfigureAwait(false);
+ return Response.FromValue((RoundTripModel)result, result);
}
///
@@ -227,18 +229,18 @@ public virtual async Task> HelloAgainAsync(string p
///
///
/// The content to send as the body of the request.
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
/// , or is null.
- /// Service returned a non-success status code.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual ClientResult NoContentType(string p2, string p1, BinaryContent content, RequestOptions options)
+ public virtual Response NoContentType(string p2, string p1, RequestContent content, RequestContext context)
{
Argument.AssertNotNull(p2, nameof(p2));
Argument.AssertNotNull(p1, nameof(p1));
Argument.AssertNotNull(content, nameof(content));
- using PipelineMessage message = CreateNoContentTypeRequest(p2, p1, content, options);
- return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
+ using HttpMessage message = CreateNoContentTypeRequest(p2, p1, content, context);
+ return Pipeline.ProcessMessage(message, context);
}
///
@@ -252,18 +254,18 @@ public virtual ClientResult NoContentType(string p2, string p1, BinaryContent co
///
///
/// The content to send as the body of the request.
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
/// , or is null.
- /// Service returned a non-success status code.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual async Task NoContentTypeAsync(string p2, string p1, BinaryContent content, RequestOptions options)
+ public virtual async Task NoContentTypeAsync(string p2, string p1, RequestContent content, RequestContext context)
{
Argument.AssertNotNull(p2, nameof(p2));
Argument.AssertNotNull(p1, nameof(p1));
Argument.AssertNotNull(content, nameof(content));
- using PipelineMessage message = CreateNoContentTypeRequest(p2, p1, content, options);
- return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
+ using HttpMessage message = CreateNoContentTypeRequest(p2, p1, content, context);
+ return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
///
@@ -274,13 +276,13 @@ public virtual async Task NoContentTypeAsync(string p2, string p1,
///
///
///
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
- /// Service returned a non-success status code.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual ClientResult HelloDemo2(RequestOptions options)
+ public virtual Response HelloDemo2(RequestContext context)
{
- using PipelineMessage message = CreateHelloDemo2Request(options);
- return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
+ using HttpMessage message = CreateHelloDemo2Request(context);
+ return Pipeline.ProcessMessage(message, context);
}
///
@@ -291,29 +293,29 @@ public virtual ClientResult HelloDemo2(RequestOptions options)
///
///
///
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
- /// Service returned a non-success status code.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual async Task HelloDemo2Async(RequestOptions options)
+ public virtual async Task HelloDemo2Async(RequestContext context)
{
- using PipelineMessage message = CreateHelloDemo2Request(options);
- return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
+ using HttpMessage message = CreateHelloDemo2Request(context);
+ return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
/// Return hi in demo2.
- /// Service returned a non-success status code.
- public virtual ClientResult HelloDemo2()
+ /// Service returned a non-success status code.
+ public virtual Response HelloDemo2()
{
- ClientResult result = HelloDemo2(null);
- return ClientResult.FromValue((Thing)result, result.GetRawResponse());
+ Response result = HelloDemo2(null);
+ return Response.FromValue((Thing)result, result);
}
/// Return hi in demo2.
- /// Service returned a non-success status code.
- public virtual async Task> HelloDemo2Async()
+ /// Service returned a non-success status code.
+ public virtual async Task> HelloDemo2Async()
{
- ClientResult result = await HelloDemo2Async(null).ConfigureAwait(false);
- return ClientResult.FromValue((Thing)result, result.GetRawResponse());
+ Response result = await HelloDemo2Async(null).ConfigureAwait(false);
+ return Response.FromValue((Thing)result, result);
}
///
@@ -325,16 +327,16 @@ public virtual async Task> HelloDemo2Async()
///
///
/// The content to send as the body of the request.
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
/// is null.
- /// Service returned a non-success status code.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual ClientResult CreateLiteral(BinaryContent content, RequestOptions options)
+ public virtual Response CreateLiteral(RequestContent content, RequestContext context)
{
Argument.AssertNotNull(content, nameof(content));
- using PipelineMessage message = CreateCreateLiteralRequest(content, options);
- return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
+ using HttpMessage message = CreateCreateLiteralRequest(content, context);
+ return Pipeline.ProcessMessage(message, context);
}
///
@@ -346,40 +348,40 @@ public virtual ClientResult CreateLiteral(BinaryContent content, RequestOptions
///
///
/// The content to send as the body of the request.
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
/// is null.
- /// Service returned a non-success status code.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual async Task CreateLiteralAsync(BinaryContent content, RequestOptions options)
+ public virtual async Task CreateLiteralAsync(RequestContent content, RequestContext context)
{
Argument.AssertNotNull(content, nameof(content));
- using PipelineMessage message = CreateCreateLiteralRequest(content, options);
- return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
+ using HttpMessage message = CreateCreateLiteralRequest(content, context);
+ return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
/// Create with literal value.
///
/// is null.
- /// Service returned a non-success status code.
- public virtual ClientResult CreateLiteral(Thing body)
+ /// Service returned a non-success status code.
+ public virtual Response CreateLiteral(Thing body)
{
Argument.AssertNotNull(body, nameof(body));
- ClientResult result = CreateLiteral(body, null);
- return ClientResult.FromValue((Thing)result, result.GetRawResponse());
+ Response result = CreateLiteral(body, null);
+ return Response.FromValue((Thing)result, result);
}
/// Create with literal value.
///
/// is null.
- /// Service returned a non-success status code.
- public virtual async Task> CreateLiteralAsync(Thing body)
+ /// Service returned a non-success status code.
+ public virtual async Task> CreateLiteralAsync(Thing body)
{
Argument.AssertNotNull(body, nameof(body));
- ClientResult result = await CreateLiteralAsync(body, null).ConfigureAwait(false);
- return ClientResult.FromValue((Thing)result, result.GetRawResponse());
+ Response result = await CreateLiteralAsync(body, null).ConfigureAwait(false);
+ return Response.FromValue((Thing)result, result);
}
///
@@ -390,13 +392,13 @@ public virtual async Task> CreateLiteralAsync(Thing body)
///
///
///
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
- /// Service returned a non-success status code.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual ClientResult HelloLiteral(RequestOptions options)
+ public virtual Response HelloLiteral(RequestContext context)
{
- using PipelineMessage message = CreateHelloLiteralRequest(options);
- return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
+ using HttpMessage message = CreateHelloLiteralRequest(context);
+ return Pipeline.ProcessMessage(message, context);
}
///
@@ -407,29 +409,29 @@ public virtual ClientResult HelloLiteral(RequestOptions options)
///
///
///
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
- /// Service returned a non-success status code.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual async Task HelloLiteralAsync(RequestOptions options)
+ public virtual async Task HelloLiteralAsync(RequestContext context)
{
- using PipelineMessage message = CreateHelloLiteralRequest(options);
- return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
+ using HttpMessage message = CreateHelloLiteralRequest(context);
+ return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
/// Send literal parameters.
- /// Service returned a non-success status code.
- public virtual ClientResult HelloLiteral()
+ /// Service returned a non-success status code.
+ public virtual Response HelloLiteral()
{
- ClientResult result = HelloLiteral(null);
- return ClientResult.FromValue((Thing)result, result.GetRawResponse());
+ Response result = HelloLiteral(null);
+ return Response.FromValue((Thing)result, result);
}
/// Send literal parameters.
- /// Service returned a non-success status code.
- public virtual async Task> HelloLiteralAsync()
+ /// Service returned a non-success status code.
+ public virtual async Task> HelloLiteralAsync()
{
- ClientResult result = await HelloLiteralAsync(null).ConfigureAwait(false);
- return ClientResult.FromValue((Thing)result, result.GetRawResponse());
+ Response result = await HelloLiteralAsync(null).ConfigureAwait(false);
+ return Response.FromValue((Thing)result, result);
}
///
@@ -441,13 +443,13 @@ public virtual async Task> HelloLiteralAsync()
///
///
///
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
- /// Service returned a non-success status code.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual ClientResult TopAction(DateTimeOffset action, RequestOptions options)
+ public virtual Response TopAction(DateTimeOffset action, RequestContext context)
{
- using PipelineMessage message = CreateTopActionRequest(action, options);
- return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
+ using HttpMessage message = CreateTopActionRequest(action, context);
+ return Pipeline.ProcessMessage(message, context);
}
///
@@ -459,31 +461,31 @@ public virtual ClientResult TopAction(DateTimeOffset action, RequestOptions opti
///
///
///
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
- /// Service returned a non-success status code.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual async Task TopActionAsync(DateTimeOffset action, RequestOptions options)
+ public virtual async Task TopActionAsync(DateTimeOffset action, RequestContext context)
{
- using PipelineMessage message = CreateTopActionRequest(action, options);
- return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
+ using HttpMessage message = CreateTopActionRequest(action, context);
+ return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
/// top level method.
///
- /// Service returned a non-success status code.
- public virtual ClientResult TopAction(DateTimeOffset action)
+ /// Service returned a non-success status code.
+ public virtual Response TopAction(DateTimeOffset action)
{
- ClientResult result = TopAction(action, null);
- return ClientResult.FromValue((Thing)result, result.GetRawResponse());
+ Response result = TopAction(action, null);
+ return Response.FromValue((Thing)result, result);
}
/// top level method.
///
- /// Service returned a non-success status code.
- public virtual async Task> TopActionAsync(DateTimeOffset action)
+ /// Service returned a non-success status code.
+ public virtual async Task> TopActionAsync(DateTimeOffset action)
{
- ClientResult result = await TopActionAsync(action, null).ConfigureAwait(false);
- return ClientResult.FromValue((Thing)result, result.GetRawResponse());
+ Response result = await TopActionAsync(action, null).ConfigureAwait(false);
+ return Response.FromValue((Thing)result, result);
}
///
@@ -494,13 +496,13 @@ public virtual async Task> TopActionAsync(DateTimeOffset act
///
///
///
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
- /// Service returned a non-success status code.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual ClientResult TopAction2(RequestOptions options)
+ public virtual Response TopAction2(RequestContext context)
{
- using PipelineMessage message = CreateTopAction2Request(options);
- return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
+ using HttpMessage message = CreateTopAction2Request(context);
+ return Pipeline.ProcessMessage(message, context);
}
///
@@ -511,13 +513,13 @@ public virtual ClientResult TopAction2(RequestOptions options)
///
///
///
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
- /// Service returned a non-success status code.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual async Task TopAction2Async(RequestOptions options)
+ public virtual async Task TopAction2Async(RequestContext context)
{
- using PipelineMessage message = CreateTopAction2Request(options);
- return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
+ using HttpMessage message = CreateTopAction2Request(context);
+ return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
///
@@ -529,16 +531,16 @@ public virtual async Task TopAction2Async(RequestOptions options)
///
///
/// The content to send as the body of the request.
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
/// is null.
- /// Service returned a non-success status code.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual ClientResult PatchAction(BinaryContent content, RequestOptions options)
+ public virtual Response PatchAction(RequestContent content, RequestContext context)
{
Argument.AssertNotNull(content, nameof(content));
- using PipelineMessage message = CreatePatchActionRequest(content, options);
- return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
+ using HttpMessage message = CreatePatchActionRequest(content, context);
+ return Pipeline.ProcessMessage(message, context);
}
///
@@ -550,16 +552,16 @@ public virtual ClientResult PatchAction(BinaryContent content, RequestOptions op
///
///
/// The content to send as the body of the request.
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
/// is null.
- /// Service returned a non-success status code.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual async Task PatchActionAsync(BinaryContent content, RequestOptions options)
+ public virtual async Task PatchActionAsync(RequestContent content, RequestContext context)
{
Argument.AssertNotNull(content, nameof(content));
- using PipelineMessage message = CreatePatchActionRequest(content, options);
- return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
+ using HttpMessage message = CreatePatchActionRequest(content, context);
+ return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
///
@@ -571,16 +573,16 @@ public virtual async Task PatchActionAsync(BinaryContent content,
///
///
/// The content to send as the body of the request.
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
/// is null.
- /// Service returned a non-success status code.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual ClientResult AnonymousBody(BinaryContent content, RequestOptions options)
+ public virtual Response AnonymousBody(RequestContent content, RequestContext context)
{
Argument.AssertNotNull(content, nameof(content));
- using PipelineMessage message = CreateAnonymousBodyRequest(content, options);
- return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
+ using HttpMessage message = CreateAnonymousBodyRequest(content, context);
+ return Pipeline.ProcessMessage(message, context);
}
///
@@ -592,16 +594,16 @@ public virtual ClientResult AnonymousBody(BinaryContent content, RequestOptions
///
///
/// The content to send as the body of the request.
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
/// is null.
- /// Service returned a non-success status code.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual async Task AnonymousBodyAsync(BinaryContent content, RequestOptions options)
+ public virtual async Task AnonymousBodyAsync(RequestContent content, RequestContext context)
{
Argument.AssertNotNull(content, nameof(content));
- using PipelineMessage message = CreateAnonymousBodyRequest(content, options);
- return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
+ using HttpMessage message = CreateAnonymousBodyRequest(content, context);
+ return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
/// body parameter without body decorator.
@@ -619,14 +621,14 @@ public virtual async Task AnonymousBodyAsync(BinaryContent content
/// optional literal bool.
/// optional nullable collection.
/// , or is null.
- /// Service returned a non-success status code.
- public virtual ClientResult AnonymousBody(string name, BinaryData requiredUnion, AnonymousBodyRequestRequiredLiteralString requiredLiteralString, AnonymousBodyRequestRequiredLiteralInt requiredLiteralInt, AnonymousBodyRequestRequiredLiteralFloat requiredLiteralFloat, bool requiredLiteralBool, string requiredBadDescription, IEnumerable requiredNullableList, AnonymousBodyRequestOptionalLiteralString? optionalLiteralString = default, AnonymousBodyRequestOptionalLiteralInt? optionalLiteralInt = default, AnonymousBodyRequestOptionalLiteralFloat? optionalLiteralFloat = default, bool? optionalLiteralBool = default, IEnumerable optionalNullableList = default)
+ /// Service returned a non-success status code.
+ public virtual Response AnonymousBody(string name, BinaryData requiredUnion, ThingRequiredLiteralString requiredLiteralString, ThingRequiredLiteralInt requiredLiteralInt, ThingRequiredLiteralFloat requiredLiteralFloat, bool requiredLiteralBool, string requiredBadDescription, IEnumerable requiredNullableList, ThingOptionalLiteralString? optionalLiteralString = default, ThingOptionalLiteralInt? optionalLiteralInt = default, ThingOptionalLiteralFloat? optionalLiteralFloat = default, bool? optionalLiteralBool = default, IEnumerable optionalNullableList = default)
{
Argument.AssertNotNull(name, nameof(name));
Argument.AssertNotNull(requiredUnion, nameof(requiredUnion));
Argument.AssertNotNull(requiredBadDescription, nameof(requiredBadDescription));
- AnonymousBodyRequest spreadModel = new AnonymousBodyRequest(
+ Thing spreadModel = new Thing(
name,
requiredUnion,
requiredLiteralString,
@@ -641,8 +643,8 @@ public virtual ClientResult AnonymousBody(string name, BinaryData require
optionalNullableList?.ToList() as IList ?? new ChangeTrackingList(),
requiredNullableList?.ToList() as IList ?? new ChangeTrackingList(),
null);
- ClientResult result = AnonymousBody(spreadModel, null);
- return ClientResult.FromValue((Thing)result, result.GetRawResponse());
+ Response result = AnonymousBody(spreadModel, null);
+ return Response.FromValue((Thing)result, result);
}
/// body parameter without body decorator.
@@ -660,14 +662,14 @@ public virtual ClientResult AnonymousBody(string name, BinaryData require
/// optional literal bool.
/// optional nullable collection.
/// , or is null.
- /// Service returned a non-success status code.
- public virtual async Task> AnonymousBodyAsync(string name, BinaryData requiredUnion, AnonymousBodyRequestRequiredLiteralString requiredLiteralString, AnonymousBodyRequestRequiredLiteralInt requiredLiteralInt, AnonymousBodyRequestRequiredLiteralFloat requiredLiteralFloat, bool requiredLiteralBool, string requiredBadDescription, IEnumerable requiredNullableList, AnonymousBodyRequestOptionalLiteralString? optionalLiteralString = default, AnonymousBodyRequestOptionalLiteralInt? optionalLiteralInt = default, AnonymousBodyRequestOptionalLiteralFloat? optionalLiteralFloat = default, bool? optionalLiteralBool = default, IEnumerable optionalNullableList = default)
+ /// Service returned a non-success status code.
+ public virtual async Task> AnonymousBodyAsync(string name, BinaryData requiredUnion, ThingRequiredLiteralString requiredLiteralString, ThingRequiredLiteralInt requiredLiteralInt, ThingRequiredLiteralFloat requiredLiteralFloat, bool requiredLiteralBool, string requiredBadDescription, IEnumerable requiredNullableList, ThingOptionalLiteralString? optionalLiteralString = default, ThingOptionalLiteralInt? optionalLiteralInt = default, ThingOptionalLiteralFloat? optionalLiteralFloat = default, bool? optionalLiteralBool = default, IEnumerable optionalNullableList = default)
{
Argument.AssertNotNull(name, nameof(name));
Argument.AssertNotNull(requiredUnion, nameof(requiredUnion));
Argument.AssertNotNull(requiredBadDescription, nameof(requiredBadDescription));
- AnonymousBodyRequest spreadModel = new AnonymousBodyRequest(
+ Thing spreadModel = new Thing(
name,
requiredUnion,
requiredLiteralString,
@@ -682,8 +684,8 @@ public virtual async Task> AnonymousBodyAsync(string name, B
optionalNullableList?.ToList() as IList ?? new ChangeTrackingList(),
requiredNullableList?.ToList() as IList ?? new ChangeTrackingList(),
null);
- ClientResult result = await AnonymousBodyAsync(spreadModel, null).ConfigureAwait(false);
- return ClientResult.FromValue((Thing)result, result.GetRawResponse());
+ Response result = await AnonymousBodyAsync(spreadModel, null).ConfigureAwait(false);
+ return Response.FromValue((Thing)result, result);
}
///
@@ -695,16 +697,16 @@ public virtual async Task> AnonymousBodyAsync(string name, B
///
///
/// The content to send as the body of the request.
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
/// is null.
- /// Service returned a non-success status code.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual ClientResult FriendlyModel(BinaryContent content, RequestOptions options)
+ public virtual Response FriendlyModel(RequestContent content, RequestContext context)
{
Argument.AssertNotNull(content, nameof(content));
- using PipelineMessage message = CreateFriendlyModelRequest(content, options);
- return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
+ using HttpMessage message = CreateFriendlyModelRequest(content, context);
+ return Pipeline.ProcessMessage(message, context);
}
///
@@ -716,42 +718,42 @@ public virtual ClientResult FriendlyModel(BinaryContent content, RequestOptions
///
///
/// The content to send as the body of the request.
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
/// is null.
- /// Service returned a non-success status code.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual async Task FriendlyModelAsync(BinaryContent content, RequestOptions options)
+ public virtual async Task FriendlyModelAsync(RequestContent content, RequestContext context)
{
Argument.AssertNotNull(content, nameof(content));
- using PipelineMessage message = CreateFriendlyModelRequest(content, options);
- return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
+ using HttpMessage message = CreateFriendlyModelRequest(content, context);
+ return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
/// Model can have its friendly name.
/// name of the NotFriend.
/// is null.
- /// Service returned a non-success status code.
- public virtual ClientResult FriendlyModel(string name)
+ /// Service returned a non-success status code.
+ public virtual Response FriendlyModel(string name)
{
Argument.AssertNotNull(name, nameof(name));
- FriendlyModelRequest spreadModel = new FriendlyModelRequest(name, null);
- ClientResult result = FriendlyModel(spreadModel, null);
- return ClientResult.FromValue((Friend)result, result.GetRawResponse());
+ Friend spreadModel = new Friend(name, null);
+ Response result = FriendlyModel(spreadModel, null);
+ return Response.FromValue((Friend)result, result);
}
/// Model can have its friendly name.
/// name of the NotFriend.
/// is null.
- /// Service returned a non-success status code.
- public virtual async Task> FriendlyModelAsync(string name)
+ /// Service returned a non-success status code.
+ public virtual async Task> FriendlyModelAsync(string name)
{
Argument.AssertNotNull(name, nameof(name));
- FriendlyModelRequest spreadModel = new FriendlyModelRequest(name, null);
- ClientResult result = await FriendlyModelAsync(spreadModel, null).ConfigureAwait(false);
- return ClientResult.FromValue((Friend)result, result.GetRawResponse());
+ Friend spreadModel = new Friend(name, null);
+ Response result = await FriendlyModelAsync(spreadModel, null).ConfigureAwait(false);
+ return Response.FromValue((Friend)result, result);
}
///
@@ -762,13 +764,13 @@ public virtual async Task> FriendlyModelAsync(string name)
///
///
///
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
- /// Service returned a non-success status code.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual ClientResult AddTimeHeader(RequestOptions options)
+ public virtual Response AddTimeHeader(RequestContext context)
{
- using PipelineMessage message = CreateAddTimeHeaderRequest(options);
- return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
+ using HttpMessage message = CreateAddTimeHeaderRequest(context);
+ return Pipeline.ProcessMessage(message, context);
}
///
@@ -779,25 +781,25 @@ public virtual ClientResult AddTimeHeader(RequestOptions options)
///
///
///
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
- /// Service returned a non-success status code.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual async Task AddTimeHeaderAsync(RequestOptions options)
+ public virtual async Task AddTimeHeaderAsync(RequestContext context)
{
- using PipelineMessage message = CreateAddTimeHeaderRequest(options);
- return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
+ using HttpMessage message = CreateAddTimeHeaderRequest(context);
+ return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
/// addTimeHeader.
- /// Service returned a non-success status code.
- public virtual ClientResult AddTimeHeader()
+ /// Service returned a non-success status code.
+ public virtual Response AddTimeHeader()
{
return AddTimeHeader(null);
}
/// addTimeHeader.
- /// Service returned a non-success status code.
- public virtual async Task AddTimeHeaderAsync()
+ /// Service returned a non-success status code.
+ public virtual async Task AddTimeHeaderAsync()
{
return await AddTimeHeaderAsync(null).ConfigureAwait(false);
}
@@ -811,16 +813,16 @@ public virtual async Task AddTimeHeaderAsync()
///
///
/// The content to send as the body of the request.
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
/// is null.
- /// Service returned a non-success status code.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual ClientResult ProjectedNameModel(BinaryContent content, RequestOptions options)
+ public virtual Response ProjectedNameModel(RequestContent content, RequestContext context)
{
Argument.AssertNotNull(content, nameof(content));
- using PipelineMessage message = CreateProjectedNameModelRequest(content, options);
- return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
+ using HttpMessage message = CreateProjectedNameModelRequest(content, context);
+ return Pipeline.ProcessMessage(message, context);
}
///
@@ -832,42 +834,42 @@ public virtual ClientResult ProjectedNameModel(BinaryContent content, RequestOpt
///
///
/// The content to send as the body of the request.
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
/// is null.
- /// Service returned a non-success status code.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual async Task ProjectedNameModelAsync(BinaryContent content, RequestOptions options)
+ public virtual async Task ProjectedNameModelAsync(RequestContent content, RequestContext context)
{
Argument.AssertNotNull(content, nameof(content));
- using PipelineMessage message = CreateProjectedNameModelRequest(content, options);
- return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
+ using HttpMessage message = CreateProjectedNameModelRequest(content, context);
+ return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
/// Model can have its projected name.
/// name of the ModelWithProjectedName.
/// is null.
- /// Service returned a non-success status code.
- public virtual ClientResult ProjectedNameModel(string name)
+ /// Service returned a non-success status code.
+ public virtual Response ProjectedNameModel(string name)
{
Argument.AssertNotNull(name, nameof(name));
- ProjectedNameModelRequest spreadModel = new ProjectedNameModelRequest(name, null);
- ClientResult result = ProjectedNameModel(spreadModel, null);
- return ClientResult.FromValue((ProjectedModel)result, result.GetRawResponse());
+ ProjectedModel spreadModel = new ProjectedModel(name, null);
+ Response result = ProjectedNameModel(spreadModel, null);
+ return Response.FromValue((ProjectedModel)result, result);
}
/// Model can have its projected name.
/// name of the ModelWithProjectedName.
/// is null.
- /// Service returned a non-success status code.
- public virtual async Task> ProjectedNameModelAsync(string name)
+ /// Service returned a non-success status code.
+ public virtual async Task> ProjectedNameModelAsync(string name)
{
Argument.AssertNotNull(name, nameof(name));
- ProjectedNameModelRequest spreadModel = new ProjectedNameModelRequest(name, null);
- ClientResult result = await ProjectedNameModelAsync(spreadModel, null).ConfigureAwait(false);
- return ClientResult.FromValue((ProjectedModel)result, result.GetRawResponse());
+ ProjectedModel spreadModel = new ProjectedModel(name, null);
+ Response result = await ProjectedNameModelAsync(spreadModel, null).ConfigureAwait(false);
+ return Response.FromValue((ProjectedModel)result, result);
}
///
@@ -878,13 +880,13 @@ public virtual async Task> ProjectedNameModelAsync(
///
///
///
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
- /// Service returned a non-success status code.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual ClientResult ReturnsAnonymousModel(RequestOptions options)
+ public virtual Response ReturnsAnonymousModel(RequestContext context)
{
- using PipelineMessage message = CreateReturnsAnonymousModelRequest(options);
- return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
+ using HttpMessage message = CreateReturnsAnonymousModelRequest(context);
+ return Pipeline.ProcessMessage(message, context);
}
///
@@ -895,29 +897,29 @@ public virtual ClientResult ReturnsAnonymousModel(RequestOptions options)
///
///
///
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
- /// Service returned a non-success status code.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual async Task ReturnsAnonymousModelAsync(RequestOptions options)
+ public virtual async Task ReturnsAnonymousModelAsync(RequestContext context)
{
- using PipelineMessage message = CreateReturnsAnonymousModelRequest(options);
- return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
+ using HttpMessage message = CreateReturnsAnonymousModelRequest(context);
+ return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
/// return anonymous model.
- /// Service returned a non-success status code.
- public virtual ClientResult ReturnsAnonymousModel()
+ /// Service returned a non-success status code.
+ public virtual Response ReturnsAnonymousModel()
{
- ClientResult result = ReturnsAnonymousModel(null);
- return ClientResult.FromValue((ReturnsAnonymousModelResponse)result, result.GetRawResponse());
+ Response result = ReturnsAnonymousModel(null);
+ return Response.FromValue((ReturnsAnonymousModelResponse)result, result);
}
/// return anonymous model.
- /// Service returned a non-success status code.
- public virtual async Task> ReturnsAnonymousModelAsync()
+ /// Service returned a non-success status code.
+ public virtual async Task> ReturnsAnonymousModelAsync()
{
- ClientResult result = await ReturnsAnonymousModelAsync(null).ConfigureAwait(false);
- return ClientResult.FromValue((ReturnsAnonymousModelResponse)result, result.GetRawResponse());
+ Response result = await ReturnsAnonymousModelAsync(null).ConfigureAwait(false);
+ return Response.FromValue((ReturnsAnonymousModelResponse)result, result);
}
///
@@ -929,16 +931,16 @@ public virtual async Task> ReturnsAn
///
///
///
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
/// is null.
- /// Service returned a non-success status code.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual ClientResult GetUnknownValue(string accept, RequestOptions options)
+ public virtual Response GetUnknownValue(string accept, RequestContext context)
{
Argument.AssertNotNull(accept, nameof(accept));
- using PipelineMessage message = CreateGetUnknownValueRequest(accept, options);
- return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
+ using HttpMessage message = CreateGetUnknownValueRequest(accept, context);
+ return Pipeline.ProcessMessage(message, context);
}
///
@@ -950,40 +952,40 @@ public virtual ClientResult GetUnknownValue(string accept, RequestOptions option
///
///
///
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
/// is null.
- /// Service returned a non-success status code.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual async Task GetUnknownValueAsync(string accept, RequestOptions options)
+ public virtual async Task GetUnknownValueAsync(string accept, RequestContext context)
{
Argument.AssertNotNull(accept, nameof(accept));
- using PipelineMessage message = CreateGetUnknownValueRequest(accept, options);
- return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
+ using HttpMessage message = CreateGetUnknownValueRequest(accept, context);
+ return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
/// get extensible enum.
///
/// is null.
- /// Service returned a non-success status code.
- public virtual ClientResult GetUnknownValue(string accept)
+ /// Service returned a non-success status code.
+ public virtual Response GetUnknownValue(string accept)
{
Argument.AssertNotNull(accept, nameof(accept));
- ClientResult result = GetUnknownValue(accept, null);
- return ClientResult.FromValue(result.GetRawResponse().Content.ToObjectFromJson(), result.GetRawResponse());
+ Response result = GetUnknownValue(accept, null);
+ return Response.FromValue(result.Content.ToObjectFromJson(), result);
}
/// get extensible enum.
///
/// is null.
- /// Service returned a non-success status code.
- public virtual async Task> GetUnknownValueAsync(string accept)
+ /// Service returned a non-success status code.
+ public virtual async Task> GetUnknownValueAsync(string accept)
{
Argument.AssertNotNull(accept, nameof(accept));
- ClientResult result = await GetUnknownValueAsync(accept, null).ConfigureAwait(false);
- return ClientResult.FromValue(result.GetRawResponse().Content.ToObjectFromJson(), result.GetRawResponse());
+ Response result = await GetUnknownValueAsync(accept, null).ConfigureAwait(false);
+ return Response.FromValue(result.Content.ToObjectFromJson(), result);
}
///
@@ -995,16 +997,16 @@ public virtual async Task> GetUnknownValueAsync(string acce
///
///
/// The content to send as the body of the request.
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
/// is null.
- /// Service returned a non-success status code.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual ClientResult InternalProtocol(BinaryContent content, RequestOptions options)
+ public virtual Response InternalProtocol(RequestContent content, RequestContext context)
{
Argument.AssertNotNull(content, nameof(content));
- using PipelineMessage message = CreateInternalProtocolRequest(content, options);
- return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
+ using HttpMessage message = CreateInternalProtocolRequest(content, context);
+ return Pipeline.ProcessMessage(message, context);
}
///
@@ -1016,40 +1018,40 @@ public virtual ClientResult InternalProtocol(BinaryContent content, RequestOptio
///
///
/// The content to send as the body of the request.
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
/// is null.
- /// Service returned a non-success status code.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual async Task InternalProtocolAsync(BinaryContent content, RequestOptions options)
+ public virtual async Task InternalProtocolAsync(RequestContent content, RequestContext context)
{
Argument.AssertNotNull(content, nameof(content));
- using PipelineMessage message = CreateInternalProtocolRequest(content, options);
- return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
+ using HttpMessage message = CreateInternalProtocolRequest(content, context);
+ return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
/// When set protocol false and convenient true, then the protocol method should be internal.
///
/// is null.
- /// Service returned a non-success status code.
- public virtual ClientResult InternalProtocol(Thing body)
+ /// Service returned a non-success status code.
+ public virtual Response InternalProtocol(Thing body)
{
Argument.AssertNotNull(body, nameof(body));
- ClientResult result = InternalProtocol(body, null);
- return ClientResult.FromValue((Thing)result, result.GetRawResponse());
+ Response result = InternalProtocol(body, null);
+ return Response.FromValue((Thing)result, result);
}
/// When set protocol false and convenient true, then the protocol method should be internal.
///
/// is null.
- /// Service returned a non-success status code.
- public virtual async Task> InternalProtocolAsync(Thing body)
+ /// Service returned a non-success status code.
+ public virtual async Task> InternalProtocolAsync(Thing body)
{
Argument.AssertNotNull(body, nameof(body));
- ClientResult result = await InternalProtocolAsync(body, null).ConfigureAwait(false);
- return ClientResult.FromValue((Thing)result, result.GetRawResponse());
+ Response result = await InternalProtocolAsync(body, null).ConfigureAwait(false);
+ return Response.FromValue((Thing)result, result);
}
///
@@ -1060,13 +1062,13 @@ public virtual async Task> InternalProtocolAsync(Thing body)
///
///
///
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
- /// Service returned a non-success status code.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual ClientResult StillConvenient(RequestOptions options)
+ public virtual Response StillConvenient(RequestContext context)
{
- using PipelineMessage message = CreateStillConvenientRequest(options);
- return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
+ using HttpMessage message = CreateStillConvenientRequest(context);
+ return Pipeline.ProcessMessage(message, context);
}
///
@@ -1077,25 +1079,25 @@ public virtual ClientResult StillConvenient(RequestOptions options)
///
///
///
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
- /// Service returned a non-success status code.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual async Task StillConvenientAsync(RequestOptions options)
+ public virtual async Task StillConvenientAsync(RequestContext context)
{
- using PipelineMessage message = CreateStillConvenientRequest(options);
- return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
+ using HttpMessage message = CreateStillConvenientRequest(context);
+ return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
/// When set protocol false and convenient true, the convenient method should be generated even it has the same signature as protocol one.
- /// Service returned a non-success status code.
- public virtual ClientResult StillConvenient()
+ /// Service returned a non-success status code.
+ public virtual Response StillConvenient()
{
return StillConvenient(null);
}
/// When set protocol false and convenient true, the convenient method should be generated even it has the same signature as protocol one.
- /// Service returned a non-success status code.
- public virtual async Task StillConvenientAsync()
+ /// Service returned a non-success status code.
+ public virtual async Task StillConvenientAsync()
{
return await StillConvenientAsync(null).ConfigureAwait(false);
}
@@ -1109,16 +1111,16 @@ public virtual async Task StillConvenientAsync()
///
///
///
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
/// is null.
- /// Service returned a non-success status code.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual ClientResult HeadAsBoolean(string id, RequestOptions options)
+ public virtual Response HeadAsBoolean(string id, RequestContext context)
{
Argument.AssertNotNull(id, nameof(id));
- using PipelineMessage message = CreateHeadAsBooleanRequest(id, options);
- return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
+ using HttpMessage message = CreateHeadAsBooleanRequest(id, context);
+ return Pipeline.ProcessMessage(message, context);
}
///
@@ -1130,23 +1132,23 @@ public virtual ClientResult HeadAsBoolean(string id, RequestOptions options)
///
///
///
- /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
/// is null.
- /// Service returned a non-success status code.
+ /// Service returned a non-success status code.
/// The response returned from the service.
- public virtual async Task HeadAsBooleanAsync(string id, RequestOptions options)
+ public virtual async Task HeadAsBooleanAsync(string id, RequestContext context)
{
Argument.AssertNotNull(id, nameof(id));
- using PipelineMessage message = CreateHeadAsBooleanRequest(id, options);
- return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
+ using HttpMessage message = CreateHeadAsBooleanRequest(id, context);
+ return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
}
/// head as boolean.
///
/// is null.
- /// Service returned a non-success status code.
- public virtual ClientResult HeadAsBoolean(string id)
+ /// Service returned a non-success status code.
+ public virtual Response HeadAsBoolean(string id)
{
Argument.AssertNotNull(id, nameof(id));
@@ -1156,8 +1158,8 @@ public virtual ClientResult HeadAsBoolean(string id)
/// head as boolean.
///
/// is null.
- /// Service returned a non-success status code.
- public virtual async Task HeadAsBooleanAsync(string id)
+ /// Service returned a non-success status code.
+ public virtual async Task HeadAsBooleanAsync(string id)
{
Argument.AssertNotNull(id, nameof(id));
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/BasicTypeSpecClientOptions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/BasicTypeSpecClientOptions.cs
index 902ba6acf982..ce57ff03d1bc 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/BasicTypeSpecClientOptions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/BasicTypeSpecClientOptions.cs
@@ -6,12 +6,12 @@
#nullable disable
using System;
-using System.ClientModel.Primitives;
+using Azure.Core;
namespace BasicTypeSpec
{
/// Client options for .
- public partial class BasicTypeSpecClientOptions : ClientPipelineOptions
+ public partial class BasicTypeSpecClientOptions : ClientOptions
{
private const ServiceVersion LatestVersion = ServiceVersion.V2024_08_16_Preview;
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Internal/ClientPipelineExtensions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Internal/ClientPipelineExtensions.cs
index d9378b66796e..82e2f9dcaead 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Internal/ClientPipelineExtensions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Internal/ClientPipelineExtensions.cs
@@ -5,66 +5,73 @@
#nullable disable
-using System.ClientModel;
-using System.ClientModel.Primitives;
using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
namespace BasicTypeSpec
{
internal static partial class ClientPipelineExtensions
{
- public static async ValueTask ProcessMessageAsync(this ClientPipeline pipeline, PipelineMessage message, RequestOptions options)
+ public static async ValueTask ProcessMessageAsync(this HttpPipeline pipeline, HttpMessage message, RequestContext options)
{
- await pipeline.SendAsync(message).ConfigureAwait(false);
+ await pipeline.SendAsync(message, default).ConfigureAwait(false);
- if (message.Response.IsError && (options?.ErrorOptions & ClientErrorBehaviors.NoThrow) != ClientErrorBehaviors.NoThrow)
+ if (message.Response.IsError && (options?.ErrorOptions & ErrorOptions.NoThrow) != ErrorOptions.NoThrow)
{
- throw await ClientResultException.CreateAsync(message.Response).ConfigureAwait(false);
+ throw new RequestFailedException(message.Response);
}
- PipelineResponse response = message.BufferResponse ? message.Response : message.ExtractResponse();
+ Response response = message.BufferResponse ? message.Response : ExtractResponseContent(message);
return response;
}
- public static PipelineResponse ProcessMessage(this ClientPipeline pipeline, PipelineMessage message, RequestOptions options)
+ public static Response ProcessMessage(this HttpPipeline pipeline, HttpMessage message, RequestContext options)
{
- pipeline.Send(message);
+ pipeline.Send(message, default);
- if (message.Response.IsError && (options?.ErrorOptions & ClientErrorBehaviors.NoThrow) != ClientErrorBehaviors.NoThrow)
+ if (message.Response.IsError && (options?.ErrorOptions & ErrorOptions.NoThrow) != ErrorOptions.NoThrow)
{
- throw new ClientResultException(message.Response);
+ throw new RequestFailedException(message.Response);
}
- PipelineResponse response = message.BufferResponse ? message.Response : message.ExtractResponse();
+ Response response = message.BufferResponse ? message.Response : ExtractResponseContent(message);
return response;
}
- public static async ValueTask> ProcessHeadAsBoolMessageAsync(this ClientPipeline pipeline, PipelineMessage message, RequestOptions options)
+ public static async ValueTask> ProcessHeadAsBoolMessageAsync(this HttpPipeline pipeline, HttpMessage message, RequestContext options)
{
- PipelineResponse response = await pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false);
+ Response response = await pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false);
switch (response.Status)
{
case >= 200 and < 300:
- return ClientResult.FromValue(true, response);
+ return Response.FromValue(true, response);
case >= 400 and < 500:
- return ClientResult.FromValue(false, response);
+ return Response.FromValue(false, response);
default:
- return new ErrorResult(response, new ClientResultException(response));
+ return new ErrorResult(response, new RequestFailedException(response));
}
}
- public static ClientResult ProcessHeadAsBoolMessage(this ClientPipeline pipeline, PipelineMessage message, RequestOptions options)
+ public static Response ProcessHeadAsBoolMessage(this HttpPipeline pipeline, HttpMessage message, RequestContext options)
{
- PipelineResponse response = pipeline.ProcessMessage(message, options);
+ Response response = pipeline.ProcessMessage(message, options);
switch (response.Status)
{
case >= 200 and < 300:
- return ClientResult.FromValue(true, response);
+ return Response.FromValue(true, response);
case >= 400 and < 500:
- return ClientResult.FromValue(false, response);
+ return Response.FromValue(false, response);
default:
- return new ErrorResult(response, new ClientResultException(response));
+ return new ErrorResult(response, new RequestFailedException(response));
}
}
+
+ private static Response ExtractResponseContent(HttpMessage message)
+ {
+ message.ExtractResponseContent();
+ return message.Response;
+ }
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Internal/ClientUriBuilder.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Internal/ClientUriBuilder.cs
index a887f440ebe9..86b06504d0c8 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Internal/ClientUriBuilder.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Internal/ClientUriBuilder.cs
@@ -9,10 +9,11 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
+using Azure.Core;
namespace BasicTypeSpec
{
- internal partial class ClientUriBuilder
+ internal partial class ClientUriBuilder : RequestUriBuilder
{
private UriBuilder _uriBuilder;
private StringBuilder _pathBuilder;
@@ -28,84 +29,6 @@ public ClientUriBuilder()
private StringBuilder QueryBuilder => _queryBuilder ??= new StringBuilder(UriBuilder.Query);
- public void Reset(Uri uri)
- {
- _uriBuilder = new UriBuilder(uri);
- _pathBuilder = new StringBuilder(UriBuilder.Path);
- _queryBuilder = new StringBuilder(UriBuilder.Query);
- }
-
- public void AppendPath(string value, bool escape)
- {
- if (escape)
- {
- value = Uri.EscapeDataString(value);
- }
- if (PathBuilder.Length > 0 && PathBuilder[PathBuilder.Length - 1] == '/' && value[0] == '/')
- {
- PathBuilder.Remove(PathBuilder.Length - 1, 1);
- }
- PathBuilder.Append(value);
- UriBuilder.Path = PathBuilder.ToString();
- }
-
- public void AppendPath(bool value, bool escape = false) => AppendPath(TypeFormatters.ConvertToString(value), escape);
-
- public void AppendPath(float value, bool escape = true) => AppendPath(TypeFormatters.ConvertToString(value), escape);
-
- public void AppendPath(double value, bool escape = true) => AppendPath(TypeFormatters.ConvertToString(value), escape);
-
- public void AppendPath(int value, bool escape = true) => AppendPath(TypeFormatters.ConvertToString(value), escape);
-
- public void AppendPath(byte[] value, string format, bool escape = true) => AppendPath(TypeFormatters.ConvertToString(value, format), escape);
-
- public void AppendPath(IEnumerable value, bool escape = true) => AppendPath(TypeFormatters.ConvertToString(value), escape);
-
- public void AppendPath(DateTimeOffset value, string format, bool escape = true) => AppendPath(TypeFormatters.ConvertToString(value, format), escape);
-
- public void AppendPath(TimeSpan value, string format, bool escape = true) => AppendPath(TypeFormatters.ConvertToString(value, format), escape);
-
- public void AppendPath(Guid value, bool escape = true) => AppendPath(TypeFormatters.ConvertToString(value), escape);
-
- public void AppendPath(long value, bool escape = true) => AppendPath(TypeFormatters.ConvertToString(value), escape);
-
- public void AppendQuery(string name, string value, bool escape)
- {
- if (QueryBuilder.Length > 0)
- {
- QueryBuilder.Append('&');
- }
- if (escape)
- {
- value = Uri.EscapeDataString(value);
- }
- QueryBuilder.Append(name);
- QueryBuilder.Append('=');
- QueryBuilder.Append(value);
- }
-
- public void AppendQuery(string name, bool value, bool escape = false) => AppendQuery(name, TypeFormatters.ConvertToString(value), escape);
-
- public void AppendQuery(string name, float value, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value), escape);
-
- public void AppendQuery(string name, DateTimeOffset value, string format, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value, format), escape);
-
- public void AppendQuery(string name, TimeSpan value, string format, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value, format), escape);
-
- public void AppendQuery(string name, double value, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value), escape);
-
- public void AppendQuery(string name, decimal value, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value), escape);
-
- public void AppendQuery(string name, int value, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value), escape);
-
- public void AppendQuery(string name, long value, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value), escape);
-
- public void AppendQuery(string name, TimeSpan value, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value), escape);
-
- public void AppendQuery(string name, byte[] value, string format, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value, format), escape);
-
- public void AppendQuery(string name, Guid value, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value), escape);
-
public void AppendQueryDelimited(string name, IEnumerable value, string delimiter, bool escape = true)
{
IEnumerable stringValues = value.Select(v => TypeFormatters.ConvertToString(v));
@@ -117,18 +40,5 @@ public void AppendQueryDelimited(string name, IEnumerable value, string de
IEnumerable stringValues = value.Select(v => TypeFormatters.ConvertToString(v, format));
AppendQuery(name, string.Join(delimiter, stringValues), escape);
}
-
- public Uri ToUri()
- {
- if (_pathBuilder != null)
- {
- UriBuilder.Path = _pathBuilder.ToString();
- }
- if (_queryBuilder != null)
- {
- UriBuilder.Query = _queryBuilder.ToString();
- }
- return UriBuilder.Uri;
- }
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Internal/ErrorResult.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Internal/ErrorResult.cs
index 99d36a31e528..cc9535a76e79 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Internal/ErrorResult.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Internal/ErrorResult.cs
@@ -5,22 +5,26 @@
#nullable disable
-using System.ClientModel;
-using System.ClientModel.Primitives;
+using Azure;
namespace BasicTypeSpec
{
- internal partial class ErrorResult : ClientResult
+ internal partial class ErrorResult : Response
{
- private readonly PipelineResponse _response;
- private readonly ClientResultException _exception;
+ private readonly Response _response;
+ private readonly RequestFailedException _exception;
- public ErrorResult(PipelineResponse response, ClientResultException exception) : base(default, response)
+ public ErrorResult(Response response, RequestFailedException exception)
{
_response = response;
_exception = exception;
}
public override T Value => throw _exception;
+
+ public override Response GetRawResponse()
+ {
+ return _response;
+ }
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Internal/Utf8JsonBinaryContent.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Internal/Utf8JsonBinaryContent.cs
new file mode 100644
index 000000000000..d7d35c3dfb08
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Internal/Utf8JsonBinaryContent.cs
@@ -0,0 +1,55 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.IO;
+using System.Text.Json;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+
+namespace BasicTypeSpec
+{
+ internal partial class Utf8JsonBinaryContent : RequestContent
+ {
+ private readonly MemoryStream _stream;
+ private readonly RequestContent _content;
+
+ public Utf8JsonBinaryContent()
+ {
+ _stream = new MemoryStream();
+ _content = Create(_stream);
+ JsonWriter = new Utf8JsonWriter(_stream);
+ }
+
+ public Utf8JsonWriter JsonWriter { get; }
+
+ public override async Task WriteToAsync(Stream stream, CancellationToken cancellationToken = default)
+ {
+ await JsonWriter.FlushAsync().ConfigureAwait(false);
+ await _content.WriteToAsync(stream, cancellationToken).ConfigureAwait(false);
+ }
+
+ public override void WriteTo(Stream stream, CancellationToken cancellationToken = default)
+ {
+ JsonWriter.Flush();
+ _content.WriteTo(stream, cancellationToken);
+ }
+
+ public override bool TryComputeLength(out long length)
+ {
+ length = JsonWriter.BytesCommitted + JsonWriter.BytesPending;
+ return true;
+ }
+
+ public override void Dispose()
+ {
+ JsonWriter.Dispose();
+ _content.Dispose();
+ _stream.Dispose();
+ }
+ }
+}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequest.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequest.Serialization.cs
deleted file mode 100644
index aed8f79f6ab4..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequest.Serialization.cs
+++ /dev/null
@@ -1,342 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ClientModel;
-using System.ClientModel.Primitives;
-using System.Collections.Generic;
-using System.Text.Json;
-using BasicTypeSpec;
-
-namespace BasicTypeSpec.Models
-{
- ///
- internal partial class AnonymousBodyRequest : IJsonModel
- {
- internal AnonymousBodyRequest()
- {
- }
-
- void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
- {
- writer.WriteStartObject();
- JsonModelWriteCore(writer, options);
- writer.WriteEndObject();
- }
-
- /// The JSON writer.
- /// The client options for reading and writing models.
- protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
- {
- string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
- if (format != "J")
- {
- throw new FormatException($"The model {nameof(AnonymousBodyRequest)} does not support writing '{format}' format.");
- }
- writer.WritePropertyName("name"u8);
- writer.WriteStringValue(Name);
- writer.WritePropertyName("requiredUnion"u8);
-#if NET6_0_OR_GREATER
- writer.WriteRawValue(RequiredUnion);
-#else
- using (JsonDocument document = JsonDocument.Parse(RequiredUnion))
- {
- JsonSerializer.Serialize(writer, document.RootElement);
- }
-#endif
- writer.WritePropertyName("requiredLiteralString"u8);
- writer.WriteStringValue(RequiredLiteralString.ToString());
- writer.WritePropertyName("requiredLiteralInt"u8);
- writer.WriteNumberValue(RequiredLiteralInt.ToSerialInt32());
- writer.WritePropertyName("requiredLiteralFloat"u8);
- writer.WriteNumberValue(RequiredLiteralFloat.ToSerialSingle());
- writer.WritePropertyName("requiredLiteralBool"u8);
- writer.WriteBooleanValue(RequiredLiteralBool);
- if (Optional.IsDefined(OptionalLiteralString))
- {
- writer.WritePropertyName("optionalLiteralString"u8);
- writer.WriteStringValue(OptionalLiteralString.Value.ToString());
- }
- if (Optional.IsDefined(OptionalLiteralInt))
- {
- writer.WritePropertyName("optionalLiteralInt"u8);
- writer.WriteNumberValue(OptionalLiteralInt.Value.ToSerialInt32());
- }
- if (Optional.IsDefined(OptionalLiteralFloat))
- {
- writer.WritePropertyName("optionalLiteralFloat"u8);
- writer.WriteNumberValue(OptionalLiteralFloat.Value.ToSerialSingle());
- }
- if (Optional.IsDefined(OptionalLiteralBool))
- {
- writer.WritePropertyName("optionalLiteralBool"u8);
- writer.WriteBooleanValue(OptionalLiteralBool.Value);
- }
- writer.WritePropertyName("requiredBadDescription"u8);
- writer.WriteStringValue(RequiredBadDescription);
- if (Optional.IsCollectionDefined(OptionalNullableList))
- {
- if (OptionalNullableList != null)
- {
- writer.WritePropertyName("optionalNullableList"u8);
- writer.WriteStartArray();
- foreach (var item in OptionalNullableList)
- {
- writer.WriteNumberValue(item);
- }
- writer.WriteEndArray();
- }
- else
- {
- writer.WriteNull("optionalNullableList"u8);
- }
- }
- if (RequiredNullableList != null && Optional.IsCollectionDefined(RequiredNullableList))
- {
- writer.WritePropertyName("requiredNullableList"u8);
- writer.WriteStartArray();
- foreach (var item in RequiredNullableList)
- {
- writer.WriteNumberValue(item);
- }
- writer.WriteEndArray();
- }
- else
- {
- writer.WriteNull("requiredNullableList"u8);
- }
- if (options.Format != "W" && _additionalBinaryDataProperties != null)
- {
- foreach (var item in _additionalBinaryDataProperties)
- {
- writer.WritePropertyName(item.Key);
-#if NET6_0_OR_GREATER
- writer.WriteRawValue(item.Value);
-#else
- using (JsonDocument document = JsonDocument.Parse(item.Value))
- {
- JsonSerializer.Serialize(writer, document.RootElement);
- }
-#endif
- }
- }
- }
-
- AnonymousBodyRequest IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options);
-
- /// The JSON reader.
- /// The client options for reading and writing models.
- protected virtual AnonymousBodyRequest JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
- {
- string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
- if (format != "J")
- {
- throw new FormatException($"The model {nameof(AnonymousBodyRequest)} does not support reading '{format}' format.");
- }
- using JsonDocument document = JsonDocument.ParseValue(ref reader);
- return DeserializeAnonymousBodyRequest(document.RootElement, options);
- }
-
- internal static AnonymousBodyRequest DeserializeAnonymousBodyRequest(JsonElement element, ModelReaderWriterOptions options)
- {
- if (element.ValueKind == JsonValueKind.Null)
- {
- return null;
- }
- string name = default;
- BinaryData requiredUnion = default;
- AnonymousBodyRequestRequiredLiteralString requiredLiteralString = default;
- AnonymousBodyRequestRequiredLiteralInt requiredLiteralInt = default;
- AnonymousBodyRequestRequiredLiteralFloat requiredLiteralFloat = default;
- bool requiredLiteralBool = default;
- AnonymousBodyRequestOptionalLiteralString? optionalLiteralString = default;
- AnonymousBodyRequestOptionalLiteralInt? optionalLiteralInt = default;
- AnonymousBodyRequestOptionalLiteralFloat? optionalLiteralFloat = default;
- bool? optionalLiteralBool = default;
- string requiredBadDescription = default;
- IList optionalNullableList = default;
- IList requiredNullableList = default;
- IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary();
- foreach (var prop in element.EnumerateObject())
- {
- if (prop.NameEquals("name"u8))
- {
- name = prop.Value.GetString();
- continue;
- }
- if (prop.NameEquals("requiredUnion"u8))
- {
- requiredUnion = BinaryData.FromString(prop.Value.GetRawText());
- continue;
- }
- if (prop.NameEquals("requiredLiteralString"u8))
- {
- requiredLiteralString = new AnonymousBodyRequestRequiredLiteralString(prop.Value.GetString());
- continue;
- }
- if (prop.NameEquals("requiredLiteralInt"u8))
- {
- requiredLiteralInt = new AnonymousBodyRequestRequiredLiteralInt(prop.Value.GetInt32());
- continue;
- }
- if (prop.NameEquals("requiredLiteralFloat"u8))
- {
- requiredLiteralFloat = new AnonymousBodyRequestRequiredLiteralFloat(prop.Value.GetSingle());
- continue;
- }
- if (prop.NameEquals("requiredLiteralBool"u8))
- {
- requiredLiteralBool = prop.Value.GetBoolean();
- continue;
- }
- if (prop.NameEquals("optionalLiteralString"u8))
- {
- if (prop.Value.ValueKind == JsonValueKind.Null)
- {
- optionalLiteralString = null;
- continue;
- }
- optionalLiteralString = new AnonymousBodyRequestOptionalLiteralString(prop.Value.GetString());
- continue;
- }
- if (prop.NameEquals("optionalLiteralInt"u8))
- {
- if (prop.Value.ValueKind == JsonValueKind.Null)
- {
- optionalLiteralInt = null;
- continue;
- }
- optionalLiteralInt = new AnonymousBodyRequestOptionalLiteralInt(prop.Value.GetInt32());
- continue;
- }
- if (prop.NameEquals("optionalLiteralFloat"u8))
- {
- if (prop.Value.ValueKind == JsonValueKind.Null)
- {
- optionalLiteralFloat = null;
- continue;
- }
- optionalLiteralFloat = new AnonymousBodyRequestOptionalLiteralFloat(prop.Value.GetSingle());
- continue;
- }
- if (prop.NameEquals("optionalLiteralBool"u8))
- {
- if (prop.Value.ValueKind == JsonValueKind.Null)
- {
- optionalLiteralBool = null;
- continue;
- }
- optionalLiteralBool = prop.Value.GetBoolean();
- continue;
- }
- if (prop.NameEquals("requiredBadDescription"u8))
- {
- requiredBadDescription = prop.Value.GetString();
- continue;
- }
- if (prop.NameEquals("optionalNullableList"u8))
- {
- if (prop.Value.ValueKind == JsonValueKind.Null)
- {
- continue;
- }
- List array = new List();
- foreach (var item in prop.Value.EnumerateArray())
- {
- array.Add(item.GetInt32());
- }
- optionalNullableList = array;
- continue;
- }
- if (prop.NameEquals("requiredNullableList"u8))
- {
- if (prop.Value.ValueKind == JsonValueKind.Null)
- {
- requiredNullableList = new ChangeTrackingList();
- continue;
- }
- List array = new List();
- foreach (var item in prop.Value.EnumerateArray())
- {
- array.Add(item.GetInt32());
- }
- requiredNullableList = array;
- continue;
- }
- if (options.Format != "W")
- {
- additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText()));
- }
- }
- return new AnonymousBodyRequest(
- name,
- requiredUnion,
- requiredLiteralString,
- requiredLiteralInt,
- requiredLiteralFloat,
- requiredLiteralBool,
- optionalLiteralString,
- optionalLiteralInt,
- optionalLiteralFloat,
- optionalLiteralBool,
- requiredBadDescription,
- optionalNullableList ?? new ChangeTrackingList(),
- requiredNullableList,
- additionalBinaryDataProperties);
- }
-
- BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options);
-
- /// The client options for reading and writing models.
- protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options)
- {
- string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
- switch (format)
- {
- case "J":
- return ModelReaderWriter.Write(this, options);
- default:
- throw new FormatException($"The model {nameof(AnonymousBodyRequest)} does not support writing '{options.Format}' format.");
- }
- }
-
- AnonymousBodyRequest IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options);
-
- /// The data to parse.
- /// The client options for reading and writing models.
- protected virtual AnonymousBodyRequest PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options)
- {
- string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
- switch (format)
- {
- case "J":
- using (JsonDocument document = JsonDocument.Parse(data))
- {
- return DeserializeAnonymousBodyRequest(document.RootElement, options);
- }
- default:
- throw new FormatException($"The model {nameof(AnonymousBodyRequest)} does not support reading '{options.Format}' format.");
- }
- }
-
- string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
-
- /// The to serialize into .
- public static implicit operator BinaryContent(AnonymousBodyRequest anonymousBodyRequest)
- {
- return BinaryContent.Create(anonymousBodyRequest, ModelSerializationExtensions.WireOptions);
- }
-
- /// The to deserialize the from.
- public static explicit operator AnonymousBodyRequest(ClientResult result)
- {
- using PipelineResponse response = result.GetRawResponse();
- using JsonDocument document = JsonDocument.Parse(response.Content);
- return DeserializeAnonymousBodyRequest(document.RootElement, ModelSerializationExtensions.WireOptions);
- }
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequest.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequest.cs
deleted file mode 100644
index fb15e8388940..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequest.cs
+++ /dev/null
@@ -1,129 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json;
-using BasicTypeSpec;
-
-namespace BasicTypeSpec.Models
-{
- /// The AnonymousBodyRequest.
- internal partial class AnonymousBodyRequest
- {
- /// Keeps track of any properties unknown to the library.
- private protected IDictionary _additionalBinaryDataProperties;
-
- internal AnonymousBodyRequest(string name, BinaryData requiredUnion, string requiredBadDescription, IEnumerable requiredNullableList)
- {
- Name = name;
- RequiredUnion = requiredUnion;
- RequiredBadDescription = requiredBadDescription;
- OptionalNullableList = new ChangeTrackingList();
- RequiredNullableList = requiredNullableList?.ToList();
- }
-
- internal AnonymousBodyRequest(string name, BinaryData requiredUnion, AnonymousBodyRequestRequiredLiteralString requiredLiteralString, AnonymousBodyRequestRequiredLiteralInt requiredLiteralInt, AnonymousBodyRequestRequiredLiteralFloat requiredLiteralFloat, bool requiredLiteralBool, AnonymousBodyRequestOptionalLiteralString? optionalLiteralString, AnonymousBodyRequestOptionalLiteralInt? optionalLiteralInt, AnonymousBodyRequestOptionalLiteralFloat? optionalLiteralFloat, bool? optionalLiteralBool, string requiredBadDescription, IList optionalNullableList, IList requiredNullableList, IDictionary additionalBinaryDataProperties)
- {
- Name = name;
- RequiredUnion = requiredUnion;
- RequiredLiteralString = requiredLiteralString;
- RequiredLiteralInt = requiredLiteralInt;
- RequiredLiteralFloat = requiredLiteralFloat;
- RequiredLiteralBool = requiredLiteralBool;
- OptionalLiteralString = optionalLiteralString;
- OptionalLiteralInt = optionalLiteralInt;
- OptionalLiteralFloat = optionalLiteralFloat;
- OptionalLiteralBool = optionalLiteralBool;
- RequiredBadDescription = requiredBadDescription;
- OptionalNullableList = optionalNullableList;
- RequiredNullableList = requiredNullableList;
- _additionalBinaryDataProperties = additionalBinaryDataProperties;
- }
-
- /// name of the Thing.
- public string Name { get; set; }
-
- ///
- /// required Union
- /// To assign an object to this property use .
- /// To assign an already formatted json string to this property use .
- ///
- ///
- /// Supported types:
- ///
- /// -
- /// .
- ///
- /// -
- /// where T is of type .
- ///
- /// -
- /// .
- ///
- ///
- ///
- ///
- ///
- /// Examples:
- ///
- /// -
- /// BinaryData.FromObjectAsJson("foo").
- /// Creates a payload of "foo".
- ///
- /// -
- /// BinaryData.FromString("\"foo\"").
- /// Creates a payload of "foo".
- ///
- /// -
- /// BinaryData.FromObjectAsJson(new { key = "value" }).
- /// Creates a payload of { "key": "value" }.
- ///
- /// -
- /// BinaryData.FromString("{\"key\": \"value\"}").
- /// Creates a payload of { "key": "value" }.
- ///
- ///
- ///
- ///
- public BinaryData RequiredUnion { get; set; }
-
- /// required literal string.
- public AnonymousBodyRequestRequiredLiteralString RequiredLiteralString { get; } = "accept";
-
- /// required literal int.
- public AnonymousBodyRequestRequiredLiteralInt RequiredLiteralInt { get; } = 123;
-
- /// required literal float.
- public AnonymousBodyRequestRequiredLiteralFloat RequiredLiteralFloat { get; } = 1.23F;
-
- /// required literal bool.
- public bool RequiredLiteralBool { get; } = false;
-
- /// optional literal string.
- public AnonymousBodyRequestOptionalLiteralString? OptionalLiteralString { get; set; }
-
- /// optional literal int.
- public AnonymousBodyRequestOptionalLiteralInt? OptionalLiteralInt { get; set; }
-
- /// optional literal float.
- public AnonymousBodyRequestOptionalLiteralFloat? OptionalLiteralFloat { get; set; }
-
- /// optional literal bool.
- public bool? OptionalLiteralBool { get; set; }
-
- /// description with xml <|endoftext|>.
- public string RequiredBadDescription { get; set; }
-
- /// optional nullable collection.
- public IList OptionalNullableList { get; set; }
-
- /// required nullable collection.
- public IList RequiredNullableList { get; set; }
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestOptionalLiteralFloat.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestOptionalLiteralFloat.Serialization.cs
deleted file mode 100644
index 8ce7df2648af..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestOptionalLiteralFloat.Serialization.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-namespace BasicTypeSpec.Models
-{
- ///
- public readonly partial struct AnonymousBodyRequestOptionalLiteralFloat
- {
- internal float ToSerialSingle() => _value;
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestOptionalLiteralFloat.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestOptionalLiteralFloat.cs
deleted file mode 100644
index e93cd939069b..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestOptionalLiteralFloat.cs
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-using System.Globalization;
-
-namespace BasicTypeSpec.Models
-{
- /// The AnonymousBodyRequest_optionalLiteralFloat.
- public readonly partial struct AnonymousBodyRequestOptionalLiteralFloat : IEquatable
- {
- private readonly float _value;
- /// 4.56.
- private const float _456Value = 4.56F;
-
- /// Initializes a new instance of .
- /// The value.
- public AnonymousBodyRequestOptionalLiteralFloat(float value)
- {
- _value = value;
- }
-
- /// 4.56.
- public static AnonymousBodyRequestOptionalLiteralFloat _456 { get; } = new AnonymousBodyRequestOptionalLiteralFloat(_456Value);
-
- /// Determines if two values are the same.
- /// The left value to compare.
- /// The right value to compare.
- public static bool operator ==(AnonymousBodyRequestOptionalLiteralFloat left, AnonymousBodyRequestOptionalLiteralFloat right) => left.Equals(right);
-
- /// Determines if two values are not the same.
- /// The left value to compare.
- /// The right value to compare.
- public static bool operator !=(AnonymousBodyRequestOptionalLiteralFloat left, AnonymousBodyRequestOptionalLiteralFloat right) => !left.Equals(right);
-
- /// Converts a string to a .
- /// The value.
- public static implicit operator AnonymousBodyRequestOptionalLiteralFloat(float value) => new AnonymousBodyRequestOptionalLiteralFloat(value);
-
- /// The object to compare.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is AnonymousBodyRequestOptionalLiteralFloat other && Equals(other);
-
- /// The instance to compare.
- public bool Equals(AnonymousBodyRequestOptionalLiteralFloat other) => Equals(_value, other._value);
-
- ///
- public override int GetHashCode() => _value.GetHashCode();
-
- ///
- public override string ToString() => _value.ToString(CultureInfo.InvariantCulture);
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestOptionalLiteralInt.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestOptionalLiteralInt.Serialization.cs
deleted file mode 100644
index 26bc9db6442f..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestOptionalLiteralInt.Serialization.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-namespace BasicTypeSpec.Models
-{
- ///
- public readonly partial struct AnonymousBodyRequestOptionalLiteralInt
- {
- internal int ToSerialInt32() => _value;
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestOptionalLiteralInt.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestOptionalLiteralInt.cs
deleted file mode 100644
index 8ba0020b646c..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestOptionalLiteralInt.cs
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-using System.Globalization;
-
-namespace BasicTypeSpec.Models
-{
- /// The AnonymousBodyRequest_optionalLiteralInt.
- public readonly partial struct AnonymousBodyRequestOptionalLiteralInt : IEquatable
- {
- private readonly int _value;
- /// 456.
- private const int _456Value = 456;
-
- /// Initializes a new instance of .
- /// The value.
- public AnonymousBodyRequestOptionalLiteralInt(int value)
- {
- _value = value;
- }
-
- /// 456.
- public static AnonymousBodyRequestOptionalLiteralInt _456 { get; } = new AnonymousBodyRequestOptionalLiteralInt(_456Value);
-
- /// Determines if two values are the same.
- /// The left value to compare.
- /// The right value to compare.
- public static bool operator ==(AnonymousBodyRequestOptionalLiteralInt left, AnonymousBodyRequestOptionalLiteralInt right) => left.Equals(right);
-
- /// Determines if two values are not the same.
- /// The left value to compare.
- /// The right value to compare.
- public static bool operator !=(AnonymousBodyRequestOptionalLiteralInt left, AnonymousBodyRequestOptionalLiteralInt right) => !left.Equals(right);
-
- /// Converts a string to a .
- /// The value.
- public static implicit operator AnonymousBodyRequestOptionalLiteralInt(int value) => new AnonymousBodyRequestOptionalLiteralInt(value);
-
- /// The object to compare.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is AnonymousBodyRequestOptionalLiteralInt other && Equals(other);
-
- /// The instance to compare.
- public bool Equals(AnonymousBodyRequestOptionalLiteralInt other) => Equals(_value, other._value);
-
- ///
- public override int GetHashCode() => _value.GetHashCode();
-
- ///
- public override string ToString() => _value.ToString(CultureInfo.InvariantCulture);
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestOptionalLiteralString.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestOptionalLiteralString.cs
deleted file mode 100644
index d6f233d77790..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestOptionalLiteralString.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-using BasicTypeSpec;
-
-namespace BasicTypeSpec.Models
-{
- /// The AnonymousBodyRequest_optionalLiteralString.
- public readonly partial struct AnonymousBodyRequestOptionalLiteralString : IEquatable
- {
- private readonly string _value;
- /// reject.
- private const string RejectValue = "reject";
-
- /// Initializes a new instance of .
- /// The value.
- /// is null.
- public AnonymousBodyRequestOptionalLiteralString(string value)
- {
- Argument.AssertNotNull(value, nameof(value));
-
- _value = value;
- }
-
- /// reject.
- public static AnonymousBodyRequestOptionalLiteralString Reject { get; } = new AnonymousBodyRequestOptionalLiteralString(RejectValue);
-
- /// Determines if two values are the same.
- /// The left value to compare.
- /// The right value to compare.
- public static bool operator ==(AnonymousBodyRequestOptionalLiteralString left, AnonymousBodyRequestOptionalLiteralString right) => left.Equals(right);
-
- /// Determines if two values are not the same.
- /// The left value to compare.
- /// The right value to compare.
- public static bool operator !=(AnonymousBodyRequestOptionalLiteralString left, AnonymousBodyRequestOptionalLiteralString right) => !left.Equals(right);
-
- /// Converts a string to a .
- /// The value.
- public static implicit operator AnonymousBodyRequestOptionalLiteralString(string value) => new AnonymousBodyRequestOptionalLiteralString(value);
-
- /// The object to compare.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is AnonymousBodyRequestOptionalLiteralString other && Equals(other);
-
- /// The instance to compare.
- public bool Equals(AnonymousBodyRequestOptionalLiteralString other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
-
- ///
- public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0;
-
- ///
- public override string ToString() => _value;
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestRequiredLiteralFloat.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestRequiredLiteralFloat.Serialization.cs
deleted file mode 100644
index 6d7720e0b124..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestRequiredLiteralFloat.Serialization.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-namespace BasicTypeSpec.Models
-{
- ///
- public readonly partial struct AnonymousBodyRequestRequiredLiteralFloat
- {
- internal float ToSerialSingle() => _value;
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestRequiredLiteralFloat.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestRequiredLiteralFloat.cs
deleted file mode 100644
index 93afe618dc74..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestRequiredLiteralFloat.cs
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-using System.Globalization;
-
-namespace BasicTypeSpec.Models
-{
- /// The AnonymousBodyRequest_requiredLiteralFloat.
- public readonly partial struct AnonymousBodyRequestRequiredLiteralFloat : IEquatable
- {
- private readonly float _value;
- /// 1.23.
- private const float _123Value = 1.23F;
-
- /// Initializes a new instance of .
- /// The value.
- public AnonymousBodyRequestRequiredLiteralFloat(float value)
- {
- _value = value;
- }
-
- /// 1.23.
- public static AnonymousBodyRequestRequiredLiteralFloat _123 { get; } = new AnonymousBodyRequestRequiredLiteralFloat(_123Value);
-
- /// Determines if two values are the same.
- /// The left value to compare.
- /// The right value to compare.
- public static bool operator ==(AnonymousBodyRequestRequiredLiteralFloat left, AnonymousBodyRequestRequiredLiteralFloat right) => left.Equals(right);
-
- /// Determines if two values are not the same.
- /// The left value to compare.
- /// The right value to compare.
- public static bool operator !=(AnonymousBodyRequestRequiredLiteralFloat left, AnonymousBodyRequestRequiredLiteralFloat right) => !left.Equals(right);
-
- /// Converts a string to a .
- /// The value.
- public static implicit operator AnonymousBodyRequestRequiredLiteralFloat(float value) => new AnonymousBodyRequestRequiredLiteralFloat(value);
-
- /// The object to compare.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is AnonymousBodyRequestRequiredLiteralFloat other && Equals(other);
-
- /// The instance to compare.
- public bool Equals(AnonymousBodyRequestRequiredLiteralFloat other) => Equals(_value, other._value);
-
- ///
- public override int GetHashCode() => _value.GetHashCode();
-
- ///
- public override string ToString() => _value.ToString(CultureInfo.InvariantCulture);
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestRequiredLiteralInt.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestRequiredLiteralInt.Serialization.cs
deleted file mode 100644
index d0f68bb34aec..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestRequiredLiteralInt.Serialization.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-namespace BasicTypeSpec.Models
-{
- ///
- public readonly partial struct AnonymousBodyRequestRequiredLiteralInt
- {
- internal int ToSerialInt32() => _value;
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestRequiredLiteralInt.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestRequiredLiteralInt.cs
deleted file mode 100644
index 33b59e555b5f..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestRequiredLiteralInt.cs
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-using System.Globalization;
-
-namespace BasicTypeSpec.Models
-{
- /// The AnonymousBodyRequest_requiredLiteralInt.
- public readonly partial struct AnonymousBodyRequestRequiredLiteralInt : IEquatable
- {
- private readonly int _value;
- /// 123.
- private const int _123Value = 123;
-
- /// Initializes a new instance of .
- /// The value.
- public AnonymousBodyRequestRequiredLiteralInt(int value)
- {
- _value = value;
- }
-
- /// 123.
- public static AnonymousBodyRequestRequiredLiteralInt _123 { get; } = new AnonymousBodyRequestRequiredLiteralInt(_123Value);
-
- /// Determines if two values are the same.
- /// The left value to compare.
- /// The right value to compare.
- public static bool operator ==(AnonymousBodyRequestRequiredLiteralInt left, AnonymousBodyRequestRequiredLiteralInt right) => left.Equals(right);
-
- /// Determines if two values are not the same.
- /// The left value to compare.
- /// The right value to compare.
- public static bool operator !=(AnonymousBodyRequestRequiredLiteralInt left, AnonymousBodyRequestRequiredLiteralInt right) => !left.Equals(right);
-
- /// Converts a string to a .
- /// The value.
- public static implicit operator AnonymousBodyRequestRequiredLiteralInt(int value) => new AnonymousBodyRequestRequiredLiteralInt(value);
-
- /// The object to compare.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is AnonymousBodyRequestRequiredLiteralInt other && Equals(other);
-
- /// The instance to compare.
- public bool Equals(AnonymousBodyRequestRequiredLiteralInt other) => Equals(_value, other._value);
-
- ///
- public override int GetHashCode() => _value.GetHashCode();
-
- ///
- public override string ToString() => _value.ToString(CultureInfo.InvariantCulture);
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestRequiredLiteralString.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestRequiredLiteralString.cs
deleted file mode 100644
index 5a3e704e2d53..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/AnonymousBodyRequestRequiredLiteralString.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-using BasicTypeSpec;
-
-namespace BasicTypeSpec.Models
-{
- /// The AnonymousBodyRequest_requiredLiteralString.
- public readonly partial struct AnonymousBodyRequestRequiredLiteralString : IEquatable
- {
- private readonly string _value;
- /// accept.
- private const string AcceptValue = "accept";
-
- /// Initializes a new instance of .
- /// The value.
- /// is null.
- public AnonymousBodyRequestRequiredLiteralString(string value)
- {
- Argument.AssertNotNull(value, nameof(value));
-
- _value = value;
- }
-
- /// accept.
- public static AnonymousBodyRequestRequiredLiteralString Accept { get; } = new AnonymousBodyRequestRequiredLiteralString(AcceptValue);
-
- /// Determines if two values are the same.
- /// The left value to compare.
- /// The right value to compare.
- public static bool operator ==(AnonymousBodyRequestRequiredLiteralString left, AnonymousBodyRequestRequiredLiteralString right) => left.Equals(right);
-
- /// Determines if two values are not the same.
- /// The left value to compare.
- /// The right value to compare.
- public static bool operator !=(AnonymousBodyRequestRequiredLiteralString left, AnonymousBodyRequestRequiredLiteralString right) => !left.Equals(right);
-
- /// Converts a string to a .
- /// The value.
- public static implicit operator AnonymousBodyRequestRequiredLiteralString(string value) => new AnonymousBodyRequestRequiredLiteralString(value);
-
- /// The object to compare.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is AnonymousBodyRequestRequiredLiteralString other && Equals(other);
-
- /// The instance to compare.
- public bool Equals(AnonymousBodyRequestRequiredLiteralString other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
-
- ///
- public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0;
-
- ///
- public override string ToString() => _value;
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/Friend.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/Friend.Serialization.cs
index 7d1bd5d9d46a..f92833ee37f3 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/Friend.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/Friend.Serialization.cs
@@ -6,10 +6,11 @@
#nullable disable
using System;
-using System.ClientModel;
using System.ClientModel.Primitives;
using System.Collections.Generic;
using System.Text.Json;
+using Azure;
+using Azure.Core;
using BasicTypeSpec;
namespace BasicTypeSpec.Models
@@ -130,16 +131,18 @@ protected virtual Friend PersistableModelCreateCore(BinaryData data, ModelReader
string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
- /// The to serialize into .
- public static implicit operator BinaryContent(Friend friend)
+ /// The to serialize into .
+ public static implicit operator RequestContent(Friend friend)
{
- return BinaryContent.Create(friend, ModelSerializationExtensions.WireOptions);
+ Utf8JsonBinaryContent content = new Utf8JsonBinaryContent();
+ content.JsonWriter.WriteObjectValue(friend, ModelSerializationExtensions.WireOptions);
+ return content;
}
- /// The to deserialize the from.
- public static explicit operator Friend(ClientResult result)
+ /// The to deserialize the from.
+ public static explicit operator Friend(Response result)
{
- using PipelineResponse response = result.GetRawResponse();
+ using Response response = result;
using JsonDocument document = JsonDocument.Parse(response.Content);
return DeserializeFriend(document.RootElement, ModelSerializationExtensions.WireOptions);
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/Friend.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/Friend.cs
index ea7b538f4377..f1419a822a26 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/Friend.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/Friend.cs
@@ -14,7 +14,7 @@ namespace BasicTypeSpec.Models
public partial class Friend
{
/// Keeps track of any properties unknown to the library.
- private protected IDictionary _additionalBinaryDataProperties;
+ private protected readonly IDictionary _additionalBinaryDataProperties;
internal Friend(string name)
{
@@ -28,6 +28,6 @@ internal Friend(string name, IDictionary additionalBinaryDat
}
/// name of the NotFriend.
- public string Name { get; set; }
+ public string Name { get; }
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/FriendlyModelRequest.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/FriendlyModelRequest.Serialization.cs
deleted file mode 100644
index f1c15ec6c68d..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/FriendlyModelRequest.Serialization.cs
+++ /dev/null
@@ -1,147 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ClientModel;
-using System.ClientModel.Primitives;
-using System.Collections.Generic;
-using System.Text.Json;
-using BasicTypeSpec;
-
-namespace BasicTypeSpec.Models
-{
- ///
- internal partial class FriendlyModelRequest : IJsonModel
- {
- internal FriendlyModelRequest()
- {
- }
-
- void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
- {
- writer.WriteStartObject();
- JsonModelWriteCore(writer, options);
- writer.WriteEndObject();
- }
-
- /// The JSON writer.
- /// The client options for reading and writing models.
- protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
- {
- string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
- if (format != "J")
- {
- throw new FormatException($"The model {nameof(FriendlyModelRequest)} does not support writing '{format}' format.");
- }
- writer.WritePropertyName("name"u8);
- writer.WriteStringValue(Name);
- if (options.Format != "W" && _additionalBinaryDataProperties != null)
- {
- foreach (var item in _additionalBinaryDataProperties)
- {
- writer.WritePropertyName(item.Key);
-#if NET6_0_OR_GREATER
- writer.WriteRawValue(item.Value);
-#else
- using (JsonDocument document = JsonDocument.Parse(item.Value))
- {
- JsonSerializer.Serialize(writer, document.RootElement);
- }
-#endif
- }
- }
- }
-
- FriendlyModelRequest IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options);
-
- /// The JSON reader.
- /// The client options for reading and writing models.
- protected virtual FriendlyModelRequest JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
- {
- string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
- if (format != "J")
- {
- throw new FormatException($"The model {nameof(FriendlyModelRequest)} does not support reading '{format}' format.");
- }
- using JsonDocument document = JsonDocument.ParseValue(ref reader);
- return DeserializeFriendlyModelRequest(document.RootElement, options);
- }
-
- internal static FriendlyModelRequest DeserializeFriendlyModelRequest(JsonElement element, ModelReaderWriterOptions options)
- {
- if (element.ValueKind == JsonValueKind.Null)
- {
- return null;
- }
- string name = default;
- IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary();
- foreach (var prop in element.EnumerateObject())
- {
- if (prop.NameEquals("name"u8))
- {
- name = prop.Value.GetString();
- continue;
- }
- if (options.Format != "W")
- {
- additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText()));
- }
- }
- return new FriendlyModelRequest(name, additionalBinaryDataProperties);
- }
-
- BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options);
-
- /// The client options for reading and writing models.
- protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options)
- {
- string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
- switch (format)
- {
- case "J":
- return ModelReaderWriter.Write(this, options);
- default:
- throw new FormatException($"The model {nameof(FriendlyModelRequest)} does not support writing '{options.Format}' format.");
- }
- }
-
- FriendlyModelRequest IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options);
-
- /// The data to parse.
- /// The client options for reading and writing models.
- protected virtual FriendlyModelRequest PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options)
- {
- string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
- switch (format)
- {
- case "J":
- using (JsonDocument document = JsonDocument.Parse(data))
- {
- return DeserializeFriendlyModelRequest(document.RootElement, options);
- }
- default:
- throw new FormatException($"The model {nameof(FriendlyModelRequest)} does not support reading '{options.Format}' format.");
- }
- }
-
- string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
-
- /// The to serialize into .
- public static implicit operator BinaryContent(FriendlyModelRequest friendlyModelRequest)
- {
- return BinaryContent.Create(friendlyModelRequest, ModelSerializationExtensions.WireOptions);
- }
-
- /// The to deserialize the from.
- public static explicit operator FriendlyModelRequest(ClientResult result)
- {
- using PipelineResponse response = result.GetRawResponse();
- using JsonDocument document = JsonDocument.Parse(response.Content);
- return DeserializeFriendlyModelRequest(document.RootElement, ModelSerializationExtensions.WireOptions);
- }
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/FriendlyModelRequest.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/FriendlyModelRequest.cs
deleted file mode 100644
index 05277292620a..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/FriendlyModelRequest.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-
-namespace BasicTypeSpec.Models
-{
- /// The FriendlyModelRequest.
- internal partial class FriendlyModelRequest
- {
- /// Keeps track of any properties unknown to the library.
- private protected IDictionary _additionalBinaryDataProperties;
-
- internal FriendlyModelRequest(string name)
- {
- Name = name;
- }
-
- internal FriendlyModelRequest(string name, IDictionary additionalBinaryDataProperties)
- {
- Name = name;
- _additionalBinaryDataProperties = additionalBinaryDataProperties;
- }
-
- /// name of the NotFriend.
- public string Name { get; set; }
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ModelWithRequiredNullableProperties.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ModelWithRequiredNullableProperties.Serialization.cs
index a84cef90e170..baa17dbaa1cb 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ModelWithRequiredNullableProperties.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ModelWithRequiredNullableProperties.Serialization.cs
@@ -6,10 +6,11 @@
#nullable disable
using System;
-using System.ClientModel;
using System.ClientModel.Primitives;
using System.Collections.Generic;
using System.Text.Json;
+using Azure;
+using Azure.Core;
using BasicTypeSpec;
namespace BasicTypeSpec.Models
@@ -182,16 +183,18 @@ protected virtual ModelWithRequiredNullableProperties PersistableModelCreateCore
string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
- /// The to serialize into .
- public static implicit operator BinaryContent(ModelWithRequiredNullableProperties modelWithRequiredNullableProperties)
+ /// The to serialize into .
+ public static implicit operator RequestContent(ModelWithRequiredNullableProperties modelWithRequiredNullableProperties)
{
- return BinaryContent.Create(modelWithRequiredNullableProperties, ModelSerializationExtensions.WireOptions);
+ Utf8JsonBinaryContent content = new Utf8JsonBinaryContent();
+ content.JsonWriter.WriteObjectValue(modelWithRequiredNullableProperties, ModelSerializationExtensions.WireOptions);
+ return content;
}
- /// The to deserialize the from.
- public static explicit operator ModelWithRequiredNullableProperties(ClientResult result)
+ /// The to deserialize the from.
+ public static explicit operator ModelWithRequiredNullableProperties(Response result)
{
- using PipelineResponse response = result.GetRawResponse();
+ using Response response = result;
using JsonDocument document = JsonDocument.Parse(response.Content);
return DeserializeModelWithRequiredNullableProperties(document.RootElement, ModelSerializationExtensions.WireOptions);
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ModelWithRequiredNullableProperties.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ModelWithRequiredNullableProperties.cs
index 3f743baad339..69afb469ca74 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ModelWithRequiredNullableProperties.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ModelWithRequiredNullableProperties.cs
@@ -14,7 +14,7 @@ namespace BasicTypeSpec.Models
public partial class ModelWithRequiredNullableProperties
{
/// Keeps track of any properties unknown to the library.
- private protected IDictionary _additionalBinaryDataProperties;
+ private protected readonly IDictionary _additionalBinaryDataProperties;
/// Initializes a new instance of .
/// required nullable primitive type.
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ProjectedModel.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ProjectedModel.Serialization.cs
index 519e2c3d1a94..75dc1aad68de 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ProjectedModel.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ProjectedModel.Serialization.cs
@@ -6,10 +6,11 @@
#nullable disable
using System;
-using System.ClientModel;
using System.ClientModel.Primitives;
using System.Collections.Generic;
using System.Text.Json;
+using Azure;
+using Azure.Core;
using BasicTypeSpec;
namespace BasicTypeSpec.Models
@@ -130,16 +131,18 @@ protected virtual ProjectedModel PersistableModelCreateCore(BinaryData data, Mod
string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
- /// The to serialize into .
- public static implicit operator BinaryContent(ProjectedModel projectedModel)
+ /// The to serialize into .
+ public static implicit operator RequestContent(ProjectedModel projectedModel)
{
- return BinaryContent.Create(projectedModel, ModelSerializationExtensions.WireOptions);
+ Utf8JsonBinaryContent content = new Utf8JsonBinaryContent();
+ content.JsonWriter.WriteObjectValue(projectedModel, ModelSerializationExtensions.WireOptions);
+ return content;
}
- /// The to deserialize the from.
- public static explicit operator ProjectedModel(ClientResult result)
+ /// The to deserialize the from.
+ public static explicit operator ProjectedModel(Response result)
{
- using PipelineResponse response = result.GetRawResponse();
+ using Response response = result;
using JsonDocument document = JsonDocument.Parse(response.Content);
return DeserializeProjectedModel(document.RootElement, ModelSerializationExtensions.WireOptions);
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ProjectedModel.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ProjectedModel.cs
index d9a5e5895d01..850a0dab8aa8 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ProjectedModel.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ProjectedModel.cs
@@ -14,7 +14,7 @@ namespace BasicTypeSpec.Models
public partial class ProjectedModel
{
/// Keeps track of any properties unknown to the library.
- private protected IDictionary _additionalBinaryDataProperties;
+ private protected readonly IDictionary _additionalBinaryDataProperties;
internal ProjectedModel(string name)
{
@@ -28,6 +28,6 @@ internal ProjectedModel(string name, IDictionary additionalB
}
/// name of the ModelWithProjectedName.
- public string Name { get; set; }
+ public string Name { get; }
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ProjectedNameModelRequest.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ProjectedNameModelRequest.Serialization.cs
deleted file mode 100644
index 246799949b78..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ProjectedNameModelRequest.Serialization.cs
+++ /dev/null
@@ -1,147 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ClientModel;
-using System.ClientModel.Primitives;
-using System.Collections.Generic;
-using System.Text.Json;
-using BasicTypeSpec;
-
-namespace BasicTypeSpec.Models
-{
- ///
- internal partial class ProjectedNameModelRequest : IJsonModel
- {
- internal ProjectedNameModelRequest()
- {
- }
-
- void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
- {
- writer.WriteStartObject();
- JsonModelWriteCore(writer, options);
- writer.WriteEndObject();
- }
-
- /// The JSON writer.
- /// The client options for reading and writing models.
- protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
- {
- string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
- if (format != "J")
- {
- throw new FormatException($"The model {nameof(ProjectedNameModelRequest)} does not support writing '{format}' format.");
- }
- writer.WritePropertyName("name"u8);
- writer.WriteStringValue(Name);
- if (options.Format != "W" && _additionalBinaryDataProperties != null)
- {
- foreach (var item in _additionalBinaryDataProperties)
- {
- writer.WritePropertyName(item.Key);
-#if NET6_0_OR_GREATER
- writer.WriteRawValue(item.Value);
-#else
- using (JsonDocument document = JsonDocument.Parse(item.Value))
- {
- JsonSerializer.Serialize(writer, document.RootElement);
- }
-#endif
- }
- }
- }
-
- ProjectedNameModelRequest IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options);
-
- /// The JSON reader.
- /// The client options for reading and writing models.
- protected virtual ProjectedNameModelRequest JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
- {
- string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
- if (format != "J")
- {
- throw new FormatException($"The model {nameof(ProjectedNameModelRequest)} does not support reading '{format}' format.");
- }
- using JsonDocument document = JsonDocument.ParseValue(ref reader);
- return DeserializeProjectedNameModelRequest(document.RootElement, options);
- }
-
- internal static ProjectedNameModelRequest DeserializeProjectedNameModelRequest(JsonElement element, ModelReaderWriterOptions options)
- {
- if (element.ValueKind == JsonValueKind.Null)
- {
- return null;
- }
- string name = default;
- IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary();
- foreach (var prop in element.EnumerateObject())
- {
- if (prop.NameEquals("name"u8))
- {
- name = prop.Value.GetString();
- continue;
- }
- if (options.Format != "W")
- {
- additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText()));
- }
- }
- return new ProjectedNameModelRequest(name, additionalBinaryDataProperties);
- }
-
- BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options);
-
- /// The client options for reading and writing models.
- protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options)
- {
- string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
- switch (format)
- {
- case "J":
- return ModelReaderWriter.Write(this, options);
- default:
- throw new FormatException($"The model {nameof(ProjectedNameModelRequest)} does not support writing '{options.Format}' format.");
- }
- }
-
- ProjectedNameModelRequest IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options);
-
- /// The data to parse.
- /// The client options for reading and writing models.
- protected virtual ProjectedNameModelRequest PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options)
- {
- string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
- switch (format)
- {
- case "J":
- using (JsonDocument document = JsonDocument.Parse(data))
- {
- return DeserializeProjectedNameModelRequest(document.RootElement, options);
- }
- default:
- throw new FormatException($"The model {nameof(ProjectedNameModelRequest)} does not support reading '{options.Format}' format.");
- }
- }
-
- string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
-
- /// The to serialize into .
- public static implicit operator BinaryContent(ProjectedNameModelRequest projectedNameModelRequest)
- {
- return BinaryContent.Create(projectedNameModelRequest, ModelSerializationExtensions.WireOptions);
- }
-
- /// The to deserialize the from.
- public static explicit operator ProjectedNameModelRequest(ClientResult result)
- {
- using PipelineResponse response = result.GetRawResponse();
- using JsonDocument document = JsonDocument.Parse(response.Content);
- return DeserializeProjectedNameModelRequest(document.RootElement, ModelSerializationExtensions.WireOptions);
- }
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ProjectedNameModelRequest.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ProjectedNameModelRequest.cs
deleted file mode 100644
index 21f8f0ba9678..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ProjectedNameModelRequest.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-
-namespace BasicTypeSpec.Models
-{
- /// The ProjectedNameModelRequest.
- internal partial class ProjectedNameModelRequest
- {
- /// Keeps track of any properties unknown to the library.
- private protected IDictionary _additionalBinaryDataProperties;
-
- internal ProjectedNameModelRequest(string name)
- {
- Name = name;
- }
-
- internal ProjectedNameModelRequest(string name, IDictionary additionalBinaryDataProperties)
- {
- Name = name;
- _additionalBinaryDataProperties = additionalBinaryDataProperties;
- }
-
- /// name of the ModelWithProjectedName.
- public string Name { get; set; }
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ReturnsAnonymousModelResponse.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ReturnsAnonymousModelResponse.Serialization.cs
index 3bcdfe6ccf29..092802278552 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ReturnsAnonymousModelResponse.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ReturnsAnonymousModelResponse.Serialization.cs
@@ -6,10 +6,11 @@
#nullable disable
using System;
-using System.ClientModel;
using System.ClientModel.Primitives;
using System.Collections.Generic;
using System.Text.Json;
+using Azure;
+using Azure.Core;
using BasicTypeSpec;
namespace BasicTypeSpec.Models
@@ -118,16 +119,18 @@ protected virtual ReturnsAnonymousModelResponse PersistableModelCreateCore(Binar
string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
- /// The to serialize into .
- public static implicit operator BinaryContent(ReturnsAnonymousModelResponse returnsAnonymousModelResponse)
+ /// The to serialize into .
+ public static implicit operator RequestContent(ReturnsAnonymousModelResponse returnsAnonymousModelResponse)
{
- return BinaryContent.Create(returnsAnonymousModelResponse, ModelSerializationExtensions.WireOptions);
+ Utf8JsonBinaryContent content = new Utf8JsonBinaryContent();
+ content.JsonWriter.WriteObjectValue(returnsAnonymousModelResponse, ModelSerializationExtensions.WireOptions);
+ return content;
}
- /// The to deserialize the from.
- public static explicit operator ReturnsAnonymousModelResponse(ClientResult result)
+ /// The to deserialize the from.
+ public static explicit operator ReturnsAnonymousModelResponse(Response result)
{
- using PipelineResponse response = result.GetRawResponse();
+ using Response response = result;
using JsonDocument document = JsonDocument.Parse(response.Content);
return DeserializeReturnsAnonymousModelResponse(document.RootElement, ModelSerializationExtensions.WireOptions);
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ReturnsAnonymousModelResponse.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ReturnsAnonymousModelResponse.cs
index 68974991df3d..54125976ebc3 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ReturnsAnonymousModelResponse.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ReturnsAnonymousModelResponse.cs
@@ -14,7 +14,7 @@ namespace BasicTypeSpec.Models
public partial class ReturnsAnonymousModelResponse
{
/// Keeps track of any properties unknown to the library.
- private protected IDictionary _additionalBinaryDataProperties;
+ private protected readonly IDictionary _additionalBinaryDataProperties;
internal ReturnsAnonymousModelResponse()
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/RoundTripModel.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/RoundTripModel.Serialization.cs
index 94a684ae8ed2..62467f32c0fe 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/RoundTripModel.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/RoundTripModel.Serialization.cs
@@ -6,10 +6,11 @@
#nullable disable
using System;
-using System.ClientModel;
using System.ClientModel.Primitives;
using System.Collections.Generic;
using System.Text.Json;
+using Azure;
+using Azure.Core;
using BasicTypeSpec;
namespace BasicTypeSpec.Models
@@ -43,7 +44,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
writer.WriteNumberValue(RequiredInt);
writer.WritePropertyName("requiredCollection"u8);
writer.WriteStartArray();
- foreach (var item in RequiredCollection)
+ foreach (StringFixedEnum item in RequiredCollection)
{
writer.WriteStringValue(item.ToSerialString());
}
@@ -67,7 +68,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
{
writer.WritePropertyName("intExtensibleEnumCollection"u8);
writer.WriteStartArray();
- foreach (var item in IntExtensibleEnumCollection)
+ foreach (IntExtensibleEnum item in IntExtensibleEnumCollection)
{
writer.WriteNumberValue(item.ToSerialInt32());
}
@@ -87,7 +88,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
{
writer.WritePropertyName("floatExtensibleEnumCollection"u8);
writer.WriteStartArray();
- foreach (var item in FloatExtensibleEnumCollection)
+ foreach (FloatExtensibleEnum item in FloatExtensibleEnumCollection)
{
writer.WriteNumberValue(item.ToSerialSingle());
}
@@ -107,7 +108,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
{
writer.WritePropertyName("floatFixedEnumCollection"u8);
writer.WriteStartArray();
- foreach (var item in FloatFixedEnumCollection)
+ foreach (FloatFixedEnum item in FloatFixedEnumCollection)
{
writer.WriteNumberValue(item.ToSerialSingle());
}
@@ -122,7 +123,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
{
writer.WritePropertyName("intFixedEnumCollection"u8);
writer.WriteStartArray();
- foreach (var item in IntFixedEnumCollection)
+ foreach (IntFixedEnum item in IntFixedEnumCollection)
{
writer.WriteNumberValue((int)item);
}
@@ -643,16 +644,18 @@ protected virtual RoundTripModel PersistableModelCreateCore(BinaryData data, Mod
string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
- /// The to serialize into .
- public static implicit operator BinaryContent(RoundTripModel roundTripModel)
+ /// The to serialize into .
+ public static implicit operator RequestContent(RoundTripModel roundTripModel)
{
- return BinaryContent.Create(roundTripModel, ModelSerializationExtensions.WireOptions);
+ Utf8JsonBinaryContent content = new Utf8JsonBinaryContent();
+ content.JsonWriter.WriteObjectValue(roundTripModel, ModelSerializationExtensions.WireOptions);
+ return content;
}
- /// The to deserialize the from.
- public static explicit operator RoundTripModel(ClientResult result)
+ /// The to deserialize the from.
+ public static explicit operator RoundTripModel(Response result)
{
- using PipelineResponse response = result.GetRawResponse();
+ using Response response = result;
using JsonDocument document = JsonDocument.Parse(response.Content);
return DeserializeRoundTripModel(document.RootElement, ModelSerializationExtensions.WireOptions);
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/RoundTripModel.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/RoundTripModel.cs
index 771f0b16040e..3f660931d13c 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/RoundTripModel.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/RoundTripModel.cs
@@ -17,7 +17,7 @@ namespace BasicTypeSpec.Models
public partial class RoundTripModel
{
/// Keeps track of any properties unknown to the library.
- private protected IDictionary _additionalBinaryDataProperties;
+ private protected readonly IDictionary _additionalBinaryDataProperties;
/// Initializes a new instance of .
/// Required string, illustrating a reference type property.
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/Thing.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/Thing.Serialization.cs
index f12038ab30d4..c473fa19a5fa 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/Thing.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/Thing.Serialization.cs
@@ -6,10 +6,11 @@
#nullable disable
using System;
-using System.ClientModel;
using System.ClientModel.Primitives;
using System.Collections.Generic;
using System.Text.Json;
+using Azure;
+using Azure.Core;
using BasicTypeSpec;
namespace BasicTypeSpec.Models
@@ -84,7 +85,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
{
writer.WritePropertyName("optionalNullableList"u8);
writer.WriteStartArray();
- foreach (var item in OptionalNullableList)
+ foreach (int item in OptionalNullableList)
{
writer.WriteNumberValue(item);
}
@@ -99,7 +100,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
{
writer.WritePropertyName("requiredNullableList"u8);
writer.WriteStartArray();
- foreach (var item in RequiredNullableList)
+ foreach (int item in RequiredNullableList)
{
writer.WriteNumberValue(item);
}
@@ -325,16 +326,18 @@ protected virtual Thing PersistableModelCreateCore(BinaryData data, ModelReaderW
string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
- /// The to serialize into .
- public static implicit operator BinaryContent(Thing thing)
+ /// The to serialize into .
+ public static implicit operator RequestContent(Thing thing)
{
- return BinaryContent.Create(thing, ModelSerializationExtensions.WireOptions);
+ Utf8JsonBinaryContent content = new Utf8JsonBinaryContent();
+ content.JsonWriter.WriteObjectValue(thing, ModelSerializationExtensions.WireOptions);
+ return content;
}
- /// The to deserialize the from.
- public static explicit operator Thing(ClientResult result)
+ /// The to deserialize the from.
+ public static explicit operator Thing(Response result)
{
- using PipelineResponse response = result.GetRawResponse();
+ using Response response = result;
using JsonDocument document = JsonDocument.Parse(response.Content);
return DeserializeThing(document.RootElement, ModelSerializationExtensions.WireOptions);
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/Thing.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/Thing.cs
index c35fd826366e..62e0c73a58db 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/Thing.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/Thing.cs
@@ -17,7 +17,7 @@ namespace BasicTypeSpec.Models
public partial class Thing
{
/// Keeps track of any properties unknown to the library.
- private protected IDictionary _additionalBinaryDataProperties;
+ private protected readonly IDictionary _additionalBinaryDataProperties;
/// Initializes a new instance of .
/// name of the Thing.
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/tspCodeModel.json
index 78b829116302..ff55ddfccd66 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/tspCodeModel.json
@@ -36,7 +36,7 @@
"description": "The Thing_requiredLiteralString",
"isFixed": false,
"isFlags": false,
- "usage": "Input,Output,Json",
+ "usage": "Input,Output,Spread,Json",
"decorators": []
},
{
@@ -69,7 +69,7 @@
"description": "The Thing_requiredLiteralInt",
"isFixed": false,
"isFlags": false,
- "usage": "Input,Output,Json",
+ "usage": "Input,Output,Spread,Json",
"decorators": []
},
{
@@ -102,7 +102,7 @@
"description": "The Thing_requiredLiteralFloat",
"isFixed": false,
"isFlags": false,
- "usage": "Input,Output,Json",
+ "usage": "Input,Output,Spread,Json",
"decorators": []
},
{
@@ -135,7 +135,7 @@
"description": "The Thing_optionalLiteralString",
"isFixed": false,
"isFlags": false,
- "usage": "Input,Output,Json",
+ "usage": "Input,Output,Spread,Json",
"decorators": []
},
{
@@ -168,7 +168,7 @@
"description": "The Thing_optionalLiteralInt",
"isFixed": false,
"isFlags": false,
- "usage": "Input,Output,Json",
+ "usage": "Input,Output,Spread,Json",
"decorators": []
},
{
@@ -201,7 +201,7 @@
"description": "The Thing_optionalLiteralFloat",
"isFixed": false,
"isFlags": false,
- "usage": "Input,Output,Json",
+ "usage": "Input,Output,Spread,Json",
"decorators": []
},
{
@@ -775,208 +775,10 @@
{
"$id": "84",
"kind": "enum",
- "name": "AnonymousBodyRequest_requiredLiteralString",
- "valueType": {
- "$id": "85",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "values": [
- {
- "$id": "86",
- "kind": "enumvalue",
- "name": "accept",
- "value": "accept",
- "description": "accept",
- "valueType": {
- "$ref": "85"
- },
- "enumType": {
- "$ref": "84"
- }
- }
- ],
- "crossLanguageDefinitionId": "",
- "description": "The AnonymousBodyRequest_requiredLiteralString",
- "isFixed": false,
- "isFlags": false,
- "usage": "Spread,Json",
- "decorators": []
- },
- {
- "$id": "87",
- "kind": "enum",
- "name": "AnonymousBodyRequest_requiredLiteralInt",
- "valueType": {
- "$id": "88",
- "kind": "int32",
- "name": "int32",
- "crossLanguageDefinitionId": "TypeSpec.int32",
- "decorators": []
- },
- "values": [
- {
- "$id": "89",
- "kind": "enumvalue",
- "name": "123",
- "value": 123,
- "description": "123",
- "valueType": {
- "$ref": "88"
- },
- "enumType": {
- "$ref": "87"
- }
- }
- ],
- "crossLanguageDefinitionId": "",
- "description": "The AnonymousBodyRequest_requiredLiteralInt",
- "isFixed": false,
- "isFlags": false,
- "usage": "Spread,Json",
- "decorators": []
- },
- {
- "$id": "90",
- "kind": "enum",
- "name": "AnonymousBodyRequest_requiredLiteralFloat",
- "valueType": {
- "$id": "91",
- "kind": "float32",
- "name": "float32",
- "crossLanguageDefinitionId": "TypeSpec.float32",
- "decorators": []
- },
- "values": [
- {
- "$id": "92",
- "kind": "enumvalue",
- "name": "1.23",
- "value": 1.23,
- "description": "1.23",
- "valueType": {
- "$ref": "91"
- },
- "enumType": {
- "$ref": "90"
- }
- }
- ],
- "crossLanguageDefinitionId": "",
- "description": "The AnonymousBodyRequest_requiredLiteralFloat",
- "isFixed": false,
- "isFlags": false,
- "usage": "Spread,Json",
- "decorators": []
- },
- {
- "$id": "93",
- "kind": "enum",
- "name": "AnonymousBodyRequest_optionalLiteralString",
- "valueType": {
- "$id": "94",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "values": [
- {
- "$id": "95",
- "kind": "enumvalue",
- "name": "reject",
- "value": "reject",
- "description": "reject",
- "valueType": {
- "$ref": "94"
- },
- "enumType": {
- "$ref": "93"
- }
- }
- ],
- "crossLanguageDefinitionId": "",
- "description": "The AnonymousBodyRequest_optionalLiteralString",
- "isFixed": false,
- "isFlags": false,
- "usage": "Spread,Json",
- "decorators": []
- },
- {
- "$id": "96",
- "kind": "enum",
- "name": "AnonymousBodyRequest_optionalLiteralInt",
- "valueType": {
- "$id": "97",
- "kind": "int32",
- "name": "int32",
- "crossLanguageDefinitionId": "TypeSpec.int32",
- "decorators": []
- },
- "values": [
- {
- "$id": "98",
- "kind": "enumvalue",
- "name": "456",
- "value": 456,
- "description": "456",
- "valueType": {
- "$ref": "97"
- },
- "enumType": {
- "$ref": "96"
- }
- }
- ],
- "crossLanguageDefinitionId": "",
- "description": "The AnonymousBodyRequest_optionalLiteralInt",
- "isFixed": false,
- "isFlags": false,
- "usage": "Spread,Json",
- "decorators": []
- },
- {
- "$id": "99",
- "kind": "enum",
- "name": "AnonymousBodyRequest_optionalLiteralFloat",
- "valueType": {
- "$id": "100",
- "kind": "float32",
- "name": "float32",
- "crossLanguageDefinitionId": "TypeSpec.float32",
- "decorators": []
- },
- "values": [
- {
- "$id": "101",
- "kind": "enumvalue",
- "name": "4.56",
- "value": 4.56,
- "description": "4.56",
- "valueType": {
- "$ref": "100"
- },
- "enumType": {
- "$ref": "99"
- }
- }
- ],
- "crossLanguageDefinitionId": "",
- "description": "The AnonymousBodyRequest_optionalLiteralFloat",
- "isFixed": false,
- "isFlags": false,
- "usage": "Spread,Json",
- "decorators": []
- },
- {
- "$id": "102",
- "kind": "enum",
"name": "Versions",
"crossLanguageDefinitionId": "BasicTypeSpec.Versions",
"valueType": {
- "$id": "103",
+ "$id": "85",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -984,36 +786,36 @@
},
"values": [
{
- "$id": "104",
+ "$id": "86",
"kind": "enumvalue",
"name": "2024-07-16-preview",
"value": "2024-07-16-preview",
"valueType": {
- "$id": "105",
+ "$id": "87",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"enumType": {
- "$ref": "102"
+ "$ref": "84"
},
"decorators": []
},
{
- "$id": "106",
+ "$id": "88",
"kind": "enumvalue",
"name": "2024-08-16-preview",
"value": "2024-08-16-preview",
"valueType": {
- "$id": "107",
+ "$id": "89",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"enumType": {
- "$ref": "102"
+ "$ref": "84"
},
"decorators": []
}
@@ -1026,22 +828,22 @@
],
"Models": [
{
- "$id": "108",
+ "$id": "90",
"kind": "model",
"name": "Thing",
"crossLanguageDefinitionId": "BasicTypeSpec.Thing",
- "usage": "Input,Output,Json",
+ "usage": "Input,Output,Spread,Json",
"description": "A model with a few properties of literal types",
"decorators": [],
"properties": [
{
- "$id": "109",
+ "$id": "91",
"kind": "property",
"name": "name",
"serializedName": "name",
"description": "name of the Thing",
"type": {
- "$id": "110",
+ "$id": "92",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1050,33 +852,34 @@
"optional": false,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.Thing.name"
},
{
- "$id": "111",
+ "$id": "93",
"kind": "property",
"name": "requiredUnion",
"serializedName": "requiredUnion",
"description": "required Union",
"type": {
- "$id": "112",
+ "$id": "94",
"kind": "union",
"name": "ThingRequiredUnion",
"variantTypes": [
{
- "$id": "113",
+ "$id": "95",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
{
- "$id": "114",
+ "$id": "96",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "115",
+ "$id": "97",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1086,7 +889,7 @@
"decorators": []
},
{
- "$id": "116",
+ "$id": "98",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -1098,17 +901,18 @@
"optional": false,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.Thing.requiredUnion"
},
{
- "$id": "117",
+ "$id": "99",
"kind": "property",
"name": "requiredLiteralString",
"serializedName": "requiredLiteralString",
"description": "required literal string",
"type": {
- "$id": "118",
+ "$id": "100",
"kind": "constant",
"valueType": {
"$ref": "2"
@@ -1119,17 +923,18 @@
"optional": false,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.Thing.requiredLiteralString"
},
{
- "$id": "119",
+ "$id": "101",
"kind": "property",
"name": "requiredLiteralInt",
"serializedName": "requiredLiteralInt",
"description": "required literal int",
"type": {
- "$id": "120",
+ "$id": "102",
"kind": "constant",
"valueType": {
"$ref": "5"
@@ -1140,17 +945,18 @@
"optional": false,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.Thing.requiredLiteralInt"
},
{
- "$id": "121",
+ "$id": "103",
"kind": "property",
"name": "requiredLiteralFloat",
"serializedName": "requiredLiteralFloat",
"description": "required literal float",
"type": {
- "$id": "122",
+ "$id": "104",
"kind": "constant",
"valueType": {
"$ref": "8"
@@ -1161,20 +967,21 @@
"optional": false,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.Thing.requiredLiteralFloat"
},
{
- "$id": "123",
+ "$id": "105",
"kind": "property",
"name": "requiredLiteralBool",
"serializedName": "requiredLiteralBool",
"description": "required literal bool",
"type": {
- "$id": "124",
+ "$id": "106",
"kind": "constant",
"valueType": {
- "$id": "125",
+ "$id": "107",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -1186,17 +993,18 @@
"optional": false,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.Thing.requiredLiteralBool"
},
{
- "$id": "126",
+ "$id": "108",
"kind": "property",
"name": "optionalLiteralString",
"serializedName": "optionalLiteralString",
"description": "optional literal string",
"type": {
- "$id": "127",
+ "$id": "109",
"kind": "constant",
"valueType": {
"$ref": "11"
@@ -1207,17 +1015,18 @@
"optional": true,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.Thing.optionalLiteralString"
},
{
- "$id": "128",
+ "$id": "110",
"kind": "property",
"name": "optionalLiteralInt",
"serializedName": "optionalLiteralInt",
"description": "optional literal int",
"type": {
- "$id": "129",
+ "$id": "111",
"kind": "constant",
"valueType": {
"$ref": "14"
@@ -1228,17 +1037,18 @@
"optional": true,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.Thing.optionalLiteralInt"
},
{
- "$id": "130",
+ "$id": "112",
"kind": "property",
"name": "optionalLiteralFloat",
"serializedName": "optionalLiteralFloat",
"description": "optional literal float",
"type": {
- "$id": "131",
+ "$id": "113",
"kind": "constant",
"valueType": {
"$ref": "17"
@@ -1249,20 +1059,21 @@
"optional": true,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.Thing.optionalLiteralFloat"
},
{
- "$id": "132",
+ "$id": "114",
"kind": "property",
"name": "optionalLiteralBool",
"serializedName": "optionalLiteralBool",
"description": "optional literal bool",
"type": {
- "$id": "133",
+ "$id": "115",
"kind": "constant",
"valueType": {
- "$id": "134",
+ "$id": "116",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -1274,17 +1085,18 @@
"optional": true,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.Thing.optionalLiteralBool"
},
{
- "$id": "135",
+ "$id": "117",
"kind": "property",
"name": "requiredBadDescription",
"serializedName": "requiredBadDescription",
"description": "description with xml <|endoftext|>",
"type": {
- "$id": "136",
+ "$id": "118",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1293,24 +1105,25 @@
"optional": false,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.Thing.requiredBadDescription"
},
{
- "$id": "137",
+ "$id": "119",
"kind": "property",
"name": "optionalNullableList",
"serializedName": "optionalNullableList",
"description": "optional nullable collection",
"type": {
- "$id": "138",
+ "$id": "120",
"kind": "nullable",
"type": {
- "$id": "139",
+ "$id": "121",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "140",
+ "$id": "122",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -1323,24 +1136,25 @@
"optional": true,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.Thing.optionalNullableList"
},
{
- "$id": "141",
+ "$id": "123",
"kind": "property",
"name": "requiredNullableList",
"serializedName": "requiredNullableList",
"description": "required nullable collection",
"type": {
- "$id": "142",
+ "$id": "124",
"kind": "nullable",
"type": {
- "$id": "143",
+ "$id": "125",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "144",
+ "$id": "126",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -1353,13 +1167,14 @@
"optional": false,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.Thing.requiredNullableList"
}
]
},
{
- "$id": "145",
+ "$id": "127",
"kind": "model",
"name": "RoundTripModel",
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel",
@@ -1368,13 +1183,13 @@
"decorators": [],
"properties": [
{
- "$id": "146",
+ "$id": "128",
"kind": "property",
"name": "requiredString",
"serializedName": "requiredString",
"description": "Required string, illustrating a reference type property.",
"type": {
- "$id": "147",
+ "$id": "129",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1383,17 +1198,18 @@
"optional": false,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.requiredString"
},
{
- "$id": "148",
+ "$id": "130",
"kind": "property",
"name": "requiredInt",
"serializedName": "requiredInt",
"description": "Required int, illustrating a value type property.",
"type": {
- "$id": "149",
+ "$id": "131",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -1402,17 +1218,18 @@
"optional": false,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.requiredInt"
},
{
- "$id": "150",
+ "$id": "132",
"kind": "property",
"name": "requiredCollection",
"serializedName": "requiredCollection",
"description": "Required collection of enums",
"type": {
- "$id": "151",
+ "$id": "133",
"kind": "array",
"name": "ArrayStringFixedEnum",
"valueType": {
@@ -1424,20 +1241,21 @@
"optional": false,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.requiredCollection"
},
{
- "$id": "152",
+ "$id": "134",
"kind": "property",
"name": "requiredDictionary",
"serializedName": "requiredDictionary",
"description": "Required dictionary of enums",
"type": {
- "$id": "153",
+ "$id": "135",
"kind": "dict",
"keyType": {
- "$id": "154",
+ "$id": "136",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1451,26 +1269,28 @@
"optional": false,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.requiredDictionary"
},
{
- "$id": "155",
+ "$id": "137",
"kind": "property",
"name": "requiredModel",
"serializedName": "requiredModel",
"description": "Required model",
"type": {
- "$ref": "108"
+ "$ref": "90"
},
"optional": false,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.requiredModel"
},
{
- "$id": "156",
+ "$id": "138",
"kind": "property",
"name": "intExtensibleEnum",
"serializedName": "intExtensibleEnum",
@@ -1481,17 +1301,18 @@
"optional": true,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.intExtensibleEnum"
},
{
- "$id": "157",
+ "$id": "139",
"kind": "property",
"name": "intExtensibleEnumCollection",
"serializedName": "intExtensibleEnumCollection",
"description": "this is a collection of int based extensible enum",
"type": {
- "$id": "158",
+ "$id": "140",
"kind": "array",
"name": "ArrayIntExtensibleEnum",
"valueType": {
@@ -1503,11 +1324,12 @@
"optional": true,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.intExtensibleEnumCollection"
},
{
- "$id": "159",
+ "$id": "141",
"kind": "property",
"name": "floatExtensibleEnum",
"serializedName": "floatExtensibleEnum",
@@ -1518,11 +1340,12 @@
"optional": true,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.floatExtensibleEnum"
},
{
- "$id": "160",
+ "$id": "142",
"kind": "property",
"name": "floatExtensibleEnumWithIntValue",
"serializedName": "floatExtensibleEnumWithIntValue",
@@ -1533,17 +1356,18 @@
"optional": true,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.floatExtensibleEnumWithIntValue"
},
{
- "$id": "161",
+ "$id": "143",
"kind": "property",
"name": "floatExtensibleEnumCollection",
"serializedName": "floatExtensibleEnumCollection",
"description": "this is a collection of float based extensible enum",
"type": {
- "$id": "162",
+ "$id": "144",
"kind": "array",
"name": "ArrayFloatExtensibleEnum",
"valueType": {
@@ -1555,11 +1379,12 @@
"optional": true,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.floatExtensibleEnumCollection"
},
{
- "$id": "163",
+ "$id": "145",
"kind": "property",
"name": "floatFixedEnum",
"serializedName": "floatFixedEnum",
@@ -1570,11 +1395,12 @@
"optional": true,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.floatFixedEnum"
},
{
- "$id": "164",
+ "$id": "146",
"kind": "property",
"name": "floatFixedEnumWithIntValue",
"serializedName": "floatFixedEnumWithIntValue",
@@ -1585,17 +1411,18 @@
"optional": true,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.floatFixedEnumWithIntValue"
},
{
- "$id": "165",
+ "$id": "147",
"kind": "property",
"name": "floatFixedEnumCollection",
"serializedName": "floatFixedEnumCollection",
"description": "this is a collection of float based fixed enum",
"type": {
- "$id": "166",
+ "$id": "148",
"kind": "array",
"name": "ArrayFloatFixedEnum",
"valueType": {
@@ -1607,11 +1434,12 @@
"optional": true,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.floatFixedEnumCollection"
},
{
- "$id": "167",
+ "$id": "149",
"kind": "property",
"name": "intFixedEnum",
"serializedName": "intFixedEnum",
@@ -1622,17 +1450,18 @@
"optional": true,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.intFixedEnum"
},
{
- "$id": "168",
+ "$id": "150",
"kind": "property",
"name": "intFixedEnumCollection",
"serializedName": "intFixedEnumCollection",
"description": "this is a collection of int based fixed enum",
"type": {
- "$id": "169",
+ "$id": "151",
"kind": "array",
"name": "ArrayIntFixedEnum",
"valueType": {
@@ -1644,11 +1473,12 @@
"optional": true,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.intFixedEnumCollection"
},
{
- "$id": "170",
+ "$id": "152",
"kind": "property",
"name": "stringFixedEnum",
"serializedName": "stringFixedEnum",
@@ -1659,18 +1489,19 @@
"optional": true,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.stringFixedEnum"
},
{
- "$id": "171",
+ "$id": "153",
"kind": "property",
"name": "requiredUnknown",
"serializedName": "requiredUnknown",
"description": "required unknown",
"type": {
- "$id": "172",
- "kind": "any",
+ "$id": "154",
+ "kind": "unknown",
"name": "unknown",
"crossLanguageDefinitionId": "",
"decorators": []
@@ -1678,18 +1509,19 @@
"optional": false,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.requiredUnknown"
},
{
- "$id": "173",
+ "$id": "155",
"kind": "property",
"name": "optionalUnknown",
"serializedName": "optionalUnknown",
"description": "optional unknown",
"type": {
- "$id": "174",
- "kind": "any",
+ "$id": "156",
+ "kind": "unknown",
"name": "unknown",
"crossLanguageDefinitionId": "",
"decorators": []
@@ -1697,28 +1529,29 @@
"optional": true,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.optionalUnknown"
},
{
- "$id": "175",
+ "$id": "157",
"kind": "property",
"name": "requiredRecordUnknown",
"serializedName": "requiredRecordUnknown",
"description": "required record of unknown",
"type": {
- "$id": "176",
+ "$id": "158",
"kind": "dict",
"keyType": {
- "$id": "177",
+ "$id": "159",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "178",
- "kind": "any",
+ "$id": "160",
+ "kind": "unknown",
"name": "unknown",
"crossLanguageDefinitionId": "",
"decorators": []
@@ -1728,589 +1561,237 @@
"optional": false,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
- "crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.requiredRecordUnknown"
- },
- {
- "$id": "179",
- "kind": "property",
- "name": "optionalRecordUnknown",
- "serializedName": "optionalRecordUnknown",
- "description": "optional record of unknown",
- "type": {
- "$id": "180",
- "kind": "dict",
- "keyType": {
- "$id": "181",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "valueType": {
- "$id": "182",
- "kind": "any",
- "name": "unknown",
- "crossLanguageDefinitionId": "",
- "decorators": []
- },
- "decorators": []
- },
- "optional": true,
- "readOnly": false,
- "discriminator": false,
- "decorators": [],
- "crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.optionalRecordUnknown"
- },
- {
- "$id": "183",
- "kind": "property",
- "name": "readOnlyRequiredRecordUnknown",
- "serializedName": "readOnlyRequiredRecordUnknown",
- "description": "required readonly record of unknown",
- "type": {
- "$id": "184",
- "kind": "dict",
- "keyType": {
- "$id": "185",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "valueType": {
- "$id": "186",
- "kind": "any",
- "name": "unknown",
- "crossLanguageDefinitionId": "",
- "decorators": []
- },
- "decorators": []
- },
- "optional": false,
- "readOnly": true,
- "discriminator": false,
- "decorators": [],
- "crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.readOnlyRequiredRecordUnknown"
- },
- {
- "$id": "187",
- "kind": "property",
- "name": "readOnlyOptionalRecordUnknown",
- "serializedName": "readOnlyOptionalRecordUnknown",
- "description": "optional readonly record of unknown",
- "type": {
- "$id": "188",
- "kind": "dict",
- "keyType": {
- "$id": "189",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "valueType": {
- "$id": "190",
- "kind": "any",
- "name": "unknown",
- "crossLanguageDefinitionId": "",
- "decorators": []
- },
- "decorators": []
- },
- "optional": true,
- "readOnly": true,
- "discriminator": false,
- "decorators": [],
- "crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.readOnlyOptionalRecordUnknown"
- },
- {
- "$id": "191",
- "kind": "property",
- "name": "modelWithRequiredNullable",
- "serializedName": "modelWithRequiredNullable",
- "description": "this is a model with required nullable properties",
- "type": {
- "$id": "192",
- "kind": "model",
- "name": "ModelWithRequiredNullableProperties",
- "crossLanguageDefinitionId": "BasicTypeSpec.ModelWithRequiredNullableProperties",
- "usage": "Input,Output,Json",
- "description": "A model with a few required nullable properties",
- "decorators": [],
- "properties": [
- {
- "$id": "193",
- "kind": "property",
- "name": "requiredNullablePrimitive",
- "serializedName": "requiredNullablePrimitive",
- "description": "required nullable primitive type",
- "type": {
- "$id": "194",
- "kind": "nullable",
- "type": {
- "$id": "195",
- "kind": "int32",
- "name": "int32",
- "crossLanguageDefinitionId": "TypeSpec.int32",
- "decorators": []
- }
- },
- "optional": false,
- "readOnly": false,
- "discriminator": false,
- "decorators": [],
- "crossLanguageDefinitionId": "BasicTypeSpec.ModelWithRequiredNullableProperties.requiredNullablePrimitive"
- },
- {
- "$id": "196",
- "kind": "property",
- "name": "requiredExtensibleEnum",
- "serializedName": "requiredExtensibleEnum",
- "description": "required nullable extensible enum type",
- "type": {
- "$id": "197",
- "kind": "nullable",
- "type": {
- "$ref": "28"
- }
- },
- "optional": false,
- "readOnly": false,
- "discriminator": false,
- "decorators": [],
- "crossLanguageDefinitionId": "BasicTypeSpec.ModelWithRequiredNullableProperties.requiredExtensibleEnum"
- },
- {
- "$id": "198",
- "kind": "property",
- "name": "requiredFixedEnum",
- "serializedName": "requiredFixedEnum",
- "description": "required nullable fixed enum type",
- "type": {
- "$id": "199",
- "kind": "nullable",
- "type": {
- "$ref": "20"
- }
- },
- "optional": false,
- "readOnly": false,
- "discriminator": false,
- "decorators": [],
- "crossLanguageDefinitionId": "BasicTypeSpec.ModelWithRequiredNullableProperties.requiredFixedEnum"
- }
- ]
- },
- "optional": false,
- "readOnly": false,
- "discriminator": false,
- "decorators": [],
- "crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.modelWithRequiredNullable"
- },
- {
- "$id": "200",
- "kind": "property",
- "name": "requiredBytes",
- "serializedName": "requiredBytes",
- "description": "Required bytes",
- "type": {
- "$id": "201",
- "kind": "bytes",
- "name": "bytes",
- "encode": "base64",
- "crossLanguageDefinitionId": "TypeSpec.bytes",
- "decorators": []
- },
- "optional": false,
- "readOnly": false,
- "discriminator": false,
- "decorators": [],
- "crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.requiredBytes"
- }
- ]
- },
- {
- "$ref": "192"
- },
- {
- "$id": "202",
- "kind": "model",
- "name": "AnonymousBodyRequest",
- "crossLanguageDefinitionId": "BasicTypeSpec.anonymousBody.Request.anonymous",
- "usage": "Spread,Json",
- "decorators": [],
- "properties": [
- {
- "$id": "203",
- "kind": "property",
- "name": "name",
- "serializedName": "name",
- "description": "name of the Thing",
- "type": {
- "$id": "204",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "optional": false,
- "readOnly": false,
- "discriminator": false,
- "decorators": [],
- "crossLanguageDefinitionId": "BasicTypeSpec.anonymousBody.Request.anonymous.name"
- },
- {
- "$id": "205",
- "kind": "property",
- "name": "requiredUnion",
- "serializedName": "requiredUnion",
- "description": "required Union",
- "type": {
- "$id": "206",
- "kind": "union",
- "name": "ThingRequiredUnion",
- "variantTypes": [
- {
- "$id": "207",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- {
- "$id": "208",
- "kind": "array",
- "name": "Array",
- "valueType": {
- "$id": "209",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "crossLanguageDefinitionId": "TypeSpec.Array",
- "decorators": []
- },
- {
- "$id": "210",
- "kind": "int32",
- "name": "int32",
- "crossLanguageDefinitionId": "TypeSpec.int32",
- "decorators": []
- }
- ],
- "decorators": []
- },
- "optional": false,
- "readOnly": false,
- "discriminator": false,
- "decorators": [],
- "crossLanguageDefinitionId": "BasicTypeSpec.anonymousBody.Request.anonymous.requiredUnion"
- },
- {
- "$id": "211",
- "kind": "property",
- "name": "requiredLiteralString",
- "serializedName": "requiredLiteralString",
- "description": "required literal string",
- "type": {
- "$id": "212",
- "kind": "constant",
- "valueType": {
- "$ref": "84"
- },
- "value": "accept",
- "decorators": []
- },
- "optional": false,
- "readOnly": false,
- "discriminator": false,
- "decorators": [],
- "crossLanguageDefinitionId": "BasicTypeSpec.anonymousBody.Request.anonymous.requiredLiteralString"
- },
- {
- "$id": "213",
- "kind": "property",
- "name": "requiredLiteralInt",
- "serializedName": "requiredLiteralInt",
- "description": "required literal int",
- "type": {
- "$id": "214",
- "kind": "constant",
- "valueType": {
- "$ref": "87"
- },
- "value": 123,
- "decorators": []
- },
- "optional": false,
- "readOnly": false,
- "discriminator": false,
- "decorators": [],
- "crossLanguageDefinitionId": "BasicTypeSpec.anonymousBody.Request.anonymous.requiredLiteralInt"
- },
- {
- "$id": "215",
- "kind": "property",
- "name": "requiredLiteralFloat",
- "serializedName": "requiredLiteralFloat",
- "description": "required literal float",
- "type": {
- "$id": "216",
- "kind": "constant",
- "valueType": {
- "$ref": "90"
- },
- "value": 1.23,
- "decorators": []
- },
- "optional": false,
- "readOnly": false,
- "discriminator": false,
- "decorators": [],
- "crossLanguageDefinitionId": "BasicTypeSpec.anonymousBody.Request.anonymous.requiredLiteralFloat"
- },
- {
- "$id": "217",
- "kind": "property",
- "name": "requiredLiteralBool",
- "serializedName": "requiredLiteralBool",
- "description": "required literal bool",
- "type": {
- "$id": "218",
- "kind": "constant",
- "valueType": {
- "$id": "219",
- "kind": "boolean",
- "name": "boolean",
- "crossLanguageDefinitionId": "TypeSpec.boolean",
- "decorators": []
- },
- "value": false,
- "decorators": []
- },
- "optional": false,
- "readOnly": false,
- "discriminator": false,
- "decorators": [],
- "crossLanguageDefinitionId": "BasicTypeSpec.anonymousBody.Request.anonymous.requiredLiteralBool"
- },
- {
- "$id": "220",
- "kind": "property",
- "name": "optionalLiteralString",
- "serializedName": "optionalLiteralString",
- "description": "optional literal string",
- "type": {
- "$id": "221",
- "kind": "constant",
- "valueType": {
- "$ref": "93"
- },
- "value": "reject",
- "decorators": []
- },
- "optional": true,
- "readOnly": false,
- "discriminator": false,
- "decorators": [],
- "crossLanguageDefinitionId": "BasicTypeSpec.anonymousBody.Request.anonymous.optionalLiteralString"
- },
- {
- "$id": "222",
- "kind": "property",
- "name": "optionalLiteralInt",
- "serializedName": "optionalLiteralInt",
- "description": "optional literal int",
- "type": {
- "$id": "223",
- "kind": "constant",
- "valueType": {
- "$ref": "96"
- },
- "value": 456,
- "decorators": []
- },
- "optional": true,
- "readOnly": false,
- "discriminator": false,
- "decorators": [],
- "crossLanguageDefinitionId": "BasicTypeSpec.anonymousBody.Request.anonymous.optionalLiteralInt"
- },
- {
- "$id": "224",
- "kind": "property",
- "name": "optionalLiteralFloat",
- "serializedName": "optionalLiteralFloat",
- "description": "optional literal float",
- "type": {
- "$id": "225",
- "kind": "constant",
- "valueType": {
- "$ref": "99"
- },
- "value": 4.56,
- "decorators": []
- },
- "optional": true,
- "readOnly": false,
- "discriminator": false,
- "decorators": [],
- "crossLanguageDefinitionId": "BasicTypeSpec.anonymousBody.Request.anonymous.optionalLiteralFloat"
+ "crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.requiredRecordUnknown"
},
{
- "$id": "226",
+ "$id": "161",
"kind": "property",
- "name": "optionalLiteralBool",
- "serializedName": "optionalLiteralBool",
- "description": "optional literal bool",
+ "name": "optionalRecordUnknown",
+ "serializedName": "optionalRecordUnknown",
+ "description": "optional record of unknown",
"type": {
- "$id": "227",
- "kind": "constant",
+ "$id": "162",
+ "kind": "dict",
+ "keyType": {
+ "$id": "163",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
"valueType": {
- "$id": "228",
- "kind": "boolean",
- "name": "boolean",
- "crossLanguageDefinitionId": "TypeSpec.boolean",
+ "$id": "164",
+ "kind": "unknown",
+ "name": "unknown",
+ "crossLanguageDefinitionId": "",
"decorators": []
},
- "value": true,
"decorators": []
},
"optional": true,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
- "crossLanguageDefinitionId": "BasicTypeSpec.anonymousBody.Request.anonymous.optionalLiteralBool"
+ "crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.optionalRecordUnknown"
},
{
- "$id": "229",
+ "$id": "165",
"kind": "property",
- "name": "requiredBadDescription",
- "serializedName": "requiredBadDescription",
- "description": "description with xml <|endoftext|>",
+ "name": "readOnlyRequiredRecordUnknown",
+ "serializedName": "readOnlyRequiredRecordUnknown",
+ "description": "required readonly record of unknown",
"type": {
- "$id": "230",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
+ "$id": "166",
+ "kind": "dict",
+ "keyType": {
+ "$id": "167",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "valueType": {
+ "$id": "168",
+ "kind": "unknown",
+ "name": "unknown",
+ "crossLanguageDefinitionId": "",
+ "decorators": []
+ },
"decorators": []
},
"optional": false,
- "readOnly": false,
+ "readOnly": true,
"discriminator": false,
+ "flatten": false,
"decorators": [],
- "crossLanguageDefinitionId": "BasicTypeSpec.anonymousBody.Request.anonymous.requiredBadDescription"
+ "crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.readOnlyRequiredRecordUnknown"
},
{
- "$id": "231",
+ "$id": "169",
"kind": "property",
- "name": "optionalNullableList",
- "serializedName": "optionalNullableList",
- "description": "optional nullable collection",
+ "name": "readOnlyOptionalRecordUnknown",
+ "serializedName": "readOnlyOptionalRecordUnknown",
+ "description": "optional readonly record of unknown",
"type": {
- "$id": "232",
- "kind": "nullable",
- "type": {
- "$id": "233",
- "kind": "array",
- "name": "Array",
- "valueType": {
- "$id": "234",
- "kind": "int32",
- "name": "int32",
- "crossLanguageDefinitionId": "TypeSpec.int32",
- "decorators": []
- },
- "crossLanguageDefinitionId": "TypeSpec.Array",
+ "$id": "170",
+ "kind": "dict",
+ "keyType": {
+ "$id": "171",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
- }
+ },
+ "valueType": {
+ "$id": "172",
+ "kind": "unknown",
+ "name": "unknown",
+ "crossLanguageDefinitionId": "",
+ "decorators": []
+ },
+ "decorators": []
},
"optional": true,
- "readOnly": false,
+ "readOnly": true,
"discriminator": false,
+ "flatten": false,
"decorators": [],
- "crossLanguageDefinitionId": "BasicTypeSpec.anonymousBody.Request.anonymous.optionalNullableList"
+ "crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.readOnlyOptionalRecordUnknown"
},
{
- "$id": "235",
+ "$id": "173",
"kind": "property",
- "name": "requiredNullableList",
- "serializedName": "requiredNullableList",
- "description": "required nullable collection",
+ "name": "modelWithRequiredNullable",
+ "serializedName": "modelWithRequiredNullable",
+ "description": "this is a model with required nullable properties",
"type": {
- "$id": "236",
- "kind": "nullable",
- "type": {
- "$id": "237",
- "kind": "array",
- "name": "Array",
- "valueType": {
- "$id": "238",
- "kind": "int32",
- "name": "int32",
- "crossLanguageDefinitionId": "TypeSpec.int32",
- "decorators": []
+ "$id": "174",
+ "kind": "model",
+ "name": "ModelWithRequiredNullableProperties",
+ "crossLanguageDefinitionId": "BasicTypeSpec.ModelWithRequiredNullableProperties",
+ "usage": "Input,Output,Json",
+ "description": "A model with a few required nullable properties",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "175",
+ "kind": "property",
+ "name": "requiredNullablePrimitive",
+ "serializedName": "requiredNullablePrimitive",
+ "description": "required nullable primitive type",
+ "type": {
+ "$id": "176",
+ "kind": "nullable",
+ "type": {
+ "$id": "177",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ }
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "BasicTypeSpec.ModelWithRequiredNullableProperties.requiredNullablePrimitive"
},
- "crossLanguageDefinitionId": "TypeSpec.Array",
- "decorators": []
- }
+ {
+ "$id": "178",
+ "kind": "property",
+ "name": "requiredExtensibleEnum",
+ "serializedName": "requiredExtensibleEnum",
+ "description": "required nullable extensible enum type",
+ "type": {
+ "$id": "179",
+ "kind": "nullable",
+ "type": {
+ "$ref": "28"
+ }
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "BasicTypeSpec.ModelWithRequiredNullableProperties.requiredExtensibleEnum"
+ },
+ {
+ "$id": "180",
+ "kind": "property",
+ "name": "requiredFixedEnum",
+ "serializedName": "requiredFixedEnum",
+ "description": "required nullable fixed enum type",
+ "type": {
+ "$id": "181",
+ "kind": "nullable",
+ "type": {
+ "$ref": "20"
+ }
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "BasicTypeSpec.ModelWithRequiredNullableProperties.requiredFixedEnum"
+ }
+ ]
},
"optional": false,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
- "crossLanguageDefinitionId": "BasicTypeSpec.anonymousBody.Request.anonymous.requiredNullableList"
- }
- ]
- },
- {
- "$id": "239",
- "kind": "model",
- "name": "FriendlyModelRequest",
- "crossLanguageDefinitionId": "BasicTypeSpec.friendlyModel.Request.anonymous",
- "usage": "Spread,Json",
- "decorators": [],
- "properties": [
+ "crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.modelWithRequiredNullable"
+ },
{
- "$id": "240",
+ "$id": "182",
"kind": "property",
- "name": "name",
- "serializedName": "name",
- "description": "name of the NotFriend",
+ "name": "requiredBytes",
+ "serializedName": "requiredBytes",
+ "description": "Required bytes",
"type": {
- "$id": "241",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
+ "$id": "183",
+ "kind": "bytes",
+ "name": "bytes",
+ "encode": "base64",
+ "crossLanguageDefinitionId": "TypeSpec.bytes",
"decorators": []
},
"optional": false,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
- "crossLanguageDefinitionId": "BasicTypeSpec.friendlyModel.Request.anonymous.name"
+ "crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.requiredBytes"
}
]
},
{
- "$id": "242",
+ "$ref": "174"
+ },
+ {
+ "$id": "184",
"kind": "model",
"name": "Friend",
"crossLanguageDefinitionId": "BasicTypeSpec.NotFriend",
- "usage": "Output,Json",
+ "usage": "Output,Spread,Json",
"description": "this is not a friendly model but with a friendly name",
"decorators": [],
"properties": [
{
- "$id": "243",
+ "$id": "185",
"kind": "property",
"name": "name",
"serializedName": "name",
"description": "name of the NotFriend",
"type": {
- "$id": "244",
+ "$id": "186",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2319,57 +1800,29 @@
"optional": false,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.NotFriend.name"
}
]
},
{
- "$id": "245",
- "kind": "model",
- "name": "ProjectedNameModelRequest",
- "crossLanguageDefinitionId": "BasicTypeSpec.projectedNameModel.Request.anonymous",
- "usage": "Spread,Json",
- "decorators": [],
- "properties": [
- {
- "$id": "246",
- "kind": "property",
- "name": "name",
- "serializedName": "name",
- "description": "name of the ModelWithProjectedName",
- "type": {
- "$id": "247",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "optional": false,
- "readOnly": false,
- "discriminator": false,
- "decorators": [],
- "crossLanguageDefinitionId": "BasicTypeSpec.projectedNameModel.Request.anonymous.name"
- }
- ]
- },
- {
- "$id": "248",
+ "$id": "187",
"kind": "model",
"name": "ProjectedModel",
"crossLanguageDefinitionId": "BasicTypeSpec.ModelWithProjectedName",
- "usage": "Output,Json",
+ "usage": "Output,Spread,Json",
"description": "this is a model with a projected name",
"decorators": [],
"properties": [
{
- "$id": "249",
+ "$id": "188",
"kind": "property",
"name": "name",
"serializedName": "name",
"description": "name of the ModelWithProjectedName",
"type": {
- "$id": "250",
+ "$id": "189",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2378,13 +1831,14 @@
"optional": false,
"readOnly": false,
"discriminator": false,
+ "flatten": false,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.ModelWithProjectedName.name"
}
]
},
{
- "$id": "251",
+ "$id": "190",
"kind": "model",
"name": "ReturnsAnonymousModelResponse",
"crossLanguageDefinitionId": "BasicTypeSpec.returnsAnonymousModel.Response.anonymous",
@@ -2395,23 +1849,23 @@
],
"Clients": [
{
- "$id": "252",
+ "$id": "191",
"Name": "BasicTypeSpecClient",
"Description": "This is a sample typespec project.",
"Operations": [
{
- "$id": "253",
+ "$id": "192",
"Name": "sayHi",
"ResourceName": "BasicTypeSpec",
"Description": "Return hi",
"Accessibility": "public",
"Parameters": [
{
- "$id": "254",
+ "$id": "193",
"Name": "basicTypeSpecUrl",
"NameInRequest": "basicTypeSpecUrl",
"Type": {
- "$id": "255",
+ "$id": "194",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -2427,11 +1881,11 @@
"Kind": "Client"
},
{
- "$id": "256",
+ "$id": "195",
"Name": "headParameter",
"NameInRequest": "head-parameter",
"Type": {
- "$id": "257",
+ "$id": "196",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2448,11 +1902,11 @@
"SkipUrlEncoding": false
},
{
- "$id": "258",
+ "$id": "197",
"Name": "queryParameter",
"NameInRequest": "queryParameter",
"Type": {
- "$id": "259",
+ "$id": "198",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2469,11 +1923,11 @@
"SkipUrlEncoding": false
},
{
- "$id": "260",
+ "$id": "199",
"Name": "optionalQuery",
"NameInRequest": "optionalQuery",
"Type": {
- "$id": "261",
+ "$id": "200",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2490,14 +1944,14 @@
"SkipUrlEncoding": false
},
{
- "$id": "262",
+ "$id": "201",
"Name": "accept",
"NameInRequest": "Accept",
"Type": {
- "$id": "263",
+ "$id": "202",
"kind": "constant",
"valueType": {
- "$id": "264",
+ "$id": "203",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2519,12 +1973,12 @@
],
"Responses": [
{
- "$id": "265",
+ "$id": "204",
"StatusCodes": [
200
],
"BodyType": {
- "$ref": "108"
+ "$ref": "90"
},
"BodyMediaType": "Json",
"Headers": [],
@@ -2545,21 +1999,21 @@
"Decorators": []
},
{
- "$id": "266",
+ "$id": "205",
"Name": "helloAgain",
"ResourceName": "BasicTypeSpec",
"Description": "Return hi again",
"Accessibility": "public",
"Parameters": [
{
- "$ref": "254"
+ "$ref": "193"
},
{
- "$id": "267",
+ "$id": "206",
"Name": "p1",
"NameInRequest": "p1",
"Type": {
- "$id": "268",
+ "$id": "207",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2576,14 +2030,14 @@
"SkipUrlEncoding": false
},
{
- "$id": "269",
+ "$id": "208",
"Name": "contentType",
"NameInRequest": "Content-Type",
"Type": {
- "$id": "270",
+ "$id": "209",
"kind": "constant",
"valueType": {
- "$id": "271",
+ "$id": "210",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2603,11 +2057,11 @@
"SkipUrlEncoding": false
},
{
- "$id": "272",
+ "$id": "211",
"Name": "p2",
"NameInRequest": "p2",
"Type": {
- "$id": "273",
+ "$id": "212",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2624,14 +2078,14 @@
"SkipUrlEncoding": false
},
{
- "$id": "274",
+ "$id": "213",
"Name": "accept",
"NameInRequest": "Accept",
"Type": {
- "$id": "275",
+ "$id": "214",
"kind": "constant",
"valueType": {
- "$id": "276",
+ "$id": "215",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2651,11 +2105,11 @@
"SkipUrlEncoding": false
},
{
- "$id": "277",
+ "$id": "216",
"Name": "action",
"NameInRequest": "action",
"Type": {
- "$ref": "145"
+ "$ref": "127"
},
"Location": "Body",
"IsApiVersion": false,
@@ -2670,12 +2124,12 @@
],
"Responses": [
{
- "$id": "278",
+ "$id": "217",
"StatusCodes": [
200
],
"BodyType": {
- "$ref": "145"
+ "$ref": "127"
},
"BodyMediaType": "Json",
"Headers": [],
@@ -2699,21 +2153,21 @@
"Decorators": []
},
{
- "$id": "279",
+ "$id": "218",
"Name": "noContentType",
"ResourceName": "BasicTypeSpec",
"Description": "Return hi again",
"Accessibility": "public",
"Parameters": [
{
- "$ref": "254"
+ "$ref": "193"
},
{
- "$id": "280",
+ "$id": "219",
"Name": "p1",
"NameInRequest": "p1",
"Type": {
- "$id": "281",
+ "$id": "220",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2730,11 +2184,11 @@
"SkipUrlEncoding": false
},
{
- "$id": "282",
+ "$id": "221",
"Name": "p2",
"NameInRequest": "p2",
"Type": {
- "$id": "283",
+ "$id": "222",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2751,15 +2205,15 @@
"SkipUrlEncoding": false
},
{
- "$id": "284",
+ "$id": "223",
"Name": "contentType",
"NameInRequest": "Content-Type",
"Description": "Body parameter's content type. Known values are application/json",
"Type": {
- "$id": "285",
+ "$id": "224",
"kind": "constant",
"valueType": {
- "$id": "286",
+ "$id": "225",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2779,14 +2233,14 @@
"SkipUrlEncoding": false
},
{
- "$id": "287",
+ "$id": "226",
"Name": "accept",
"NameInRequest": "Accept",
"Type": {
- "$id": "288",
+ "$id": "227",
"kind": "constant",
"valueType": {
- "$id": "289",
+ "$id": "228",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2806,11 +2260,11 @@
"SkipUrlEncoding": false
},
{
- "$id": "290",
+ "$id": "229",
"Name": "action",
"NameInRequest": "action",
"Type": {
- "$ref": "145"
+ "$ref": "127"
},
"Location": "Body",
"IsApiVersion": false,
@@ -2825,12 +2279,12 @@
],
"Responses": [
{
- "$id": "291",
+ "$id": "230",
"StatusCodes": [
200
],
"BodyType": {
- "$ref": "145"
+ "$ref": "127"
},
"BodyMediaType": "Json",
"Headers": [],
@@ -2854,24 +2308,24 @@
"Decorators": []
},
{
- "$id": "292",
+ "$id": "231",
"Name": "helloDemo2",
"ResourceName": "BasicTypeSpec",
"Description": "Return hi in demo2",
"Accessibility": "public",
"Parameters": [
{
- "$ref": "254"
+ "$ref": "193"
},
{
- "$id": "293",
+ "$id": "232",
"Name": "accept",
"NameInRequest": "Accept",
"Type": {
- "$id": "294",
+ "$id": "233",
"kind": "constant",
"valueType": {
- "$id": "295",
+ "$id": "234",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2893,12 +2347,12 @@
],
"Responses": [
{
- "$id": "296",
+ "$id": "235",
"StatusCodes": [
200
],
"BodyType": {
- "$ref": "108"
+ "$ref": "90"
},
"BodyMediaType": "Json",
"Headers": [],
@@ -2919,25 +2373,25 @@
"Decorators": []
},
{
- "$id": "297",
+ "$id": "236",
"Name": "createLiteral",
"ResourceName": "BasicTypeSpec",
"Description": "Create with literal value",
"Accessibility": "public",
"Parameters": [
{
- "$ref": "254"
+ "$ref": "193"
},
{
- "$id": "298",
+ "$id": "237",
"Name": "contentType",
"NameInRequest": "Content-Type",
"Description": "Body parameter's content type. Known values are application/json",
"Type": {
- "$id": "299",
+ "$id": "238",
"kind": "constant",
"valueType": {
- "$id": "300",
+ "$id": "239",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2957,14 +2411,14 @@
"SkipUrlEncoding": false
},
{
- "$id": "301",
+ "$id": "240",
"Name": "accept",
"NameInRequest": "Accept",
"Type": {
- "$id": "302",
+ "$id": "241",
"kind": "constant",
"valueType": {
- "$id": "303",
+ "$id": "242",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2984,11 +2438,11 @@
"SkipUrlEncoding": false
},
{
- "$id": "304",
+ "$id": "243",
"Name": "body",
"NameInRequest": "body",
"Type": {
- "$ref": "108"
+ "$ref": "90"
},
"Location": "Body",
"IsApiVersion": false,
@@ -3003,12 +2457,12 @@
],
"Responses": [
{
- "$id": "305",
+ "$id": "244",
"StatusCodes": [
200
],
"BodyType": {
- "$ref": "108"
+ "$ref": "90"
},
"BodyMediaType": "Json",
"Headers": [],
@@ -3032,24 +2486,24 @@
"Decorators": []
},
{
- "$id": "306",
+ "$id": "245",
"Name": "helloLiteral",
"ResourceName": "BasicTypeSpec",
"Description": "Send literal parameters",
"Accessibility": "public",
"Parameters": [
{
- "$ref": "254"
+ "$ref": "193"
},
{
- "$id": "307",
+ "$id": "246",
"Name": "p1",
"NameInRequest": "p1",
"Type": {
- "$id": "308",
+ "$id": "247",
"kind": "constant",
"valueType": {
- "$id": "309",
+ "$id": "248",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3069,14 +2523,14 @@
"SkipUrlEncoding": false
},
{
- "$id": "310",
+ "$id": "249",
"Name": "p2",
"NameInRequest": "p2",
"Type": {
- "$id": "311",
+ "$id": "250",
"kind": "constant",
"valueType": {
- "$id": "312",
+ "$id": "251",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -3096,14 +2550,14 @@
"SkipUrlEncoding": false
},
{
- "$id": "313",
+ "$id": "252",
"Name": "p3",
"NameInRequest": "p3",
"Type": {
- "$id": "314",
+ "$id": "253",
"kind": "constant",
"valueType": {
- "$id": "315",
+ "$id": "254",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -3123,14 +2577,14 @@
"SkipUrlEncoding": false
},
{
- "$id": "316",
+ "$id": "255",
"Name": "accept",
"NameInRequest": "Accept",
"Type": {
- "$id": "317",
+ "$id": "256",
"kind": "constant",
"valueType": {
- "$id": "318",
+ "$id": "257",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3152,12 +2606,12 @@
],
"Responses": [
{
- "$id": "319",
+ "$id": "258",
"StatusCodes": [
200
],
"BodyType": {
- "$ref": "108"
+ "$ref": "90"
},
"BodyMediaType": "Json",
"Headers": [],
@@ -3178,26 +2632,26 @@
"Decorators": []
},
{
- "$id": "320",
+ "$id": "259",
"Name": "topAction",
"ResourceName": "BasicTypeSpec",
"Description": "top level method",
"Accessibility": "public",
"Parameters": [
{
- "$ref": "254"
+ "$ref": "193"
},
{
- "$id": "321",
+ "$id": "260",
"Name": "action",
"NameInRequest": "action",
"Type": {
- "$id": "322",
+ "$id": "261",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "323",
+ "$id": "262",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3217,14 +2671,14 @@
"SkipUrlEncoding": false
},
{
- "$id": "324",
+ "$id": "263",
"Name": "accept",
"NameInRequest": "Accept",
"Type": {
- "$id": "325",
+ "$id": "264",
"kind": "constant",
"valueType": {
- "$id": "326",
+ "$id": "265",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3246,12 +2700,12 @@
],
"Responses": [
{
- "$id": "327",
+ "$id": "266",
"StatusCodes": [
200
],
"BodyType": {
- "$ref": "108"
+ "$ref": "90"
},
"BodyMediaType": "Json",
"Headers": [],
@@ -3272,24 +2726,24 @@
"Decorators": []
},
{
- "$id": "328",
+ "$id": "267",
"Name": "topAction2",
"ResourceName": "BasicTypeSpec",
"Description": "top level method2",
"Accessibility": "public",
"Parameters": [
{
- "$ref": "254"
+ "$ref": "193"
},
{
- "$id": "329",
+ "$id": "268",
"Name": "accept",
"NameInRequest": "Accept",
"Type": {
- "$id": "330",
+ "$id": "269",
"kind": "constant",
"valueType": {
- "$id": "331",
+ "$id": "270",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3311,12 +2765,12 @@
],
"Responses": [
{
- "$id": "332",
+ "$id": "271",
"StatusCodes": [
200
],
"BodyType": {
- "$ref": "108"
+ "$ref": "90"
},
"BodyMediaType": "Json",
"Headers": [],
@@ -3337,25 +2791,25 @@
"Decorators": []
},
{
- "$id": "333",
+ "$id": "272",
"Name": "patchAction",
"ResourceName": "BasicTypeSpec",
"Description": "top level patch",
"Accessibility": "public",
"Parameters": [
{
- "$ref": "254"
+ "$ref": "193"
},
{
- "$id": "334",
+ "$id": "273",
"Name": "contentType",
"NameInRequest": "Content-Type",
"Description": "Body parameter's content type. Known values are application/json",
"Type": {
- "$id": "335",
+ "$id": "274",
"kind": "constant",
"valueType": {
- "$id": "336",
+ "$id": "275",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3375,14 +2829,14 @@
"SkipUrlEncoding": false
},
{
- "$id": "337",
+ "$id": "276",
"Name": "accept",
"NameInRequest": "Accept",
"Type": {
- "$id": "338",
+ "$id": "277",
"kind": "constant",
"valueType": {
- "$id": "339",
+ "$id": "278",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3402,11 +2856,11 @@
"SkipUrlEncoding": false
},
{
- "$id": "340",
+ "$id": "279",
"Name": "body",
"NameInRequest": "body",
"Type": {
- "$ref": "108"
+ "$ref": "90"
},
"Location": "Body",
"IsApiVersion": false,
@@ -3421,12 +2875,12 @@
],
"Responses": [
{
- "$id": "341",
+ "$id": "280",
"StatusCodes": [
200
],
"BodyType": {
- "$ref": "108"
+ "$ref": "90"
},
"BodyMediaType": "Json",
"Headers": [],
@@ -3450,25 +2904,25 @@
"Decorators": []
},
{
- "$id": "342",
+ "$id": "281",
"Name": "anonymousBody",
"ResourceName": "BasicTypeSpec",
"Description": "body parameter without body decorator",
"Accessibility": "public",
"Parameters": [
{
- "$ref": "254"
+ "$ref": "193"
},
{
- "$id": "343",
+ "$id": "282",
"Name": "contentType",
"NameInRequest": "Content-Type",
"Description": "Body parameter's content type. Known values are application/json",
"Type": {
- "$id": "344",
+ "$id": "283",
"kind": "constant",
"valueType": {
- "$id": "345",
+ "$id": "284",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3488,14 +2942,14 @@
"SkipUrlEncoding": false
},
{
- "$id": "346",
+ "$id": "285",
"Name": "accept",
"NameInRequest": "Accept",
"Type": {
- "$id": "347",
+ "$id": "286",
"kind": "constant",
"valueType": {
- "$id": "348",
+ "$id": "287",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3515,11 +2969,11 @@
"SkipUrlEncoding": false
},
{
- "$id": "349",
- "Name": "anonymousBodyRequest",
- "NameInRequest": "anonymousBodyRequest",
+ "$id": "288",
+ "Name": "thing",
+ "NameInRequest": "thing",
"Type": {
- "$ref": "202"
+ "$ref": "90"
},
"Location": "Body",
"IsApiVersion": false,
@@ -3534,12 +2988,12 @@
],
"Responses": [
{
- "$id": "350",
+ "$id": "289",
"StatusCodes": [
200
],
"BodyType": {
- "$ref": "108"
+ "$ref": "90"
},
"BodyMediaType": "Json",
"Headers": [],
@@ -3563,25 +3017,25 @@
"Decorators": []
},
{
- "$id": "351",
+ "$id": "290",
"Name": "friendlyModel",
"ResourceName": "BasicTypeSpec",
"Description": "Model can have its friendly name",
"Accessibility": "public",
"Parameters": [
{
- "$ref": "254"
+ "$ref": "193"
},
{
- "$id": "352",
+ "$id": "291",
"Name": "contentType",
"NameInRequest": "Content-Type",
"Description": "Body parameter's content type. Known values are application/json",
"Type": {
- "$id": "353",
+ "$id": "292",
"kind": "constant",
"valueType": {
- "$id": "354",
+ "$id": "293",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3601,14 +3055,14 @@
"SkipUrlEncoding": false
},
{
- "$id": "355",
+ "$id": "294",
"Name": "accept",
"NameInRequest": "Accept",
"Type": {
- "$id": "356",
+ "$id": "295",
"kind": "constant",
"valueType": {
- "$id": "357",
+ "$id": "296",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3628,11 +3082,11 @@
"SkipUrlEncoding": false
},
{
- "$id": "358",
- "Name": "friendlyModelRequest",
- "NameInRequest": "friendlyModelRequest",
+ "$id": "297",
+ "Name": "friend",
+ "NameInRequest": "friend",
"Type": {
- "$ref": "239"
+ "$ref": "184"
},
"Location": "Body",
"IsApiVersion": false,
@@ -3647,12 +3101,12 @@
],
"Responses": [
{
- "$id": "359",
+ "$id": "298",
"StatusCodes": [
200
],
"BodyType": {
- "$ref": "242"
+ "$ref": "184"
},
"BodyMediaType": "Json",
"Headers": [],
@@ -3676,25 +3130,25 @@
"Decorators": []
},
{
- "$id": "360",
+ "$id": "299",
"Name": "addTimeHeader",
"ResourceName": "BasicTypeSpec",
"Accessibility": "public",
"Parameters": [
{
- "$ref": "254"
+ "$ref": "193"
},
{
- "$id": "361",
+ "$id": "300",
"Name": "repeatabilityFirstSent",
"NameInRequest": "Repeatability-First-Sent",
"Type": {
- "$id": "362",
+ "$id": "301",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc7231",
"wireType": {
- "$id": "363",
+ "$id": "302",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3716,7 +3170,7 @@
],
"Responses": [
{
- "$id": "364",
+ "$id": "303",
"StatusCodes": [
204
],
@@ -3736,25 +3190,25 @@
"Decorators": []
},
{
- "$id": "365",
+ "$id": "304",
"Name": "projectedNameModel",
"ResourceName": "BasicTypeSpec",
"Description": "Model can have its projected name",
"Accessibility": "public",
"Parameters": [
{
- "$ref": "254"
+ "$ref": "193"
},
{
- "$id": "366",
+ "$id": "305",
"Name": "contentType",
"NameInRequest": "Content-Type",
"Description": "Body parameter's content type. Known values are application/json",
"Type": {
- "$id": "367",
+ "$id": "306",
"kind": "constant",
"valueType": {
- "$id": "368",
+ "$id": "307",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3774,14 +3228,14 @@
"SkipUrlEncoding": false
},
{
- "$id": "369",
+ "$id": "308",
"Name": "accept",
"NameInRequest": "Accept",
"Type": {
- "$id": "370",
+ "$id": "309",
"kind": "constant",
"valueType": {
- "$id": "371",
+ "$id": "310",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3801,11 +3255,11 @@
"SkipUrlEncoding": false
},
{
- "$id": "372",
- "Name": "projectedNameModelRequest",
- "NameInRequest": "projectedNameModelRequest",
+ "$id": "311",
+ "Name": "projectedModel",
+ "NameInRequest": "projectedModel",
"Type": {
- "$ref": "245"
+ "$ref": "187"
},
"Location": "Body",
"IsApiVersion": false,
@@ -3820,12 +3274,12 @@
],
"Responses": [
{
- "$id": "373",
+ "$id": "312",
"StatusCodes": [
200
],
"BodyType": {
- "$ref": "248"
+ "$ref": "187"
},
"BodyMediaType": "Json",
"Headers": [],
@@ -3849,24 +3303,24 @@
"Decorators": []
},
{
- "$id": "374",
+ "$id": "313",
"Name": "returnsAnonymousModel",
"ResourceName": "BasicTypeSpec",
"Description": "return anonymous model",
"Accessibility": "public",
"Parameters": [
{
- "$ref": "254"
+ "$ref": "193"
},
{
- "$id": "375",
+ "$id": "314",
"Name": "accept",
"NameInRequest": "Accept",
"Type": {
- "$id": "376",
+ "$id": "315",
"kind": "constant",
"valueType": {
- "$id": "377",
+ "$id": "316",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3888,12 +3342,12 @@
],
"Responses": [
{
- "$id": "378",
+ "$id": "317",
"StatusCodes": [
200
],
"BodyType": {
- "$ref": "251"
+ "$ref": "190"
},
"BodyMediaType": "Json",
"Headers": [],
@@ -3914,21 +3368,21 @@
"Decorators": []
},
{
- "$id": "379",
+ "$id": "318",
"Name": "getUnknownValue",
"ResourceName": "BasicTypeSpec",
"Description": "get extensible enum",
"Accessibility": "public",
"Parameters": [
{
- "$ref": "254"
+ "$ref": "193"
},
{
- "$id": "380",
+ "$id": "319",
"Name": "accept",
"NameInRequest": "Accept",
"Type": {
- "$id": "381",
+ "$id": "320",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3947,15 +3401,15 @@
],
"Responses": [
{
- "$id": "382",
+ "$id": "321",
"StatusCodes": [
200
],
"BodyType": {
- "$id": "383",
+ "$id": "322",
"kind": "constant",
"valueType": {
- "$id": "384",
+ "$id": "323",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3990,25 +3444,25 @@
"Decorators": []
},
{
- "$id": "385",
+ "$id": "324",
"Name": "internalProtocol",
"ResourceName": "BasicTypeSpec",
"Description": "When set protocol false and convenient true, then the protocol method should be internal",
"Accessibility": "public",
"Parameters": [
{
- "$ref": "254"
+ "$ref": "193"
},
{
- "$id": "386",
+ "$id": "325",
"Name": "contentType",
"NameInRequest": "Content-Type",
"Description": "Body parameter's content type. Known values are application/json",
"Type": {
- "$id": "387",
+ "$id": "326",
"kind": "constant",
"valueType": {
- "$id": "388",
+ "$id": "327",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4028,14 +3482,14 @@
"SkipUrlEncoding": false
},
{
- "$id": "389",
+ "$id": "328",
"Name": "accept",
"NameInRequest": "Accept",
"Type": {
- "$id": "390",
+ "$id": "329",
"kind": "constant",
"valueType": {
- "$id": "391",
+ "$id": "330",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4055,11 +3509,11 @@
"SkipUrlEncoding": false
},
{
- "$id": "392",
+ "$id": "331",
"Name": "body",
"NameInRequest": "body",
"Type": {
- "$ref": "108"
+ "$ref": "90"
},
"Location": "Body",
"IsApiVersion": false,
@@ -4074,12 +3528,12 @@
],
"Responses": [
{
- "$id": "393",
+ "$id": "332",
"StatusCodes": [
200
],
"BodyType": {
- "$ref": "108"
+ "$ref": "90"
},
"BodyMediaType": "Json",
"Headers": [],
@@ -4103,19 +3557,19 @@
"Decorators": []
},
{
- "$id": "394",
+ "$id": "333",
"Name": "stillConvenient",
"ResourceName": "BasicTypeSpec",
"Description": "When set protocol false and convenient true, the convenient method should be generated even it has the same signature as protocol one",
"Accessibility": "public",
"Parameters": [
{
- "$ref": "254"
+ "$ref": "193"
}
],
"Responses": [
{
- "$id": "395",
+ "$id": "334",
"StatusCodes": [
204
],
@@ -4135,21 +3589,21 @@
"Decorators": []
},
{
- "$id": "396",
+ "$id": "335",
"Name": "headAsBoolean",
"ResourceName": "BasicTypeSpec",
"Description": "head as boolean.",
"Accessibility": "public",
"Parameters": [
{
- "$ref": "254"
+ "$ref": "193"
},
{
- "$id": "397",
+ "$id": "336",
"Name": "id",
"NameInRequest": "id",
"Type": {
- "$id": "398",
+ "$id": "337",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4168,7 +3622,7 @@
],
"Responses": [
{
- "$id": "399",
+ "$id": "338",
"StatusCodes": [
204
],
@@ -4189,20 +3643,20 @@
}
],
"Protocol": {
- "$id": "400"
+ "$id": "339"
},
"Parameters": [
{
- "$ref": "254"
+ "$ref": "193"
}
],
"Decorators": []
}
],
"Auth": {
- "$id": "401",
+ "$id": "340",
"ApiKey": {
- "$id": "402",
+ "$id": "341",
"Name": "my-api-key"
}
}
diff --git a/eng/packages/http-client-csharp/package-lock.json b/eng/packages/http-client-csharp/package-lock.json
index a6c5127bbdfe..1f4fb56b374c 100644
--- a/eng/packages/http-client-csharp/package-lock.json
+++ b/eng/packages/http-client-csharp/package-lock.json
@@ -8,12 +8,25 @@
"name": "@azure-typespec/http-client-csharp",
"version": "1.0.0",
"dependencies": {
- "@typespec/http-client-csharp": "0.1.9-alpha.20240913.1"
+ "@typespec/http-client-csharp": "0.1.9-alpha.20241010.1"
},
"devDependencies": {
+ "@azure-tools/typespec-autorest": "0.46.0",
+ "@azure-tools/typespec-azure-core": "0.46.0",
+ "@azure-tools/typespec-azure-resource-manager": "0.46.1",
+ "@azure-tools/typespec-azure-rulesets": "0.46.0",
+ "@azure-tools/typespec-client-generator-core": "0.46.2",
"@eslint/js": "^9.2.0",
- "@types/node": "~18.13.0",
+ "@types/node": "~22.7.5",
"@types/prettier": "^2.6.3",
+ "@typespec/compiler": "0.60.0",
+ "@typespec/http": "0.60.0",
+ "@typespec/json-schema": "0.60.0",
+ "@typespec/library-linter": "0.60.0",
+ "@typespec/openapi": "0.60.0",
+ "@typespec/rest": "0.60.0",
+ "@typespec/versioning": "0.60.0",
+ "@typespec/xml": "0.60.0",
"@vitest/coverage-v8": "^1.4.0",
"@vitest/ui": "^1.4.0",
"c8": "^9.1.0",
@@ -21,9 +34,18 @@
"eslint": "^8.57.0",
"prettier": "~3.0.3",
"rimraf": "~5.0.5",
- "typescript": "~5.4.3",
+ "typescript": "~5.6.3",
"typescript-eslint": "^7.8.0",
"vitest": "^1.4.0"
+ },
+ "peerDependencies": {
+ "@azure-tools/typespec-azure-core": ">=0.46.0 <1.0.0 || ~0.47.0-0",
+ "@azure-tools/typespec-client-generator-core": ">=0.46.0 <1.0.0 || ~0.47.0-0",
+ "@typespec/compiler": ">=0.60.0 <1.0.0 || ~0.61.0-0",
+ "@typespec/http": ">=0.60.0 <1.0.0 || ~0.61.0-0",
+ "@typespec/openapi": ">=0.60.0 <1.0.0 || ~0.61.0-0",
+ "@typespec/rest": ">=0.60.0 <1.0.0 || ~0.61.0-0",
+ "@typespec/versioning": ">=0.60.0 <1.0.0 || ~0.61.0-0"
}
},
"node_modules/@ampproject/remapping": {
@@ -40,27 +62,83 @@
"node": ">=6.0.0"
}
},
+ "node_modules/@azure-tools/typespec-autorest": {
+ "version": "0.46.0",
+ "resolved": "https://registry.npmjs.org/@azure-tools/typespec-autorest/-/typespec-autorest-0.46.0.tgz",
+ "integrity": "sha512-LCIvxQgjczWUq/wi6fzKBqYHWJYD0hRLA8wBPzFasriHdBDHjpZ6vgTPmApzt0H5ArZX92Ar53Q5+ZXD9ktMUg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.0.0"
+ },
+ "peerDependencies": {
+ "@azure-tools/typespec-azure-core": "~0.46.0",
+ "@azure-tools/typespec-azure-resource-manager": "~0.46.0",
+ "@azure-tools/typespec-client-generator-core": "~0.46.0",
+ "@typespec/compiler": "~0.60.0",
+ "@typespec/http": "~0.60.0",
+ "@typespec/openapi": "~0.60.0",
+ "@typespec/rest": "~0.60.0",
+ "@typespec/versioning": "~0.60.0"
+ }
+ },
"node_modules/@azure-tools/typespec-azure-core": {
- "version": "0.45.0",
- "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.45.0.tgz",
- "integrity": "sha512-GycGMCmaIVSN+TftPtlPJLyeOrglbLmH08ZiZaVMjSih/TQEJM21RGR6d8QdjlkQWN61ntNDRD+RP2uv9tHmqw==",
+ "version": "0.46.0",
+ "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.46.0.tgz",
+ "integrity": "sha512-BNE31enSHWtWlrdIKShBS6CNFGk3OYmHSBnWqobcFJkTGXC090EoV2u6otn4BMI99fZRSR4gpwp/kYU9KLE9Jw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.0.0"
+ },
+ "peerDependencies": {
+ "@typespec/compiler": "~0.60.0",
+ "@typespec/http": "~0.60.0",
+ "@typespec/rest": "~0.60.0"
+ }
+ },
+ "node_modules/@azure-tools/typespec-azure-resource-manager": {
+ "version": "0.46.1",
+ "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.46.1.tgz",
+ "integrity": "sha512-8md8AwnxoYVkDBavQL5dbToUTS10PTSkcF+emd9BKEdnF9MKuA542vZudzaQOz2BzFbArMVUE/PLm2mhuwRkLw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "change-case": "~5.4.4",
+ "pluralize": "^8.0.0"
+ },
+ "engines": {
+ "node": ">=18.0.0"
+ },
+ "peerDependencies": {
+ "@azure-tools/typespec-azure-core": "~0.46.0",
+ "@typespec/compiler": "~0.60.0",
+ "@typespec/http": "~0.60.0",
+ "@typespec/openapi": "~0.60.0",
+ "@typespec/rest": "~0.60.0",
+ "@typespec/versioning": "~0.60.0"
+ }
+ },
+ "node_modules/@azure-tools/typespec-azure-rulesets": {
+ "version": "0.46.0",
+ "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-rulesets/-/typespec-azure-rulesets-0.46.0.tgz",
+ "integrity": "sha512-HssO+0ARHbnuLhRiT/7l5DF2hV91Jf/MmsSPdOsDMbVZG26YsB8JD1MiBqs9VJZjB+1xn2DiimYrgqF4n9aDvw==",
+ "dev": true,
"license": "MIT",
- "peer": true,
"engines": {
"node": ">=18.0.0"
},
"peerDependencies": {
- "@typespec/compiler": "~0.59.0",
- "@typespec/http": "~0.59.0",
- "@typespec/rest": "~0.59.0"
+ "@azure-tools/typespec-azure-core": "~0.46.0",
+ "@azure-tools/typespec-azure-resource-manager": "~0.46.0",
+ "@azure-tools/typespec-client-generator-core": "~0.46.0",
+ "@typespec/compiler": "~0.60.0"
}
},
"node_modules/@azure-tools/typespec-client-generator-core": {
- "version": "0.45.3",
- "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.45.3.tgz",
- "integrity": "sha512-o1E38DJnJ71ixK3jHTy42QgY1ztXPGEOhJjdzSb9aI0aXlqqBt0Klgg52RuBHBajQ+RI+nWtGLE+LJaVDSHAqw==",
+ "version": "0.46.2",
+ "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.46.2.tgz",
+ "integrity": "sha512-/HKeehCNDeylouOHMe7IwpcDcGJHRAuEy3a5FBnSY51m4EpMq4VMQzW9tka/8brFO2m5LLj7tyhOL/xnzi2fLg==",
"license": "MIT",
- "peer": true,
"dependencies": {
"change-case": "~5.4.4",
"pluralize": "^8.0.0"
@@ -69,12 +147,12 @@
"node": ">=18.0.0"
},
"peerDependencies": {
- "@azure-tools/typespec-azure-core": "~0.45.0",
- "@typespec/compiler": "~0.59.0",
- "@typespec/http": "~0.59.0",
- "@typespec/openapi": "~0.59.0",
- "@typespec/rest": "~0.59.0",
- "@typespec/versioning": "~0.59.0"
+ "@azure-tools/typespec-azure-core": "~0.46.0",
+ "@typespec/compiler": "~0.60.0",
+ "@typespec/http": "~0.60.0",
+ "@typespec/openapi": "~0.60.0",
+ "@typespec/rest": "~0.60.0",
+ "@typespec/versioning": "~0.60.0"
}
},
"node_modules/@babel/code-frame": {
@@ -82,7 +160,6 @@
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz",
"integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==",
"license": "MIT",
- "peer": true,
"dependencies": {
"@babel/highlight": "^7.24.7",
"picocolors": "^1.0.0"
@@ -92,9 +169,9 @@
}
},
"node_modules/@babel/helper-string-parser": {
- "version": "7.24.8",
- "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz",
- "integrity": "sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==",
+ "version": "7.25.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.7.tgz",
+ "integrity": "sha512-CbkjYdsJNHFk8uqpEkpCvRs3YRp9tY6FmFY7wLMSYuGYkrdUi7r2lc4/wqsvlHoMznX3WJ9IP8giGPq68T/Y6g==",
"dev": true,
"license": "MIT",
"engines": {
@@ -102,22 +179,21 @@
}
},
"node_modules/@babel/helper-validator-identifier": {
- "version": "7.24.7",
- "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz",
- "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==",
+ "version": "7.25.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.7.tgz",
+ "integrity": "sha512-AM6TzwYqGChO45oiuPqwL2t20/HdMC1rTPAesnBCgPCSF1x3oN9MVUwQV2iyz4xqWrctwK5RNC8LV22kaQCNYg==",
"license": "MIT",
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@babel/highlight": {
- "version": "7.24.7",
- "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.7.tgz",
- "integrity": "sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==",
+ "version": "7.25.7",
+ "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.25.7.tgz",
+ "integrity": "sha512-iYyACpW3iW8Fw+ZybQK+drQre+ns/tKpXbNESfrhNnPLIklLbXr7MYJ6gPEd0iETGLOK+SxMjVvKb/ffmk+FEw==",
"license": "MIT",
- "peer": true,
"dependencies": {
- "@babel/helper-validator-identifier": "^7.24.7",
+ "@babel/helper-validator-identifier": "^7.25.7",
"chalk": "^2.4.2",
"js-tokens": "^4.0.0",
"picocolors": "^1.0.0"
@@ -127,13 +203,13 @@
}
},
"node_modules/@babel/parser": {
- "version": "7.25.3",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.3.tgz",
- "integrity": "sha512-iLTJKDbJ4hMvFPgQwwsVoxtHyWpKKPBrxkANrSYewDPaPpT5py5yeVkgPIJ7XYXhndxJpaA3PyALSXQ7u8e/Dw==",
+ "version": "7.25.8",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.8.tgz",
+ "integrity": "sha512-HcttkxzdPucv3nNFmfOOMfFf64KgdJVqm1KaCm25dPGMLElo9nsLvXeJECQg8UzPuBGLyTSA0ZzqCtDSzKTEoQ==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@babel/types": "^7.25.2"
+ "@babel/types": "^7.25.8"
},
"bin": {
"parser": "bin/babel-parser.js"
@@ -143,14 +219,14 @@
}
},
"node_modules/@babel/types": {
- "version": "7.25.2",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.2.tgz",
- "integrity": "sha512-YTnYtra7W9e6/oAZEHj0bJehPRUlLH9/fbpT5LfB0NhQXyALCRkRs3zH9v07IYhkgpqX6Z78FnuccZr/l4Fs4Q==",
+ "version": "7.25.8",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.8.tgz",
+ "integrity": "sha512-JWtuCu8VQsMladxVz/P4HzHUGCAwpuqacmowgXFs5XjxIgKuNjnLokQzuVjlTvIzODaDmpjT3oxcC48vyk9EWg==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@babel/helper-string-parser": "^7.24.8",
- "@babel/helper-validator-identifier": "^7.24.7",
+ "@babel/helper-string-parser": "^7.25.7",
+ "@babel/helper-validator-identifier": "^7.25.7",
"to-fast-properties": "^2.0.0"
},
"engines": {
@@ -572,9 +648,9 @@
}
},
"node_modules/@eslint-community/regexpp": {
- "version": "4.11.0",
- "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.11.0.tgz",
- "integrity": "sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==",
+ "version": "4.11.1",
+ "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.11.1.tgz",
+ "integrity": "sha512-m4DVN9ZqskZoLU5GlWZadwDnYo3vAEydiUayB9widCl9ffWx2IvPnp6n3on5rJmziJSw9Bv+Z3ChDVdMwXCY8Q==",
"dev": true,
"license": "MIT",
"engines": {
@@ -630,9 +706,9 @@
"license": "MIT"
},
"node_modules/@eslint/js": {
- "version": "9.9.0",
- "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.9.0.tgz",
- "integrity": "sha512-hhetes6ZHP3BlXLxmd8K2SNgkhNSi+UcecbnwWKwpP7kyi/uC75DJ1lOOBO3xrC4jyojtGE3YxKZPHfk4yrgug==",
+ "version": "9.12.0",
+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.12.0.tgz",
+ "integrity": "sha512-eohesHH8WFRUprDNyEREgqP6beG6htMeUYeCpkEgBCieCMme5r9zFWjzAJp//9S+Kub4rqE+jXe9Cp1a7IYIIA==",
"dev": true,
"license": "MIT",
"engines": {
@@ -640,14 +716,14 @@
}
},
"node_modules/@humanwhocodes/config-array": {
- "version": "0.11.14",
- "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz",
- "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==",
+ "version": "0.13.0",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz",
+ "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==",
"deprecated": "Use @eslint/config-array instead",
"dev": true,
"license": "Apache-2.0",
"dependencies": {
- "@humanwhocodes/object-schema": "^2.0.2",
+ "@humanwhocodes/object-schema": "^2.0.3",
"debug": "^4.3.1",
"minimatch": "^3.0.5"
},
@@ -696,9 +772,9 @@
}
},
"node_modules/@isaacs/cliui/node_modules/ansi-regex": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz",
- "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==",
+ "version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz",
+ "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==",
"dev": true,
"license": "MIT",
"engines": {
@@ -903,16 +979,16 @@
}
},
"node_modules/@polka/url": {
- "version": "1.0.0-next.25",
- "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.25.tgz",
- "integrity": "sha512-j7P6Rgr3mmtdkeDGTe0E/aYyWEWVtc5yFXtHCRHs28/jptDEWfaVOc5T7cblqy1XKPPfCxJc/8DwQ5YgLOZOVQ==",
+ "version": "1.0.0-next.28",
+ "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.28.tgz",
+ "integrity": "sha512-8LduaNlMZGwdZ6qWrKlfa+2M4gahzFkprZiAt2TF8uS0qQgBizKXpXURqvTJ4WtmupWxaLqjRb2UCTe72mu+Aw==",
"dev": true,
"license": "MIT"
},
"node_modules/@rollup/rollup-android-arm-eabi": {
- "version": "4.21.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.21.0.tgz",
- "integrity": "sha512-WTWD8PfoSAJ+qL87lE7votj3syLavxunWhzCnx3XFxFiI/BA/r3X7MUM8dVrH8rb2r4AiO8jJsr3ZjdaftmnfA==",
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.24.0.tgz",
+ "integrity": "sha512-Q6HJd7Y6xdB48x8ZNVDOqsbh2uByBhgK8PiQgPhwkIw/HC/YX5Ghq2mQY5sRMZWHb3VsFkWooUVOZHKr7DmDIA==",
"cpu": [
"arm"
],
@@ -924,9 +1000,9 @@
]
},
"node_modules/@rollup/rollup-android-arm64": {
- "version": "4.21.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.21.0.tgz",
- "integrity": "sha512-a1sR2zSK1B4eYkiZu17ZUZhmUQcKjk2/j9Me2IDjk1GHW7LB5Z35LEzj9iJch6gtUfsnvZs1ZNyDW2oZSThrkA==",
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.24.0.tgz",
+ "integrity": "sha512-ijLnS1qFId8xhKjT81uBHuuJp2lU4x2yxa4ctFPtG+MqEE6+C5f/+X/bStmxapgmwLwiL3ih122xv8kVARNAZA==",
"cpu": [
"arm64"
],
@@ -938,9 +1014,9 @@
]
},
"node_modules/@rollup/rollup-darwin-arm64": {
- "version": "4.21.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.21.0.tgz",
- "integrity": "sha512-zOnKWLgDld/svhKO5PD9ozmL6roy5OQ5T4ThvdYZLpiOhEGY+dp2NwUmxK0Ld91LrbjrvtNAE0ERBwjqhZTRAA==",
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.24.0.tgz",
+ "integrity": "sha512-bIv+X9xeSs1XCk6DVvkO+S/z8/2AMt/2lMqdQbMrmVpgFvXlmde9mLcbQpztXm1tajC3raFDqegsH18HQPMYtA==",
"cpu": [
"arm64"
],
@@ -952,9 +1028,9 @@
]
},
"node_modules/@rollup/rollup-darwin-x64": {
- "version": "4.21.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.21.0.tgz",
- "integrity": "sha512-7doS8br0xAkg48SKE2QNtMSFPFUlRdw9+votl27MvT46vo44ATBmdZdGysOevNELmZlfd+NEa0UYOA8f01WSrg==",
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.24.0.tgz",
+ "integrity": "sha512-X6/nOwoFN7RT2svEQWUsW/5C/fYMBe4fnLK9DQk4SX4mgVBiTA9h64kjUYPvGQ0F/9xwJ5U5UfTbl6BEjaQdBQ==",
"cpu": [
"x64"
],
@@ -966,9 +1042,9 @@
]
},
"node_modules/@rollup/rollup-linux-arm-gnueabihf": {
- "version": "4.21.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.21.0.tgz",
- "integrity": "sha512-pWJsfQjNWNGsoCq53KjMtwdJDmh/6NubwQcz52aEwLEuvx08bzcy6tOUuawAOncPnxz/3siRtd8hiQ32G1y8VA==",
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.24.0.tgz",
+ "integrity": "sha512-0KXvIJQMOImLCVCz9uvvdPgfyWo93aHHp8ui3FrtOP57svqrF/roSSR5pjqL2hcMp0ljeGlU4q9o/rQaAQ3AYA==",
"cpu": [
"arm"
],
@@ -980,9 +1056,9 @@
]
},
"node_modules/@rollup/rollup-linux-arm-musleabihf": {
- "version": "4.21.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.21.0.tgz",
- "integrity": "sha512-efRIANsz3UHZrnZXuEvxS9LoCOWMGD1rweciD6uJQIx2myN3a8Im1FafZBzh7zk1RJ6oKcR16dU3UPldaKd83w==",
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.24.0.tgz",
+ "integrity": "sha512-it2BW6kKFVh8xk/BnHfakEeoLPv8STIISekpoF+nBgWM4d55CZKc7T4Dx1pEbTnYm/xEKMgy1MNtYuoA8RFIWw==",
"cpu": [
"arm"
],
@@ -994,9 +1070,9 @@
]
},
"node_modules/@rollup/rollup-linux-arm64-gnu": {
- "version": "4.21.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.21.0.tgz",
- "integrity": "sha512-ZrPhydkTVhyeGTW94WJ8pnl1uroqVHM3j3hjdquwAcWnmivjAwOYjTEAuEDeJvGX7xv3Z9GAvrBkEzCgHq9U1w==",
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.24.0.tgz",
+ "integrity": "sha512-i0xTLXjqap2eRfulFVlSnM5dEbTVque/3Pi4g2y7cxrs7+a9De42z4XxKLYJ7+OhE3IgxvfQM7vQc43bwTgPwA==",
"cpu": [
"arm64"
],
@@ -1008,9 +1084,9 @@
]
},
"node_modules/@rollup/rollup-linux-arm64-musl": {
- "version": "4.21.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.21.0.tgz",
- "integrity": "sha512-cfaupqd+UEFeURmqNP2eEvXqgbSox/LHOyN9/d2pSdV8xTrjdg3NgOFJCtc1vQ/jEke1qD0IejbBfxleBPHnPw==",
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.24.0.tgz",
+ "integrity": "sha512-9E6MKUJhDuDh604Qco5yP/3qn3y7SLXYuiC0Rpr89aMScS2UAmK1wHP2b7KAa1nSjWJc/f/Lc0Wl1L47qjiyQw==",
"cpu": [
"arm64"
],
@@ -1022,9 +1098,9 @@
]
},
"node_modules/@rollup/rollup-linux-powerpc64le-gnu": {
- "version": "4.21.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.21.0.tgz",
- "integrity": "sha512-ZKPan1/RvAhrUylwBXC9t7B2hXdpb/ufeu22pG2psV7RN8roOfGurEghw1ySmX/CmDDHNTDDjY3lo9hRlgtaHg==",
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.24.0.tgz",
+ "integrity": "sha512-2XFFPJ2XMEiF5Zi2EBf4h73oR1V/lycirxZxHZNc93SqDN/IWhYYSYj8I9381ikUFXZrz2v7r2tOVk2NBwxrWw==",
"cpu": [
"ppc64"
],
@@ -1036,9 +1112,9 @@
]
},
"node_modules/@rollup/rollup-linux-riscv64-gnu": {
- "version": "4.21.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.21.0.tgz",
- "integrity": "sha512-H1eRaCwd5E8eS8leiS+o/NqMdljkcb1d6r2h4fKSsCXQilLKArq6WS7XBLDu80Yz+nMqHVFDquwcVrQmGr28rg==",
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.24.0.tgz",
+ "integrity": "sha512-M3Dg4hlwuntUCdzU7KjYqbbd+BLq3JMAOhCKdBE3TcMGMZbKkDdJ5ivNdehOssMCIokNHFOsv7DO4rlEOfyKpg==",
"cpu": [
"riscv64"
],
@@ -1050,9 +1126,9 @@
]
},
"node_modules/@rollup/rollup-linux-s390x-gnu": {
- "version": "4.21.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.21.0.tgz",
- "integrity": "sha512-zJ4hA+3b5tu8u7L58CCSI0A9N1vkfwPhWd/puGXwtZlsB5bTkwDNW/+JCU84+3QYmKpLi+XvHdmrlwUwDA6kqw==",
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.24.0.tgz",
+ "integrity": "sha512-mjBaoo4ocxJppTorZVKWFpy1bfFj9FeCMJqzlMQGjpNPY9JwQi7OuS1axzNIk0nMX6jSgy6ZURDZ2w0QW6D56g==",
"cpu": [
"s390x"
],
@@ -1064,9 +1140,9 @@
]
},
"node_modules/@rollup/rollup-linux-x64-gnu": {
- "version": "4.21.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.21.0.tgz",
- "integrity": "sha512-e2hrvElFIh6kW/UNBQK/kzqMNY5mO+67YtEh9OA65RM5IJXYTWiXjX6fjIiPaqOkBthYF1EqgiZ6OXKcQsM0hg==",
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.24.0.tgz",
+ "integrity": "sha512-ZXFk7M72R0YYFN5q13niV0B7G8/5dcQ9JDp8keJSfr3GoZeXEoMHP/HlvqROA3OMbMdfr19IjCeNAnPUG93b6A==",
"cpu": [
"x64"
],
@@ -1078,9 +1154,9 @@
]
},
"node_modules/@rollup/rollup-linux-x64-musl": {
- "version": "4.21.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.21.0.tgz",
- "integrity": "sha512-1vvmgDdUSebVGXWX2lIcgRebqfQSff0hMEkLJyakQ9JQUbLDkEaMsPTLOmyccyC6IJ/l3FZuJbmrBw/u0A0uCQ==",
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.24.0.tgz",
+ "integrity": "sha512-w1i+L7kAXZNdYl+vFvzSZy8Y1arS7vMgIy8wusXJzRrPyof5LAb02KGr1PD2EkRcl73kHulIID0M501lN+vobQ==",
"cpu": [
"x64"
],
@@ -1092,9 +1168,9 @@
]
},
"node_modules/@rollup/rollup-win32-arm64-msvc": {
- "version": "4.21.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.21.0.tgz",
- "integrity": "sha512-s5oFkZ/hFcrlAyBTONFY1TWndfyre1wOMwU+6KCpm/iatybvrRgmZVM+vCFwxmC5ZhdlgfE0N4XorsDpi7/4XQ==",
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.24.0.tgz",
+ "integrity": "sha512-VXBrnPWgBpVDCVY6XF3LEW0pOU51KbaHhccHw6AS6vBWIC60eqsH19DAeeObl+g8nKAz04QFdl/Cefta0xQtUQ==",
"cpu": [
"arm64"
],
@@ -1106,9 +1182,9 @@
]
},
"node_modules/@rollup/rollup-win32-ia32-msvc": {
- "version": "4.21.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.21.0.tgz",
- "integrity": "sha512-G9+TEqRnAA6nbpqyUqgTiopmnfgnMkR3kMukFBDsiyy23LZvUCpiUwjTRx6ezYCjJODXrh52rBR9oXvm+Fp5wg==",
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.24.0.tgz",
+ "integrity": "sha512-xrNcGDU0OxVcPTH/8n/ShH4UevZxKIO6HJFK0e15XItZP2UcaiLFd5kiX7hJnqCbSztUF8Qot+JWBC/QXRPYWQ==",
"cpu": [
"ia32"
],
@@ -1120,9 +1196,9 @@
]
},
"node_modules/@rollup/rollup-win32-x64-msvc": {
- "version": "4.21.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.21.0.tgz",
- "integrity": "sha512-2jsCDZwtQvRhejHLfZ1JY6w6kEuEtfF9nzYsZxzSlNVKDX+DpsDJ+Rbjkm74nvg2rdx0gwBS+IMdvwJuq3S9pQ==",
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.24.0.tgz",
+ "integrity": "sha512-fbMkAF7fufku0N2dE5TBXcNlg0pt0cJue4xBRE2Qc5Vqikxr4VCgKj/ht6SMdFcOacVA9rqF70APJ8RN/4vMJw==",
"cpu": [
"x64"
],
@@ -1145,7 +1221,6 @@
"resolved": "https://registry.npmjs.org/@sindresorhus/merge-streams/-/merge-streams-2.3.0.tgz",
"integrity": "sha512-LtoMMhxAlorcGhmFYI+LhPgbPZCkgP6ra1YL604EeF6U98pLlQ3iWIGMdWSC+vWmPBWBNgmDBAhnAobLROJmwg==",
"license": "MIT",
- "peer": true,
"engines": {
"node": ">=18"
},
@@ -1154,9 +1229,9 @@
}
},
"node_modules/@types/estree": {
- "version": "1.0.5",
- "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz",
- "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==",
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz",
+ "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==",
"dev": true,
"license": "MIT"
},
@@ -1168,11 +1243,14 @@
"license": "MIT"
},
"node_modules/@types/node": {
- "version": "18.13.0",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-18.13.0.tgz",
- "integrity": "sha512-gC3TazRzGoOnoKAhUx+Q0t8S9Tzs74z7m0ipwGpSqQrleP14hKxP4/JUeEQcD3W1/aIpnWl8pHowI7WokuZpXg==",
+ "version": "22.7.5",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.5.tgz",
+ "integrity": "sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ==",
"dev": true,
- "license": "MIT"
+ "license": "MIT",
+ "dependencies": {
+ "undici-types": "~6.19.2"
+ }
},
"node_modules/@types/prettier": {
"version": "2.7.3",
@@ -1432,11 +1510,10 @@
}
},
"node_modules/@typespec/compiler": {
- "version": "0.59.1",
- "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-0.59.1.tgz",
- "integrity": "sha512-O2ljgr6YoFaIH6a8lWc90/czdv4B2X6N9wz4WsnQnVvgO0Tj0s+3xkvp4Tv59RKMhT0f3fK6dL8oEGO32FYk1A==",
+ "version": "0.60.0",
+ "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-0.60.0.tgz",
+ "integrity": "sha512-qAS99tJv6RvxSescfxRVal4QWSfdf3BzIOgE8+Az6emL68aTE/W8zQ0Ijpgmhax7sC2AnLTxCK1tM9kj1YguRw==",
"license": "MIT",
- "peer": true,
"dependencies": {
"@babel/code-frame": "~7.24.7",
"ajv": "~8.17.1",
@@ -1461,12 +1538,17 @@
"node": ">=18.0.0"
}
},
+ "node_modules/@typespec/compiler/node_modules/picocolors": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz",
+ "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==",
+ "license": "ISC"
+ },
"node_modules/@typespec/compiler/node_modules/prettier": {
"version": "3.3.3",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz",
"integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==",
"license": "MIT",
- "peer": true,
"bin": {
"prettier": "bin/prettier.cjs"
},
@@ -1478,74 +1560,113 @@
}
},
"node_modules/@typespec/http": {
- "version": "0.59.1",
- "resolved": "https://registry.npmjs.org/@typespec/http/-/http-0.59.1.tgz",
- "integrity": "sha512-Ai8oCAO+Bw1HMSZ9gOI5Od4fNn/ul4HrVtTB01xFuLK6FQj854pxhzao8ylPnr7gIRQ327FV12/QfXR87yCiYQ==",
+ "version": "0.60.0",
+ "resolved": "https://registry.npmjs.org/@typespec/http/-/http-0.60.0.tgz",
+ "integrity": "sha512-ktfS9vpHfltyeAaQLNAZdqrn6Per3vmB/HDH/iyudYLA5wWblT1siKvpFCMWq53CJorRO7yeOKv+Q/M26zwEtg==",
"license": "MIT",
- "peer": true,
"engines": {
"node": ">=18.0.0"
},
"peerDependencies": {
- "@typespec/compiler": "~0.59.0"
+ "@typespec/compiler": "~0.60.0"
}
},
"node_modules/@typespec/http-client-csharp": {
- "version": "0.1.9-alpha.20240913.1",
- "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-0.1.9-alpha.20240913.1.tgz",
- "integrity": "sha512-VBBjSXpngPDQadC5QlIRBQMQCtyDqG423C+2Qh0p+eHKzugedc/MgGIP8hOj0MMuqpqWqYp4akiA5XHEhsUHRA==",
+ "version": "0.1.9-alpha.20241010.1",
+ "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-0.1.9-alpha.20241010.1.tgz",
+ "integrity": "sha512-gmVr7hG/PvQ0HsAqxB1bxfCiA9qR7pU22RVRDSCxbScRkyN0z8XBtEOxBGCX9y/ut3nMyNakxfK/FVG+I+WOyQ==",
+ "license": "MIT",
"dependencies": {
"json-serialize-refs": "0.1.0-0"
},
"peerDependencies": {
- "@azure-tools/typespec-azure-core": ">=0.44.0 <1.0.0 || ~0.45.0-0 || ~0.46.0-0",
- "@azure-tools/typespec-client-generator-core": ">=0.44.0 <1.0.0 || ~0.45.0-0 || ~0.46.0-0",
- "@typespec/compiler": ">=0.58.0 <1.0.0 || ~0.59.0-0 || ~0.60.0-0",
- "@typespec/http": ">=0.58.0 <1.0.0 || ~0.59.0-0 || ~0.60.0-0",
- "@typespec/openapi": ">=0.58.0 <1.0.0 || ~0.59.0-0 || ~0.60.0-0",
- "@typespec/rest": ">=0.58.0 <1.0.0 || ~0.59.0-0 || ~0.60.0-0",
- "@typespec/versioning": ">=0.58.0 <1.0.0 || ~0.59.0-0 || ~0.60.0-0"
+ "@azure-tools/typespec-azure-core": ">=0.46.0 <1.0.0 || ~0.47.0-0",
+ "@azure-tools/typespec-client-generator-core": ">=0.46.0 <1.0.0 || ~0.47.0-0",
+ "@typespec/compiler": ">=0.60.0 <1.0.0 || ~0.61.0-0",
+ "@typespec/http": ">=0.60.0 <1.0.0 || ~0.61.0-0",
+ "@typespec/openapi": ">=0.60.0 <1.0.0 || ~0.61.0-0",
+ "@typespec/rest": ">=0.60.0 <1.0.0 || ~0.61.0-0",
+ "@typespec/versioning": ">=0.60.0 <1.0.0 || ~0.61.0-0"
+ }
+ },
+ "node_modules/@typespec/json-schema": {
+ "version": "0.60.0",
+ "resolved": "https://registry.npmjs.org/@typespec/json-schema/-/json-schema-0.60.0.tgz",
+ "integrity": "sha512-TXtQH82CVtrDjiHjTCE/hHeizC/4DmvTFMmB/64cgC8QIp+C32tmyAv4/iXT6l8ovwB32btL9pAfczKiIxUIZw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "yaml": "~2.4.5"
+ },
+ "engines": {
+ "node": ">=18.0.0"
+ },
+ "peerDependencies": {
+ "@typespec/compiler": "~0.60.0"
+ }
+ },
+ "node_modules/@typespec/library-linter": {
+ "version": "0.60.0",
+ "resolved": "https://registry.npmjs.org/@typespec/library-linter/-/library-linter-0.60.0.tgz",
+ "integrity": "sha512-PGcC+x7T/uq4KvbSm2uv/Eq7jZ6p1N0XynOjJZYx/+GjtB4M7mjAsmcQpuU7yKHfLJz3lfNmtXoAUgKKpC4FDw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "peerDependencies": {
+ "@typespec/compiler": "~0.60.0"
}
},
"node_modules/@typespec/openapi": {
- "version": "0.59.0",
- "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.59.0.tgz",
- "integrity": "sha512-do1Dm5w0MuK3994gYTBg6qMfgeIxmmsDqnz3zimYKMPpbnUBi4F6/o4iCfn0Fn9kaNl+H6UlOzZpsZW9xHui1Q==",
+ "version": "0.60.0",
+ "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.60.0.tgz",
+ "integrity": "sha512-YVwLppgHY8r/MudHNSLSUXzdw+CIpjmb31gI2a0KDGnI6sWDwY7LSWfjGU4TY/ubt0+X0Tjoy330mTvw71YBTg==",
"license": "MIT",
- "peer": true,
"engines": {
"node": ">=18.0.0"
},
"peerDependencies": {
- "@typespec/compiler": "~0.59.0",
- "@typespec/http": "~0.59.0"
+ "@typespec/compiler": "~0.60.0",
+ "@typespec/http": "~0.60.0"
}
},
"node_modules/@typespec/rest": {
- "version": "0.59.1",
- "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.59.1.tgz",
- "integrity": "sha512-uKU431jBYL2tVQWG5THA75+OtXDa1e8cMAafYK/JJRRiVRd8D/Epd8fp07dzlB8tFGrhCaGlekRMqFPFrHh2/A==",
+ "version": "0.60.0",
+ "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.60.0.tgz",
+ "integrity": "sha512-mHYubyuBvwdV2xkHrJfPwV7b/Ksyb9lA1Q/AQwpVFa7Qu1X075TBVALmH+hK3V0EdUG1CGJZ5Sw4BWgl8ZS0BA==",
"license": "MIT",
- "peer": true,
"engines": {
"node": ">=18.0.0"
},
"peerDependencies": {
- "@typespec/compiler": "~0.59.0",
- "@typespec/http": "~0.59.1"
+ "@typespec/compiler": "~0.60.0",
+ "@typespec/http": "~0.60.0"
}
},
"node_modules/@typespec/versioning": {
- "version": "0.59.0",
- "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.59.0.tgz",
- "integrity": "sha512-aihO/ux0lLmsuYAdGVkiBflSudcZokYG42SELk1FtMFo609G3Pd7ep7hau6unBnMIceQZejB0ow5UGRupK4X5A==",
+ "version": "0.60.0",
+ "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.60.0.tgz",
+ "integrity": "sha512-SqxCQ9qMw5fdR7WP6/GFLzwcFwxhv+uHlzJGVcTd1GtIAu5qj2X4VmzFuNQyu+QenI+5uOSrEEywEXn0YRTZSg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.0.0"
+ },
+ "peerDependencies": {
+ "@typespec/compiler": "~0.60.0"
+ }
+ },
+ "node_modules/@typespec/xml": {
+ "version": "0.60.0",
+ "resolved": "https://registry.npmjs.org/@typespec/xml/-/xml-0.60.0.tgz",
+ "integrity": "sha512-Cr1Vih4ovB1OKHJNrXf23Bq4IiVNGlf7F6kN5Yfc7UDqxy+hiCfuwXfjlu3ida/bYTalGPd4/KL9EAx+m41Bxw==",
+ "dev": true,
"license": "MIT",
- "peer": true,
"engines": {
"node": ">=18.0.0"
},
"peerDependencies": {
- "@typespec/compiler": "~0.59.0"
+ "@typespec/compiler": "~0.60.0"
}
},
"node_modules/@ungap/structured-clone": {
@@ -1732,9 +1853,9 @@
}
},
"node_modules/acorn-walk": {
- "version": "8.3.3",
- "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.3.tgz",
- "integrity": "sha512-MxXdReSRhGO7VlFe1bRG/oI7/mdLV9B9JJT0N8vZOhF7gFRR5l3M8W9G8JxmKV+JC5mGqJ0QvqfSOLsCPa4nUw==",
+ "version": "8.3.4",
+ "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz",
+ "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -1749,7 +1870,6 @@
"resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz",
"integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==",
"license": "MIT",
- "peer": true,
"dependencies": {
"fast-deep-equal": "^3.1.3",
"fast-uri": "^3.0.1",
@@ -1775,7 +1895,6 @@
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
"integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
"license": "MIT",
- "peer": true,
"dependencies": {
"color-convert": "^1.9.0"
},
@@ -1910,7 +2029,6 @@
"resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
"integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
"license": "MIT",
- "peer": true,
"dependencies": {
"ansi-styles": "^3.2.1",
"escape-string-regexp": "^1.0.5",
@@ -1924,8 +2042,7 @@
"version": "5.4.4",
"resolved": "https://registry.npmjs.org/change-case/-/change-case-5.4.4.tgz",
"integrity": "sha512-HRQyTk2/YPEkt9TnUPbOpr64Uw3KOicFWPVBb+xiHvd6eBx/qPr9xqfBFDT8P2vWsvvz4jbEkfDe71W3VyNu2w==",
- "license": "MIT",
- "peer": true
+ "license": "MIT"
},
"node_modules/check-error": {
"version": "1.0.3",
@@ -1959,7 +2076,6 @@
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
"integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
"license": "MIT",
- "peer": true,
"dependencies": {
"color-name": "1.1.3"
}
@@ -1968,8 +2084,7 @@
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
"integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==",
- "license": "MIT",
- "peer": true
+ "license": "MIT"
},
"node_modules/concat-map": {
"version": "0.0.1",
@@ -1979,9 +2094,9 @@
"license": "MIT"
},
"node_modules/confbox": {
- "version": "0.1.7",
- "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.7.tgz",
- "integrity": "sha512-uJcB/FKZtBMCJpK8MQji6bJHgu1tixKPxRLeGkNzBoOZzpnZUJm0jm2/sBDWcuBx1dYgxV4JU+g5hmNxCyAmdA==",
+ "version": "0.1.8",
+ "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.8.tgz",
+ "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==",
"dev": true,
"license": "MIT"
},
@@ -2076,13 +2191,13 @@
}
},
"node_modules/debug": {
- "version": "4.3.6",
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz",
- "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==",
+ "version": "4.3.7",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz",
+ "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==",
"dev": true,
"license": "MIT",
"dependencies": {
- "ms": "2.1.2"
+ "ms": "^2.1.3"
},
"engines": {
"node": ">=6.0"
@@ -2212,9 +2327,9 @@
}
},
"node_modules/escalade": {
- "version": "3.1.2",
- "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz",
- "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==",
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
"license": "MIT",
"engines": {
"node": ">=6"
@@ -2225,23 +2340,23 @@
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
"integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==",
"license": "MIT",
- "peer": true,
"engines": {
"node": ">=0.8.0"
}
},
"node_modules/eslint": {
- "version": "8.57.0",
- "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz",
- "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==",
+ "version": "8.57.1",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz",
+ "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==",
+ "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.",
"dev": true,
"license": "MIT",
"dependencies": {
"@eslint-community/eslint-utils": "^4.2.0",
"@eslint-community/regexpp": "^4.6.1",
"@eslint/eslintrc": "^2.1.4",
- "@eslint/js": "8.57.0",
- "@humanwhocodes/config-array": "^0.11.14",
+ "@eslint/js": "8.57.1",
+ "@humanwhocodes/config-array": "^0.13.0",
"@humanwhocodes/module-importer": "^1.0.1",
"@nodelib/fs.walk": "^1.2.8",
"@ungap/structured-clone": "^1.2.0",
@@ -2317,9 +2432,9 @@
}
},
"node_modules/eslint/node_modules/@eslint/js": {
- "version": "8.57.0",
- "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz",
- "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==",
+ "version": "8.57.1",
+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.1.tgz",
+ "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==",
"dev": true,
"license": "MIT",
"engines": {
@@ -2409,19 +2524,6 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
- "node_modules/eslint/node_modules/glob-parent": {
- "version": "6.0.2",
- "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
- "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
- "dev": true,
- "license": "ISC",
- "dependencies": {
- "is-glob": "^4.0.3"
- },
- "engines": {
- "node": ">=10.13.0"
- }
- },
"node_modules/eslint/node_modules/has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
@@ -2572,6 +2674,18 @@
"node": ">=8.6.0"
}
},
+ "node_modules/fast-glob/node_modules/glob-parent": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
"node_modules/fast-json-stable-stringify": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
@@ -2587,11 +2701,10 @@
"license": "MIT"
},
"node_modules/fast-uri": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.1.tgz",
- "integrity": "sha512-MWipKbbYiYI0UC7cl8m/i/IWTqfC8YXsqjzybjddLsFjStroQzsHXkc73JutMvBiXmOvapk+axIl79ig5t55Bw==",
- "license": "MIT",
- "peer": true
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.2.tgz",
+ "integrity": "sha512-GR6f0hD7XXyNJa25Tb9BuIdN0tdr+0BMi6/CJPH3wJO1JjNG3n/VsSw38AwRdKZABm8lGbPfakLRkYzx2V9row==",
+ "license": "MIT"
},
"node_modules/fastq": {
"version": "1.17.1",
@@ -2784,15 +2897,16 @@
}
},
"node_modules/glob-parent": {
- "version": "5.1.2",
- "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
- "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
+ "dev": true,
"license": "ISC",
"dependencies": {
- "is-glob": "^4.0.1"
+ "is-glob": "^4.0.3"
},
"engines": {
- "node": ">= 6"
+ "node": ">=10.13.0"
}
},
"node_modules/globals": {
@@ -2816,7 +2930,6 @@
"resolved": "https://registry.npmjs.org/globby/-/globby-14.0.2.tgz",
"integrity": "sha512-s3Fq41ZVh7vbbe2PN3nrW7yC7U7MFVc5c98/iTl9c2GawNMKx/J648KQRW6WKkuU8GIbbh2IXfIRQjOZnXcTnw==",
"license": "MIT",
- "peer": true,
"dependencies": {
"@sindresorhus/merge-streams": "^2.1.0",
"fast-glob": "^3.3.2",
@@ -2844,7 +2957,6 @@
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
"integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==",
"license": "MIT",
- "peer": true,
"engines": {
"node": ">=4"
}
@@ -3094,8 +3206,7 @@
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
"integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
- "license": "MIT",
- "peer": true
+ "license": "MIT"
},
"node_modules/js-yaml": {
"version": "4.1.0",
@@ -3121,8 +3232,7 @@
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
"integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
- "license": "MIT",
- "peer": true
+ "license": "MIT"
},
"node_modules/json-serialize-refs": {
"version": "0.1.0-0",
@@ -3152,7 +3262,6 @@
"resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz",
"integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==",
"license": "MIT",
- "peer": true,
"engines": {
"node": ">=6"
}
@@ -3229,9 +3338,9 @@
"license": "ISC"
},
"node_modules/magic-string": {
- "version": "0.30.11",
- "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.11.tgz",
- "integrity": "sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==",
+ "version": "0.30.12",
+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.12.tgz",
+ "integrity": "sha512-Ea8I3sQMVXr8JhN4z+H/d8zwo+tYDgHE9+5G4Wnrwhs0gaK9fXTKx0Tw5Xwsd/bCPTTZNRAdpyzvoeORe9LYpw==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -3239,14 +3348,14 @@
}
},
"node_modules/magicast": {
- "version": "0.3.4",
- "resolved": "https://registry.npmjs.org/magicast/-/magicast-0.3.4.tgz",
- "integrity": "sha512-TyDF/Pn36bBji9rWKHlZe+PZb6Mx5V8IHCSxk7X4aljM4e/vyDvZZYwHewdVaqiA0nb3ghfHU/6AUpDxWoER2Q==",
+ "version": "0.3.5",
+ "resolved": "https://registry.npmjs.org/magicast/-/magicast-0.3.5.tgz",
+ "integrity": "sha512-L0WhttDl+2BOsybvEOLK7fW3UA0OQ0IQ2d6Zl2x/a6vVRs3bAY0ECOSHHeL5jD+SbOpOCUEi0y1DgHEn9Qn1AQ==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@babel/parser": "^7.24.4",
- "@babel/types": "^7.24.0",
+ "@babel/parser": "^7.25.4",
+ "@babel/types": "^7.25.4",
"source-map-js": "^1.2.0"
}
},
@@ -3283,9 +3392,9 @@
}
},
"node_modules/micromatch": {
- "version": "4.0.7",
- "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz",
- "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==",
+ "version": "4.0.8",
+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
+ "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",
"license": "MIT",
"dependencies": {
"braces": "^3.0.3",
@@ -3345,16 +3454,16 @@
}
},
"node_modules/mlly": {
- "version": "1.7.1",
- "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.7.1.tgz",
- "integrity": "sha512-rrVRZRELyQzrIUAVMHxP97kv+G786pHmOKzuFII8zDYahFBS7qnHh2AlYSl1GAHhaMPCz6/oHjVMcfFYgFYHgA==",
+ "version": "1.7.2",
+ "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.7.2.tgz",
+ "integrity": "sha512-tN3dvVHYVz4DhSXinXIk7u9syPYaJvio118uomkovAtWBT+RdbP6Lfh/5Lvo519YMmwBafwlh20IPTXIStscpA==",
"dev": true,
"license": "MIT",
"dependencies": {
- "acorn": "^8.11.3",
+ "acorn": "^8.12.1",
"pathe": "^1.1.2",
- "pkg-types": "^1.1.1",
- "ufo": "^1.5.3"
+ "pkg-types": "^1.2.0",
+ "ufo": "^1.5.4"
}
},
"node_modules/mrmime": {
@@ -3368,9 +3477,9 @@
}
},
"node_modules/ms": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
- "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
"dev": true,
"license": "MIT"
},
@@ -3379,7 +3488,6 @@
"resolved": "https://registry.npmjs.org/mustache/-/mustache-4.2.0.tgz",
"integrity": "sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==",
"license": "MIT",
- "peer": true,
"bin": {
"mustache": "bin/mustache"
}
@@ -3527,9 +3635,9 @@
}
},
"node_modules/package-json-from-dist": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz",
- "integrity": "sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==",
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",
+ "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==",
"dev": true,
"license": "BlueOak-1.0.0"
},
@@ -3598,7 +3706,6 @@
"resolved": "https://registry.npmjs.org/path-type/-/path-type-5.0.0.tgz",
"integrity": "sha512-5HviZNaZcfqP95rwpv+1HDgUamezbqdSYTyzjTvwtJSnIH+3vnbmWsItli8OFEndS984VT55M3jduxZbX351gg==",
"license": "MIT",
- "peer": true,
"engines": {
"node": ">=12"
},
@@ -3624,9 +3731,9 @@
}
},
"node_modules/picocolors": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz",
- "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==",
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.0.tgz",
+ "integrity": "sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw==",
"license": "ISC"
},
"node_modules/picomatch": {
@@ -3642,14 +3749,14 @@
}
},
"node_modules/pkg-types": {
- "version": "1.1.3",
- "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.1.3.tgz",
- "integrity": "sha512-+JrgthZG6m3ckicaOB74TwQ+tBWsFl3qVQg7mN8ulwSOElJ7gBhKzj2VkCPnZ4NlF6kEquYU+RIYNVAvzd54UA==",
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.2.1.tgz",
+ "integrity": "sha512-sQoqa8alT3nHjGuTjuKgOnvjo4cljkufdtLMnO2LBP/wRwuDlo1tkaEdMxCRhyGRPacv/ztlZgDPm2b7FAmEvw==",
"dev": true,
"license": "MIT",
"dependencies": {
- "confbox": "^0.1.7",
- "mlly": "^1.7.1",
+ "confbox": "^0.1.8",
+ "mlly": "^1.7.2",
"pathe": "^1.1.2"
}
},
@@ -3658,15 +3765,14 @@
"resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz",
"integrity": "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==",
"license": "MIT",
- "peer": true,
"engines": {
"node": ">=4"
}
},
"node_modules/postcss": {
- "version": "8.4.41",
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.41.tgz",
- "integrity": "sha512-TesUflQ0WKZqAvg52PWL6kHgLKP6xB6heTOdoYM0Wt2UHyxNa4K25EZZMgKns3BH1RLVbZCREPpLY0rhnNoHVQ==",
+ "version": "8.4.47",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.47.tgz",
+ "integrity": "sha512-56rxCq7G/XfB4EkXq9Egn5GCqugWvDFjafDOThIdMBsI15iqPqR5r15TfSr1YPYeEI19YeaXMCbY6u88Y76GLQ==",
"dev": true,
"funding": [
{
@@ -3685,8 +3791,8 @@
"license": "MIT",
"dependencies": {
"nanoid": "^3.3.7",
- "picocolors": "^1.0.1",
- "source-map-js": "^1.2.0"
+ "picocolors": "^1.1.0",
+ "source-map-js": "^1.2.1"
},
"engines": {
"node": "^10 || ^12 || >=14"
@@ -3758,7 +3864,6 @@
"resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz",
"integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==",
"license": "MIT",
- "peer": true,
"dependencies": {
"kleur": "^3.0.3",
"sisteransi": "^1.0.5"
@@ -3831,7 +3936,6 @@
"resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
"integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
"license": "MIT",
- "peer": true,
"engines": {
"node": ">=0.10.0"
}
@@ -3920,13 +4024,13 @@
}
},
"node_modules/rollup": {
- "version": "4.21.0",
- "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.21.0.tgz",
- "integrity": "sha512-vo+S/lfA2lMS7rZ2Qoubi6I5hwZwzXeUIctILZLbHI+laNtvhhOIon2S1JksA5UEDQ7l3vberd0fxK44lTYjbQ==",
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.24.0.tgz",
+ "integrity": "sha512-DOmrlGSXNk1DM0ljiQA+i+o0rSLhtii1je5wgk60j49d1jHT5YYttBv1iWOnYSTG+fZZESUOSNiAl89SIet+Cg==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@types/estree": "1.0.5"
+ "@types/estree": "1.0.6"
},
"bin": {
"rollup": "dist/bin/rollup"
@@ -3936,22 +4040,22 @@
"npm": ">=8.0.0"
},
"optionalDependencies": {
- "@rollup/rollup-android-arm-eabi": "4.21.0",
- "@rollup/rollup-android-arm64": "4.21.0",
- "@rollup/rollup-darwin-arm64": "4.21.0",
- "@rollup/rollup-darwin-x64": "4.21.0",
- "@rollup/rollup-linux-arm-gnueabihf": "4.21.0",
- "@rollup/rollup-linux-arm-musleabihf": "4.21.0",
- "@rollup/rollup-linux-arm64-gnu": "4.21.0",
- "@rollup/rollup-linux-arm64-musl": "4.21.0",
- "@rollup/rollup-linux-powerpc64le-gnu": "4.21.0",
- "@rollup/rollup-linux-riscv64-gnu": "4.21.0",
- "@rollup/rollup-linux-s390x-gnu": "4.21.0",
- "@rollup/rollup-linux-x64-gnu": "4.21.0",
- "@rollup/rollup-linux-x64-musl": "4.21.0",
- "@rollup/rollup-win32-arm64-msvc": "4.21.0",
- "@rollup/rollup-win32-ia32-msvc": "4.21.0",
- "@rollup/rollup-win32-x64-msvc": "4.21.0",
+ "@rollup/rollup-android-arm-eabi": "4.24.0",
+ "@rollup/rollup-android-arm64": "4.24.0",
+ "@rollup/rollup-darwin-arm64": "4.24.0",
+ "@rollup/rollup-darwin-x64": "4.24.0",
+ "@rollup/rollup-linux-arm-gnueabihf": "4.24.0",
+ "@rollup/rollup-linux-arm-musleabihf": "4.24.0",
+ "@rollup/rollup-linux-arm64-gnu": "4.24.0",
+ "@rollup/rollup-linux-arm64-musl": "4.24.0",
+ "@rollup/rollup-linux-powerpc64le-gnu": "4.24.0",
+ "@rollup/rollup-linux-riscv64-gnu": "4.24.0",
+ "@rollup/rollup-linux-s390x-gnu": "4.24.0",
+ "@rollup/rollup-linux-x64-gnu": "4.24.0",
+ "@rollup/rollup-linux-x64-musl": "4.24.0",
+ "@rollup/rollup-win32-arm64-msvc": "4.24.0",
+ "@rollup/rollup-win32-ia32-msvc": "4.24.0",
+ "@rollup/rollup-win32-x64-msvc": "4.24.0",
"fsevents": "~2.3.2"
}
},
@@ -4059,15 +4163,13 @@
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz",
"integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==",
- "license": "MIT",
- "peer": true
+ "license": "MIT"
},
"node_modules/slash": {
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/slash/-/slash-5.1.0.tgz",
"integrity": "sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg==",
"license": "MIT",
- "peer": true,
"engines": {
"node": ">=14.16"
},
@@ -4076,9 +4178,9 @@
}
},
"node_modules/source-map-js": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz",
- "integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==",
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
"dev": true,
"license": "BSD-3-Clause",
"engines": {
@@ -4213,7 +4315,6 @@
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
"integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
"license": "MIT",
- "peer": true,
"dependencies": {
"has-flag": "^3.0.0"
},
@@ -4226,7 +4327,6 @@
"resolved": "https://registry.npmjs.org/temporal-polyfill/-/temporal-polyfill-0.2.5.tgz",
"integrity": "sha512-ye47xp8Cb0nDguAhrrDS1JT1SzwEV9e26sSsrWzVu+yPZ7LzceEcH0i2gci9jWfOfSCCgM3Qv5nOYShVUUFUXA==",
"license": "MIT",
- "peer": true,
"dependencies": {
"temporal-spec": "^0.2.4"
}
@@ -4235,8 +4335,7 @@
"version": "0.2.4",
"resolved": "https://registry.npmjs.org/temporal-spec/-/temporal-spec-0.2.4.tgz",
"integrity": "sha512-lDMFv4nKQrSjlkHKAlHVqKrBG4DyFfa9F74cmBZ3Iy3ed8yvWnlWSIdi4IKfSqwmazAohBNwiN64qGx4y5Q3IQ==",
- "license": "ISC",
- "peer": true
+ "license": "ISC"
},
"node_modules/test-exclude": {
"version": "6.0.0",
@@ -4413,9 +4512,9 @@
}
},
"node_modules/typescript": {
- "version": "5.4.5",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz",
- "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==",
+ "version": "5.6.3",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz",
+ "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==",
"dev": true,
"license": "Apache-2.0",
"bin": {
@@ -4460,12 +4559,18 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/undici-types": {
+ "version": "6.19.8",
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz",
+ "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/unicorn-magic": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.1.0.tgz",
"integrity": "sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ==",
"license": "MIT",
- "peer": true,
"engines": {
"node": ">=18"
},
@@ -4516,14 +4621,14 @@
}
},
"node_modules/vite": {
- "version": "5.4.2",
- "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.2.tgz",
- "integrity": "sha512-dDrQTRHp5C1fTFzcSaMxjk6vdpKvT+2/mIdE07Gw2ykehT49O0z/VHS3zZ8iV/Gh8BJJKHWOe5RjaNrW5xf/GA==",
+ "version": "5.4.8",
+ "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.8.tgz",
+ "integrity": "sha512-FqrItQ4DT1NC4zCUqMB4c4AZORMKIa0m8/URVCZ77OZ/QSNeJ54bU1vrFADbDsuwfIPcgknRkmqakQcgnL4GiQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"esbuild": "^0.21.3",
- "postcss": "^8.4.41",
+ "postcss": "^8.4.43",
"rollup": "^4.20.0"
},
"bin": {
@@ -4669,7 +4774,6 @@
"resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-8.2.0.tgz",
"integrity": "sha512-C+r0eKJUIfiDIfwJhria30+TYWPtuHJXHtI7J0YlOmKAo7ogxP20T0zxB7HZQIFhIyvoBPwWskjxrvAtfjyZfA==",
"license": "MIT",
- "peer": true,
"engines": {
"node": ">=14.0.0"
}
@@ -4679,7 +4783,6 @@
"resolved": "https://registry.npmjs.org/vscode-languageserver/-/vscode-languageserver-9.0.1.tgz",
"integrity": "sha512-woByF3PDpkHFUreUa7Hos7+pUWdeWMXRd26+ZX2A8cFx6v/JPTtd4/uN0/jB6XQHYaOlHbio03NTHCqrgG5n7g==",
"license": "MIT",
- "peer": true,
"dependencies": {
"vscode-languageserver-protocol": "3.17.5"
},
@@ -4692,7 +4795,6 @@
"resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.17.5.tgz",
"integrity": "sha512-mb1bvRJN8SVznADSGWM9u/b07H7Ecg0I3OgXDuLdn307rl/J3A9YD6/eYOssqhecL27hK1IPZAsaqh00i/Jljg==",
"license": "MIT",
- "peer": true,
"dependencies": {
"vscode-jsonrpc": "8.2.0",
"vscode-languageserver-types": "3.17.5"
@@ -4702,15 +4804,13 @@
"version": "1.0.12",
"resolved": "https://registry.npmjs.org/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.12.tgz",
"integrity": "sha512-cxWNPesCnQCcMPeenjKKsOCKQZ/L6Tv19DTRIGuLWe32lyzWhihGVJ/rcckZXJxfdKCFvRLS3fpBIsV/ZGX4zA==",
- "license": "MIT",
- "peer": true
+ "license": "MIT"
},
"node_modules/vscode-languageserver-types": {
"version": "3.17.5",
"resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.17.5.tgz",
"integrity": "sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg==",
- "license": "MIT",
- "peer": true
+ "license": "MIT"
},
"node_modules/which": {
"version": "2.0.2",
@@ -4891,7 +4991,6 @@
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.5.tgz",
"integrity": "sha512-aBx2bnqDzVOyNKfsysjA2ms5ZlnjSAW2eG3/L5G/CSujfjLJTJsEw1bGw8kCf04KodQWk1pxlGnZ56CRxiawmg==",
"license": "ISC",
- "peer": true,
"bin": {
"yaml": "bin.mjs"
},
diff --git a/eng/packages/http-client-csharp/package.json b/eng/packages/http-client-csharp/package.json
index c5e11dfd0d35..dec174ffa6a0 100644
--- a/eng/packages/http-client-csharp/package.json
+++ b/eng/packages/http-client-csharp/package.json
@@ -23,17 +23,39 @@
"dist/**"
],
"dependencies": {
- "@typespec/http-client-csharp": "0.1.9-alpha.20240913.1"
+ "@typespec/http-client-csharp": "0.1.9-alpha.20241010.1"
+ },
+ "peerDependencies": {
+ "@azure-tools/typespec-azure-core": ">=0.46.0 <1.0.0 || ~0.47.0-0",
+ "@azure-tools/typespec-client-generator-core": ">=0.46.0 <1.0.0 || ~0.47.0-0",
+ "@typespec/compiler": ">=0.60.0 <1.0.0 || ~0.61.0-0",
+ "@typespec/http": ">=0.60.0 <1.0.0 || ~0.61.0-0",
+ "@typespec/openapi": ">=0.60.0 <1.0.0 || ~0.61.0-0",
+ "@typespec/rest": ">=0.60.0 <1.0.0 || ~0.61.0-0",
+ "@typespec/versioning": ">=0.60.0 <1.0.0 || ~0.61.0-0"
},
"devDependencies": {
+ "@azure-tools/typespec-azure-core": "0.46.0",
+ "@azure-tools/typespec-client-generator-core": "0.46.2",
+ "@azure-tools/typespec-azure-resource-manager": "0.46.1",
+ "@azure-tools/typespec-azure-rulesets": "0.46.0",
+ "@azure-tools/typespec-autorest": "0.46.0",
"@eslint/js": "^9.2.0",
- "@types/node": "~18.13.0",
+ "@types/node": "~22.7.5",
"@types/prettier": "^2.6.3",
+ "@typespec/compiler": "0.60.0",
+ "@typespec/http": "0.60.0",
+ "@typespec/json-schema": "0.60.0",
+ "@typespec/library-linter": "0.60.0",
+ "@typespec/openapi": "0.60.0",
+ "@typespec/rest": "0.60.0",
+ "@typespec/versioning": "0.60.0",
+ "@typespec/xml": "0.60.0",
"@vitest/coverage-v8": "^1.4.0",
"@vitest/ui": "^1.4.0",
"c8": "^9.1.0",
"rimraf": "~5.0.5",
- "typescript": "~5.4.3",
+ "typescript": "~5.6.3",
"vitest": "^1.4.0",
"copyfiles": "^2.4.1",
"eslint": "^8.57.0",
diff --git a/eng/pipelines/templates/jobs/live.tests.yml b/eng/pipelines/templates/jobs/live.tests.yml
index 93236df72152..6c7c51383662 100644
--- a/eng/pipelines/templates/jobs/live.tests.yml
+++ b/eng/pipelines/templates/jobs/live.tests.yml
@@ -132,28 +132,12 @@ jobs:
displayName: Set TestResources Location
- ${{ if parameters.DeployTestResources }}:
- - ${{ if parameters.TestResourceDirectories }}:
- - ${{ each directory in parameters.TestResourceDirectories }}:
- - template: /eng/common/TestResources/deploy-test-resources.yml
- parameters:
- ${{ if or(parameters.Location, parameters.CloudConfig.Location) }}:
- Location: ${{ coalesce(parameters.Location, parameters.CloudConfig.Location) }}
- ServiceDirectory: '${{ directory }}'
- TestResourcesDirectory: '$(TestResourcesDirectory)'
- SubscriptionConfiguration: $(SubscriptionConfiguration)
- ArmTemplateParameters: $(ArmTemplateParameters)
- UseFederatedAuth: ${{ parameters.UseFederatedAuth }}
- ServiceConnection: ${{ parameters.CloudConfig.ServiceConnection }}
- SubscriptionConfigurationFilePaths: ${{ parameters.CloudConfig.SubscriptionConfigurationFilePaths }}
- EnvVars:
- Pool: $(Pool)
- ${{ insert }}: ${{ parameters.EnvVars }}
- - ${{ if not(parameters.TestResourceDirectories) }}:
+ - ${{ each directory in coalesce(parameters.TestResourceDirectories, split(parameters.ServiceDirectory, '|')) }}:
- template: /eng/common/TestResources/deploy-test-resources.yml
parameters:
${{ if or(parameters.Location, parameters.CloudConfig.Location) }}:
Location: ${{ coalesce(parameters.Location, parameters.CloudConfig.Location) }}
- ServiceDirectory: '${{ parameters.ServiceDirectory }}'
+ ServiceDirectory: '${{ directory }}'
TestResourcesDirectory: '$(TestResourcesDirectory)'
SubscriptionConfiguration: $(SubscriptionConfiguration)
ArmTemplateParameters: $(ArmTemplateParameters)
@@ -242,20 +226,10 @@ jobs:
${{ var.key }}: ${{ var.value }}
- ${{ if parameters.DeployTestResources }}:
- - ${{ if parameters.TestResourceDirectories }}:
- - ${{ each directory in parameters.TestResourceDirectories }}:
- - template: /eng/common/TestResources/remove-test-resources.yml
- parameters:
- ServiceDirectory: '${{ directory }}'
- SubscriptionConfiguration: $(SubscriptionConfiguration)
- UseFederatedAuth: ${{ parameters.UseFederatedAuth }}
- ServiceConnection: ${{ parameters.CloudConfig.ServiceConnection }}
- SubscriptionConfigurationFilePaths: ${{ parameters.CloudConfig.SubscriptionConfigurationFilePaths }}
-
- - ${{ if not(parameters.TestResourceDirectories) }}:
+ - ${{ each directory in coalesce(parameters.TestResourceDirectories, split(parameters.ServiceDirectory, '|')) }}:
- template: /eng/common/TestResources/remove-test-resources.yml
parameters:
- ServiceDirectory: '${{ parameters.ServiceDirectory }}'
+ ServiceDirectory: '${{ directory }}'
SubscriptionConfiguration: $(SubscriptionConfiguration)
UseFederatedAuth: ${{ parameters.UseFederatedAuth }}
ServiceConnection: ${{ parameters.CloudConfig.ServiceConnection }}
diff --git a/eng/pipelines/templates/stages/archetype-net-release.yml b/eng/pipelines/templates/stages/archetype-net-release.yml
index 47cd7ed9a7b8..06be144e9aa5 100644
--- a/eng/pipelines/templates/stages/archetype-net-release.yml
+++ b/eng/pipelines/templates/stages/archetype-net-release.yml
@@ -151,6 +151,14 @@ stages:
image: azsdk-pool-mms-win-2022-1espt
os: windows
+ templateContext:
+ outputs:
+ - ${{if ne(artifact.skipSymbolsUpload, 'true')}}:
+ - output: pipelineArtifact
+ displayName: 'Store converted symbols in ${{parameters.ArtifactName}}-symbols artifact'
+ targetPath: $(Build.ArtifactStagingDirectory)/symbols
+ artifactName: ${{parameters.ArtifactName}}-symbols
+
strategy:
runOnce:
deploy:
diff --git a/eng/pipelines/templates/stages/archetype-sdk-tests.yml b/eng/pipelines/templates/stages/archetype-sdk-tests.yml
index d694ed2ab118..61446b5e4025 100644
--- a/eng/pipelines/templates/stages/archetype-sdk-tests.yml
+++ b/eng/pipelines/templates/stages/archetype-sdk-tests.yml
@@ -54,26 +54,11 @@ parameters:
type: object
default:
Public:
- ServiceConnection: azure-sdk-tests
- SubscriptionConfigurationFilePaths:
- - eng/common/TestResources/sub-config/AzurePublicMsft.json
- Preview:
- ServiceConnection: azure-sdk-tests-preview
- SubscriptionConfigurationFilePaths:
- - eng/common/TestResources/sub-config/AzurePreviewMsft.json
- Canary:
- ServiceConnection: azure-sdk-tests
- SubscriptionConfigurationFilePaths:
- - eng/common/TestResources/sub-config/AzurePublicMsft.json
- Location: 'eastus2euap'
+ # Canary regions are currently not supported in TME so disabling for now
+ # Canary:
+ # Location: 'eastus2euap'
UsGov:
- ServiceConnection: usgov_azure-sdk-tests
- SubscriptionConfigurationFilePaths:
- - eng/common/TestResources/sub-config/AzureUsGovMsft.json
China:
- ServiceConnection: china_azure-sdk-tests
- SubscriptionConfigurationFilePaths:
- - eng/common/TestResources/sub-config/AzureChinaMsft.json
- name: MatrixConfigs
type: object
default:
@@ -122,7 +107,6 @@ parameters:
extends:
template: /eng/pipelines/templates/stages/1es-redirect.yml
parameters:
- UseOfficial: false
oneESTemplateTag: ${{ parameters.oneESTemplateTag }}
stages:
- ${{ each cloud in parameters.CloudConfig }}:
@@ -175,8 +159,8 @@ extends:
- ${{ parameters.MatrixReplace }}
CloudConfig:
SubscriptionConfiguration: ${{ cloud.value.SubscriptionConfiguration }}
- ServiceConnection: ${{ cloud.value.ServiceConnection }}
+ ServiceConnection: ${{ coalesce(cloud.value.ServiceConnection, lower(format('azure-sdk-tests-{0}', cloud.key))) }}
SubscriptionConfigurationFilePaths: ${{ cloud.value.SubscriptionConfigurationFilePaths }}
SubscriptionConfigurations: ${{ cloud.value.SubscriptionConfigurations }}
- Location: ${{ coalesce(parameters.Location, cloud.value.Location) }}
+ Location: ${{ coalesce(cloud.value.Location, parameters.Location) }}
Cloud: ${{ cloud.key }}
diff --git a/eng/scripts/automation/GenerateAndBuildLib.ps1 b/eng/scripts/automation/GenerateAndBuildLib.ps1
index 1bec3c7e9bed..d09b09f8df3c 100644
--- a/eng/scripts/automation/GenerateAndBuildLib.ps1
+++ b/eng/scripts/automation/GenerateAndBuildLib.ps1
@@ -771,6 +771,10 @@ function GeneratePackage()
}
if ($isGenerateSuccess) {
+ # update resourcemanager ci.mgmt.yml for mgmt sdk
+ if ($serviceType -eq "resource-manager") {
+ & $sdkRootPath/eng/scripts/Update-Mgmt-CI.ps1
+ }
# Build project when successfully generated the code
Write-Host "Start to build sdk project: $srcPath"
dotnet build $srcPath /p:RunApiCompat=$false
diff --git a/eng/scripts/compatibility/Check-AOT-Compatibility.ps1 b/eng/scripts/compatibility/Check-AOT-Compatibility.ps1
index 3eb3422784d7..524c5614a279 100644
--- a/eng/scripts/compatibility/Check-AOT-Compatibility.ps1
+++ b/eng/scripts/compatibility/Check-AOT-Compatibility.ps1
@@ -72,7 +72,7 @@ if ($LASTEXITCODE -ne 0)
Set-Location -Path ..
Remove-Item -Path "./$folderPath" -Recurse -Force
- Write-Host "\nFor help with this check, please see https://github.com/Azure/azure-sdk-for-net/tree/main/doc/dev/AotRegressionChecks.md"
+ Write-Host "`nFor help with this check, please see https://github.com/Azure/azure-sdk-for-net/tree/main/doc/dev/AotRegressionChecks.md"
Exit 2
}
@@ -104,7 +104,10 @@ if (Test-Path $expectedWarningsFullPath -PathType Leaf) {
$numWarnings = $warnings.Count
if ($numWarnings -gt 0) {
- Write-Host "Found $numWarnings additional warnings that were not expected:`n$warnings"
+ Write-Host "Found $numWarnings additional warnings that were not expected:"
+ foreach ($warning in $warnings) {
+ Write-Host $warning
+ }
}
Write-Host "Deleting test app files."
@@ -112,7 +115,7 @@ if (Test-Path $expectedWarningsFullPath -PathType Leaf) {
Set-Location -Path ..
Remove-Item -Path "./$folderPath" -Recurse -Force
- Write-Host "\nFor help with this check, please see https://github.com/Azure/azure-sdk-for-net/tree/main/doc/dev/AotRegressionChecks.md"
+ Write-Host "`nFor help with this check, please see https://github.com/Azure/azure-sdk-for-net/tree/main/doc/dev/AotRegressionChecks.md"
exit $warnings.Count
}
@@ -126,7 +129,10 @@ Write-Host "Checking against the list of expected warnings. There are $numExpect
$warnings = $publishOutput -split "`n" | select-string -pattern 'IL\d+' | select-string -pattern '##' -notmatch | select-string -pattern $expectedWarnings -notmatch
$numWarnings = $warnings.Count
if ($numWarnings -gt 0) {
- Write-Host "Found $numWarnings additional warnings that were not expected:`n$warnings"
+ Write-Host "Found $numWarnings additional warnings that were not expected:"
+ foreach ($warning in $warnings) {
+ Write-Host $warning
+ }
}
### Cleanup ###
@@ -138,9 +144,9 @@ Remove-Item -Path "./$folderPath" -Recurse -Force
if ($numExpectedWarnings -ne $actualWarningCount) {
Write-Host "The number of expected warnings ($numExpectedWarnings) was different than the actual warning count ($actualWarningCount)."
- Write-Host "\nFor help with this check, please see https://github.com/Azure/azure-sdk-for-net/tree/main/doc/dev/AotRegressionChecks.md"
+ Write-Host "`nFor help with this check, please see https://github.com/Azure/azure-sdk-for-net/tree/main/doc/dev/AotRegressionChecks.md"
exit 2
}
-Write-Host "\nFor help with this check, please see https://github.com/Azure/azure-sdk-for-net/tree/main/doc/dev/AotRegressionChecks.md"
+Write-Host "`nFor help with this check, please see https://github.com/Azure/azure-sdk-for-net/tree/main/doc/dev/AotRegressionChecks.md"
exit $warnings.Count
\ No newline at end of file
diff --git a/samples/linecounter/LineCounter.csproj b/samples/linecounter/LineCounter.csproj
index 62739695e163..28d165304d90 100644
--- a/samples/linecounter/LineCounter.csproj
+++ b/samples/linecounter/LineCounter.csproj
@@ -7,11 +7,11 @@
-
-
-
+
+
+
-
+
diff --git a/samples/linecounter/distributed-tracing-sample.sln b/samples/linecounter/distributed-tracing-sample.sln
index 53778ba0f6a4..98186a0ae98a 100644
--- a/samples/linecounter/distributed-tracing-sample.sln
+++ b/samples/linecounter/distributed-tracing-sample.sln
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Version 16
-VisualStudioVersion = 16.0.29211.13
+# Visual Studio Version 17
+VisualStudioVersion = 17.11.35327.3
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LineCounter", "LineCounter.csproj", "{79D5BC2B-BF8C-4D72-A989-2ED0E03A235C}"
EndProject
diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/CHANGELOG.md b/sdk/advisor/Azure.ResourceManager.Advisor/CHANGELOG.md
index 6b505aa49b95..7cdc7404534a 100644
--- a/sdk/advisor/Azure.ResourceManager.Advisor/CHANGELOG.md
+++ b/sdk/advisor/Azure.ResourceManager.Advisor/CHANGELOG.md
@@ -5,6 +5,7 @@
### Features Added
- Enable the new model serialization by using the System.ClientModel, refer this [document](https://aka.ms/azsdk/net/mrw) for more details.
+- Exposed `JsonModelWriteCore` for model serialization procedure.
### Breaking Changes
diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/CHANGELOG.md b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/CHANGELOG.md
index 94c519ecf141..2391fecae127 100644
--- a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/CHANGELOG.md
+++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/CHANGELOG.md
@@ -5,6 +5,7 @@
### Features Added
- Enable the new model serialization by using the System.ClientModel, refer this [document](https://aka.ms/azsdk/net/mrw) for more details.
+- Exposed `JsonModelWriteCore` for model serialization procedure.
### Breaking Changes
diff --git a/sdk/ai/Azure.AI.Inference/CHANGELOG.md b/sdk/ai/Azure.AI.Inference/CHANGELOG.md
index 9e7a664d7747..12751b0b32da 100644
--- a/sdk/ai/Azure.AI.Inference/CHANGELOG.md
+++ b/sdk/ai/Azure.AI.Inference/CHANGELOG.md
@@ -1,6 +1,6 @@
# Release History
-## 1.0.0-beta.2 (Unreleased)
+## 1.0.0-beta.3 (Unreleased)
### Features Added
@@ -10,6 +10,29 @@
### Other Changes
+## 1.0.0-beta.2 (2024-10-24)
+
+### Features Added
+- Added new `EmbeddingsClient`, to provide support for generating text embeddings using supported models.
+- Add support for passing a string file path on disk in order to provide an image for chat completions.
+
+### Breaking Changes
+- `ChatCompletionsClientOptions` has been renamed to `AzureAIInferenceClientOptions`.
+- `ChatCompletions` response object has been flattened. `ChatCompletions.Choices` has been removed, and the underlying properties have been bubbled up to be on the `ChatCompletions` object instead.
+- `ChatCompletionsFunctionToolCall` has been replaced with `ChatCompletionsToolCall`.
+- `ChatCompletionsFunctionToolDefinition` has been replaced with `ChatCompletionsToolDefinition`.
+- `ChatCompletionsToolSelectionPreset` has been replaced with `ChatCompletionsToolChoicePreset`.
+- `ChatCompletionsNamedFunctionToolSelection` has been replaced with `ChatCompletionsNamedToolChoice`.
+- `ChatCompletionsFunctionToolSelection` has been replaced with `ChatCompletionsNamedToolChoiceFunction`.
+- `StreamingChatCompletionsUpdate.AuthorName` has been removed
+- Removed `extraParams` from the `complete` and `completeAsync` methods. It is now set implicitly if `additionalProperties` is provided in the options object.
+
+### Bugs Fixed
+- Fixed support for chat completions streaming while using tools.
+
+### Other Changes
+- Removed the need to manually provide an `api-key` header when talking to Azure OpenAI.
+
## 1.0.0-beta.1 (2024-08-06)
### Features Added
- Initial release, containing basic chat completions functionality
diff --git a/sdk/ai/Azure.AI.Inference/README.md b/sdk/ai/Azure.AI.Inference/README.md
index 7849ea1c1d19..06fa6cae04ab 100644
--- a/sdk/ai/Azure.AI.Inference/README.md
+++ b/sdk/ai/Azure.AI.Inference/README.md
@@ -53,7 +53,7 @@ The package includes `ChatCompletionsClient`
+* [Text Embeddings](#text-embeddings-example)
The examples create a client as mentioned in [Create and authenticate a client directly, using key](#create-and-authenticate-a-client-directly-using-key). Only mandatory input settings are shown for simplicity.
@@ -165,7 +165,7 @@ This example demonstrates how to generate a single chat completions, with key au
var endpoint = new Uri(System.Environment.GetEnvironmentVariable("AZURE_AI_CHAT_ENDPOINT"));
var credential = new AzureKeyCredential(System.Environment.GetEnvironmentVariable("AZURE_AI_CHAT_KEY"));
-var client = new ChatCompletionsClient(endpoint, credential, new ChatCompletionsClientOptions());
+var client = new ChatCompletionsClient(endpoint, credential, new AzureAIInferenceClientOptions());
var requestOptions = new ChatCompletionsOptions()
{
@@ -177,12 +177,12 @@ var requestOptions = new ChatCompletionsOptions()
};
Response response = client.Complete(requestOptions);
-System.Console.WriteLine(response.Value.Choices[0].Message.Content);
+System.Console.WriteLine(response.Value.Content);
```
The following types or messages are supported: `SystemMessage`,`UserMessage`, `AssistantMessage`, `ToolMessage`. See also samples:
-* [Sample5_ChatCompletionsWithImageUrl.md](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/ai/Azure.AI.Inference/samples/Sample5_ChatCompletionsWithImageUrl.md) for usage of `UserMessage` that includes sending an image URL.
+* [Sample5_ChatCompletionsWithImages.md](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/ai/Azure.AI.Inference/samples/Sample5_ChatCompletionsWithImages.md) for usage of `UserMessage` that includes sending an image URL or image data from a local file.
* [Sample7_ChatCompletionsWithTools.md](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/ai/Azure.AI.Inference/samples/Sample7_ChatCompletionsWithTools.md) for usage of `ToolMessage`.
Alternatively, you can read a `BinaryData` object based on a JSON string instead of using the strongly typed classes like `ChatRequestSystemMessage` and `ChatRequestUserMessage`:
@@ -191,7 +191,7 @@ Alternatively, you can read a `BinaryData` object based on a JSON string instead
var endpoint = new Uri(System.Environment.GetEnvironmentVariable("AZURE_AI_CHAT_ENDPOINT"));
var credential = new AzureKeyCredential(System.Environment.GetEnvironmentVariable("AZURE_AI_CHAT_KEY"));
-var client = new ChatCompletionsClient(endpoint, credential, new ChatCompletionsClientOptions());
+var client = new ChatCompletionsClient(endpoint, credential, new AzureAIInferenceClientOptions());
var requestOptions = new ChatCompletionsOptions()
{
@@ -207,7 +207,7 @@ BinaryData messages = BinaryData.FromString(jsonMessages);
requestOptions = ModelReaderWriter.Read(messages);
Response response = client.Complete(requestOptions);
-System.Console.WriteLine(response.Value.Choices[0].Message.Content);
+System.Console.WriteLine(response.Value.Content);
```
To generate completions for additional messages, simply call `client.Complete` multiple times using the same `client`.
@@ -220,7 +220,7 @@ This example demonstrates how to generate a single chat completions with streami
var endpoint = new Uri(System.Environment.GetEnvironmentVariable("AZURE_AI_CHAT_ENDPOINT"));
var credential = new AzureKeyCredential(System.Environment.GetEnvironmentVariable("AZURE_AI_CHAT_KEY"));
-var client = new ChatCompletionsClient(endpoint, credential, new ChatCompletionsClientOptions());
+var client = new ChatCompletionsClient(endpoint, credential, new AzureAIInferenceClientOptions());
var requestOptions = new ChatCompletionsOptions()
{
@@ -255,15 +255,13 @@ In this example, extra JSON elements are inserted at the root of the request bod
Note that by default, the service will reject any request payload that includes unknown parameters (ones that are not defined in the REST API [Request Body table](https://learn.microsoft.com/azure/ai-studio/reference/reference-model-inference-chat-completions#request-body)). In order to change the default service behaviour, when the `Complete` method includes `AdditonalProperties`, the client library will automatically add the HTTP request header `"unknown_params": "pass-through"`.
-
-
Azure_AI_Inference_ChatCompletionsWithAdditionalPropertiesScenario
```C# Snippet:Azure_AI_Inference_ChatCompletionsWithAdditionalPropertiesScenario
var endpoint = new Uri(System.Environment.GetEnvironmentVariable("AZURE_AI_CHAT_ENDPOINT"));
var credential = new AzureKeyCredential(System.Environment.GetEnvironmentVariable("AZURE_AI_CHAT_KEY"));
-var client = new ChatCompletionsClient(endpoint, credential, new ChatCompletionsClientOptions());
+var client = new ChatCompletionsClient(endpoint, credential, new AzureAIInferenceClientOptions());
var requestOptions = new ChatCompletionsOptions()
{
@@ -278,13 +276,25 @@ Response response = client.Complete(requestOptions);
System.Console.WriteLine(response.Value.Choices[0].Message.Content);
```
-
- 1.3.0
+ 1.4.0
Azure.ResourceManager.Avs
Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.Avs.
azure;management;arm;resource manager;avs
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Customized/ArmAvsModelFactory.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/ArmAvsModelFactory.cs
index 3a7a607cf9f7..0d16e08cfe5e 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Customized/ArmAvsModelFactory.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/ArmAvsModelFactory.cs
@@ -1,10 +1,11 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#nullable disable
using System;
using System.Collections.Generic;
+using System.ComponentModel;
using System.Linq;
using System.Net;
using Azure.Core;
@@ -45,13 +46,230 @@ public static partial class ArmAvsModelFactory
/// A secondary expressRoute circuit from a separate AZ. Only present in a stretched private cloud.
/// Flag to indicate whether the private cloud has the quota for provisioned NSX Public IP count raised from 64 to 1024.
/// A new instance for mocking.
- public static AvsPrivateCloudData AvsPrivateCloudData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string skuName = null, ManagedServiceIdentity identity = null, AvsManagementCluster managementCluster = null, InternetConnectivityState? internet = null, IEnumerable identitySources = null, PrivateCloudAvailabilityProperties availability = null, CustomerManagedEncryption encryption = null, AvsPrivateCloudProvisioningState? provisioningState = null, ExpressRouteCircuit circuit = null, AvsPrivateCloudEndpoints endpoints = null, string networkBlock = null, string managementNetwork = null, string provisioningNetwork = null, string vMotionNetwork = null, string vCenterPassword = null, string nsxtPassword = null, string vCenterCertificateThumbprint = null, string nsxtCertificateThumbprint = null, IEnumerable externalCloudLinks = null, ExpressRouteCircuit secondaryCircuit = null, NsxPublicIPQuotaRaisedEnum? nsxPublicIPQuotaRaised = null)
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static AvsPrivateCloudData AvsPrivateCloudData(
+ ResourceIdentifier id = null,
+ string name = null,
+ ResourceType resourceType = default,
+ ResourceManager.Models.SystemData systemData = null,
+ IDictionary tags = null,
+ AzureLocation location = default,
+ string skuName = null,
+ ManagedServiceIdentity identity = null,
+ AvsManagementCluster managementCluster = null,
+ InternetConnectivityState? internet = null,
+ IEnumerable identitySources = null,
+ PrivateCloudAvailabilityProperties availability = null,
+ CustomerManagedEncryption encryption = null,
+ AvsPrivateCloudProvisioningState? provisioningState = null,
+ ExpressRouteCircuit circuit = null,
+ AvsPrivateCloudEndpoints endpoints = null,
+ string networkBlock = null,
+ string managementNetwork = null,
+ string provisioningNetwork = null,
+ string vMotionNetwork = null,
+ string vCenterPassword = null,
+ string nsxtPassword = null,
+ string vCenterCertificateThumbprint = null,
+ string nsxtCertificateThumbprint = null,
+ IEnumerable externalCloudLinks = null,
+ ExpressRouteCircuit secondaryCircuit = null,
+ NsxPublicIPQuotaRaisedEnum? nsxPublicIPQuotaRaised = null)
{
- tags ??= new Dictionary();
- identitySources ??= new List();
- externalCloudLinks ??= new List();
+ return AvsPrivateCloudData(
+ id: id,
+ name: name,
+ resourceType: resourceType,
+ systemData: systemData,
+ tags: tags,
+ location: location,
+ sku: skuName != null ? new AvsSku(skuName) : null,
+ identity: identity,
+ managementCluster: managementCluster,
+ internet: internet,
+ identitySources: identitySources?.ToList(),
+ availability: availability,
+ encryption: encryption,
+ extendedNetworkBlocks: new List(),
+ provisioningState: provisioningState,
+ circuit: circuit,
+ endpoints: endpoints,
+ networkBlock: networkBlock,
+ managementNetwork: managementNetwork,
+ provisioningNetwork: provisioningNetwork,
+ vMotionNetwork: vMotionNetwork,
+ vCenterPassword: vCenterPassword,
+ nsxtPassword: nsxtPassword,
+ vCenterCertificateThumbprint: vCenterCertificateThumbprint,
+ nsxtCertificateThumbprint: nsxtCertificateThumbprint,
+ externalCloudLinks: externalCloudLinks?.ToList(),
+ secondaryCircuit: secondaryCircuit,
+ nsxPublicIPQuotaRaised: nsxPublicIPQuotaRaised,
+ virtualNetworkId: null,
+ dnsZoneType: null
+ );
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The tags.
+ /// The location.
+ /// The SKU (Stock Keeping Unit) assigned to this resource.
+ /// The managed service identities assigned to this resource. Current supported identity types: None, SystemAssigned.
+ /// The default cluster used for management.
+ /// Connectivity to internet is enabled or disabled.
+ /// vCenter Single Sign On Identity Sources.
+ /// Properties describing how the cloud is distributed across availability zones.
+ /// Customer managed key encryption, can be enabled or disabled.
+ ///
+ /// Array of additional networks noncontiguous with networkBlock. Networks must be
+ /// unique and non-overlapping across VNet in your subscription, on-premise, and
+ /// this privateCloud networkBlock attribute. Make sure the CIDR format conforms to
+ /// (A.B.C.D/X).
+ ///
+ /// The provisioning state.
+ /// An ExpressRoute Circuit.
+ /// The endpoints.
+ ///
+ /// The block of addresses should be unique across VNet in your subscription as
+ /// well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where
+ /// A,B,C,D are between 0 and 255, and X is between 0 and 22
+ ///
+ /// Network used to access vCenter Server and NSX-T Manager.
+ /// Used for virtual machine cold migration, cloning, and snapshot migration.
+ /// Used for live migration of virtual machines.
+ /// Optionally, set the vCenter admin password when the private cloud is created.
+ /// Optionally, set the NSX-T Manager password when the private cloud is created.
+ /// Thumbprint of the vCenter Server SSL certificate.
+ /// Thumbprint of the NSX-T Manager SSL certificate.
+ /// Array of cloud link IDs from other clouds that connect to this one.
+ ///
+ /// A secondary expressRoute circuit from a separate AZ. Only present in a
+ /// stretched private cloud
+ ///
+ ///
+ /// Flag to indicate whether the private cloud has the quota for provisioned NSX
+ /// Public IP count raised from 64 to 1024
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static AvsPrivateCloudData AvsPrivateCloudData(
+ ResourceIdentifier id,
+ string name,
+ ResourceType resourceType,
+ ResourceManager.Models.SystemData systemData,
+ IDictionary tags,
+ AzureLocation location,
+ string sku,
+ ManagedServiceIdentity identity,
+ AvsManagementCluster managementCluster,
+ InternetConnectivityState? internet,
+ IEnumerable identitySources,
+ PrivateCloudAvailabilityProperties availability,
+ CustomerManagedEncryption encryption,
+ IEnumerable extendedNetworkBlocks,
+ AvsPrivateCloudProvisioningState? provisioningState,
+ ExpressRouteCircuit circuit,
+ AvsPrivateCloudEndpoints endpoints,
+ string networkBlock,
+ string managementNetwork,
+ string provisioningNetwork,
+ string vMotionNetwork,
+ string vCenterPassword,
+ string nsxtPassword,
+ string vCenterCertificateThumbprint,
+ string nsxtCertificateThumbprint,
+ IEnumerable externalCloudLinks,
+ ExpressRouteCircuit secondaryCircuit,
+ NsxPublicIPQuotaRaisedEnum? nsxPublicIPQuotaRaised)
+ {
+ return AvsPrivateCloudData(
+ id: id,
+ name: name,
+ resourceType: resourceType,
+ systemData: systemData,
+ tags: tags,
+ location: location,
+ sku: sku != null ? new AvsSku(sku) : null,
+ identity: identity,
+ managementCluster: managementCluster,
+ internet: internet,
+ identitySources: identitySources?.ToList(),
+ availability: availability,
+ encryption: encryption,
+ extendedNetworkBlocks: extendedNetworkBlocks?.ToList(),
+ provisioningState: provisioningState,
+ circuit: circuit,
+ endpoints: endpoints,
+ networkBlock: networkBlock,
+ managementNetwork: managementNetwork,
+ provisioningNetwork: provisioningNetwork,
+ vMotionNetwork: vMotionNetwork,
+ vCenterPassword: vCenterPassword,
+ nsxtPassword: nsxtPassword,
+ vCenterCertificateThumbprint: vCenterCertificateThumbprint,
+ nsxtCertificateThumbprint: nsxtCertificateThumbprint,
+ externalCloudLinks: externalCloudLinks?.ToList(),
+ secondaryCircuit: secondaryCircuit,
+ nsxPublicIPQuotaRaised: nsxPublicIPQuotaRaised,
+ virtualNetworkId: null,
+ dnsZoneType: null
+ );
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The SKU (Stock Keeping Unit) assigned to this resource.
+ /// The cluster size.
+ /// The state of the cluster provisioning.
+ /// The identity.
+ /// The hosts.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static AvsPrivateCloudClusterData AvsPrivateCloudClusterData(
+ ResourceIdentifier id,
+ string name,
+ ResourceType resourceType,
+ ResourceManager.Models.SystemData systemData,
+ string sku,
+ int? clusterSize,
+ AvsPrivateCloudClusterProvisioningState? provisioningState,
+ int? clusterId,
+ IEnumerable hosts)
+ {
+ return AvsPrivateCloudClusterData(
+ id: id,
+ name: name,
+ resourceType: resourceType,
+ systemData: systemData,
+ sku: sku != null ? new AvsSku(sku) : null,
+ clusterSize: clusterSize,
+ provisioningState: provisioningState,
+ clusterId: clusterId,
+ hosts: hosts?.ToList(),
+ vsanDatastoreName: null
+ );
+ }
+ /// Initializes a new instance of .
+ /// The cluster size.
+ /// The state of the cluster provisioning.
+ /// The identity.
+ /// The hosts.
+ /// A new instance for mocking.
+ public static CommonClusterProperties CommonClusterProperties(int? clusterSize = null, AvsPrivateCloudClusterProvisioningState? provisioningState = null, int? clusterId = null, IEnumerable hosts = null)
+ {
+ hosts ??= new List();
- return new AvsPrivateCloudData(id, name, resourceType, systemData, tags, location, skuName != null ? new AvsSku(skuName) : null, identity, managementCluster, internet, identitySources?.ToList(), availability, encryption, new List(), provisioningState, circuit, endpoints, networkBlock, managementNetwork, provisioningNetwork, vMotionNetwork, vCenterPassword, nsxtPassword, vCenterCertificateThumbprint, nsxtCertificateThumbprint, externalCloudLinks?.ToList(), secondaryCircuit, nsxPublicIPQuotaRaised, null);
+ return CommonClusterProperties(
+ clusterSize: clusterSize,
+ provisioningState: provisioningState,
+ clusterId: clusterId,
+ hosts: hosts?.ToList()
+ );
}
}
-}
+}
\ No newline at end of file
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Customized/AvsPrivateCloudClusterData.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/AvsPrivateCloudClusterData.cs
new file mode 100644
index 000000000000..99f61fd9d9e0
--- /dev/null
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/AvsPrivateCloudClusterData.cs
@@ -0,0 +1,29 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using Azure.Core;
+using Azure.ResourceManager.Avs.Models;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.Avs
+{
+ ///
+ /// A class representing the AvsPrivateCloudCluster data model.
+ /// A cluster resource.
+ ///
+ public partial class AvsPrivateCloudClusterData : ResourceData
+ {
+ /// The name of the SKU.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public string SkuName
+ {
+ get => Sku is null ? default : Sku.Name;
+ set => Sku = new AvsSku(value);
+ }
+ }
+}
\ No newline at end of file
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Customized/AvsPrivateCloudData.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/AvsPrivateCloudData.cs
new file mode 100644
index 000000000000..f5348990ce99
--- /dev/null
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/AvsPrivateCloudData.cs
@@ -0,0 +1,29 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using Azure.Core;
+using Azure.ResourceManager.Avs.Models;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.Avs
+{
+ ///
+ /// A class representing the AvsPrivateCloud data model.
+ /// A private cloud resource
+ ///
+ public partial class AvsPrivateCloudData : TrackedResourceData
+ {
+ /// The name of the SKU.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public string SkuName
+ {
+ get => Sku is null ? default : Sku.Name;
+ set => Sku = new AvsSku(value);
+ }
+ }
+}
\ No newline at end of file
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Customized/AvsPrivateCloudResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/AvsPrivateCloudResource.cs
new file mode 100644
index 000000000000..e7984e6ccbaf
--- /dev/null
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/AvsPrivateCloudResource.cs
@@ -0,0 +1,746 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Globalization;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.Avs.Models;
+using Azure.ResourceManager.Resources;
+
+namespace Azure.ResourceManager.Avs
+{
+ ///
+ /// A Class representing an AvsPrivateCloud along with the instance operations that can be performed on it.
+ /// If you have a you can construct an
+ /// from an instance of using the GetAvsPrivateCloudResource method.
+ /// Otherwise you can get one from its parent resource using the GetAvsPrivateCloud method.
+ ///
+ public partial class AvsPrivateCloudResource : ArmResource
+ {
+ ///
+ /// Get a private cloud workload network.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}
+ ///
+ /// -
+ /// Operation Id
+ /// WorkloadNetworks_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name for the workload network in the private cloud.
+ /// The cancellation token to use.
+ [ForwardsClientCalls]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("This method is obsolete and will be removed in a future release.", false)]
+ public virtual Response GetWorkloadNetwork(WorkloadNetworkName workloadNetworkName, CancellationToken cancellationToken = default)
+ {
+ return GetWorkloadNetworks().Get(workloadNetworkName, cancellationToken);
+ }
+
+ ///
+ /// Get a private cloud workload network.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}
+ ///
+ /// -
+ /// Operation Id
+ /// WorkloadNetworks_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name for the workload network in the private cloud.
+ /// The cancellation token to use.
+ [ForwardsClientCalls]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("This method is obsolete and will be removed in a future release.", false)]
+ public virtual async Task> GetWorkloadNetworkAsync(WorkloadNetworkName workloadNetworkName, CancellationToken cancellationToken = default)
+ {
+ return await GetWorkloadNetworks().GetAsync(workloadNetworkName, cancellationToken).ConfigureAwait(false);
+ }
+
+ /// Gets a collection of WorkloadNetworkResources in the AvsPrivateCloud.
+ /// An object representing collection of WorkloadNetworkResources and their operations over a WorkloadNetworkResource.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("This method is obsolete and will be removed in a future release.", false)]
+ public virtual WorkloadNetworkCollection GetWorkloadNetworks()
+ {
+ return GetCachedClient(client => new WorkloadNetworkCollection(client, Id));
+ }
+
+ ///
+ /// Get dhcp by id in a private cloud workload network.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}
+ ///
+ /// -
+ /// Operation Id
+ /// WorkloadNetworks_GetDhcp
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// NSX DHCP identifier. Generally the same as the DHCP display name.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [ForwardsClientCalls]
+ public virtual Response GetWorkloadNetworkDhcp(string dhcpId, CancellationToken cancellationToken = default)
+ {
+ return GetWorkloadNetwork().GetWorkloadNetworkDhcps().Get(dhcpId, cancellationToken);
+ }
+
+ ///
+ /// Get dhcp by id in a private cloud workload network.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}
+ ///
+ /// -
+ /// Operation Id
+ /// WorkloadNetworks_GetDhcp
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// NSX DHCP identifier. Generally the same as the DHCP display name.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public virtual async Task> GetWorkloadNetworkDhcpAsync(string dhcpId, CancellationToken cancellationToken = default)
+ {
+ return await GetWorkloadNetwork().GetWorkloadNetworkDhcps().GetAsync(dhcpId, cancellationToken).ConfigureAwait(false);
+ }
+
+ /// Gets a collection of WorkloadNetworkDhcpResources in the AvsPrivateCloud.
+ /// An object representing collection of WorkloadNetworkDhcpResources and their operations over a WorkloadNetworkDhcpResource.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public virtual WorkloadNetworkDhcpCollection GetWorkloadNetworkDhcps()
+ {
+ return GetWorkloadNetwork().GetWorkloadNetworkDhcps();
+ }
+
+ ///
+ /// Get a DNS service by id in a private cloud workload network.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}
+ ///
+ /// -
+ /// Operation Id
+ /// WorkloadNetworks_GetDnsService
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// NSX DNS Service identifier. Generally the same as the DNS Service's display name.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public virtual Response GetWorkloadNetworkDnsService(string dnsServiceId, CancellationToken cancellationToken = default)
+ {
+ return GetWorkloadNetwork().GetWorkloadNetworkDnsServices().Get(dnsServiceId, cancellationToken);
+ }
+
+ ///
+ /// Get a DNS service by id in a private cloud workload network.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}
+ ///
+ /// -
+ /// Operation Id
+ /// WorkloadNetworks_GetDnsService
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// NSX DNS Service identifier. Generally the same as the DNS Service's display name.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public virtual async Task> GetWorkloadNetworkDnsServiceAsync(string dnsServiceId, CancellationToken cancellationToken = default)
+ {
+ return await GetWorkloadNetwork().GetWorkloadNetworkDnsServices().GetAsync(dnsServiceId, cancellationToken).ConfigureAwait(false);
+ }
+
+ /// Gets a collection of WorkloadNetworkDnsServiceResources in the AvsPrivateCloud.
+ /// An object representing collection of WorkloadNetworkDnsServiceResources and their operations over a WorkloadNetworkDnsServiceResource.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public virtual WorkloadNetworkDnsServiceCollection GetWorkloadNetworkDnsServices()
+ {
+ return GetWorkloadNetwork().GetWorkloadNetworkDnsServices();
+ }
+
+ ///
+ /// Get a DNS zone by id in a private cloud workload network.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}
+ ///
+ /// -
+ /// Operation Id
+ /// WorkloadNetworks_GetDnsZone
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public virtual Response GetWorkloadNetworkDnsZone(string dnsZoneId, CancellationToken cancellationToken = default)
+ {
+ return GetWorkloadNetwork().GetWorkloadNetworkDnsZones().Get(dnsZoneId, cancellationToken);
+ }
+
+ ///
+ /// Get a DNS zone by id in a private cloud workload network.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}
+ ///
+ /// -
+ /// Operation Id
+ /// WorkloadNetworks_GetDnsZone
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public virtual async Task> GetWorkloadNetworkDnsZoneAsync(string dnsZoneId, CancellationToken cancellationToken = default)
+ {
+ return await GetWorkloadNetwork().GetWorkloadNetworkDnsZones().GetAsync(dnsZoneId, cancellationToken).ConfigureAwait(false);
+ }
+
+ /// Gets a collection of WorkloadNetworkDnsZoneResources in the AvsPrivateCloud.
+ /// An object representing collection of WorkloadNetworkDnsZoneResources and their operations over a WorkloadNetworkDnsZoneResource.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public virtual WorkloadNetworkDnsZoneCollection GetWorkloadNetworkDnsZones()
+ {
+ return GetWorkloadNetwork().GetWorkloadNetworkDnsZones();
+ }
+
+ ///
+ /// Get a gateway by id in a private cloud workload network.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways/{gatewayId}
+ ///
+ /// -
+ /// Operation Id
+ /// WorkloadNetworks_GetGateway
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// NSX Gateway identifier. Generally the same as the Gateway's display name.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public virtual Response GetWorkloadNetworkGateway(string gatewayId, CancellationToken cancellationToken = default)
+ {
+ return GetWorkloadNetwork().GetWorkloadNetworkGateways().Get(gatewayId, cancellationToken);
+ }
+
+ ///
+ /// Get a gateway by id in a private cloud workload network.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways/{gatewayId}
+ ///
+ /// -
+ /// Operation Id
+ /// WorkloadNetworks_GetGateway
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// NSX Gateway identifier. Generally the same as the Gateway's display name.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public virtual async Task> GetWorkloadNetworkGatewayAsync(string gatewayId, CancellationToken cancellationToken = default)
+ {
+ return await GetWorkloadNetwork().GetWorkloadNetworkGateways().GetAsync(gatewayId, cancellationToken).ConfigureAwait(false);
+ }
+
+ /// Gets a collection of WorkloadNetworkGatewayResources in the AvsPrivateCloud.
+ /// An object representing collection of WorkloadNetworkGatewayResources and their operations over a WorkloadNetworkGatewayResource.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public virtual WorkloadNetworkGatewayCollection GetWorkloadNetworkGateways()
+ {
+ return GetWorkloadNetwork().GetWorkloadNetworkGateways();
+ }
+
+ ///
+ /// Get a port mirroring profile by id in a private cloud workload network.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}
+ ///
+ /// -
+ /// Operation Id
+ /// WorkloadNetworks_GetPortMirroring
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public virtual Response GetWorkloadNetworkPortMirroringProfile(string portMirroringId, CancellationToken cancellationToken = default)
+ {
+ return GetWorkloadNetwork().GetWorkloadNetworkPortMirroringProfiles().Get(portMirroringId, cancellationToken);
+ }
+
+ ///
+ /// Get a port mirroring profile by id in a private cloud workload network.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}
+ ///
+ /// -
+ /// Operation Id
+ /// WorkloadNetworks_GetPortMirroring
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public virtual async Task> GetWorkloadNetworkPortMirroringProfileAsync(string portMirroringId, CancellationToken cancellationToken = default)
+ {
+ return await GetWorkloadNetwork().GetWorkloadNetworkPortMirroringProfiles().GetAsync(portMirroringId, cancellationToken).ConfigureAwait(false);
+ }
+
+ /// Gets a collection of WorkloadNetworkPortMirroringProfileResources in the AvsPrivateCloud.
+ /// An object representing collection of WorkloadNetworkPortMirroringProfileResources and their operations over a WorkloadNetworkPortMirroringProfileResource.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public virtual WorkloadNetworkPortMirroringProfileCollection GetWorkloadNetworkPortMirroringProfiles()
+ {
+ return GetWorkloadNetwork().GetWorkloadNetworkPortMirroringProfiles();
+ }
+
+ ///
+ /// Get a Public IP Block by id in a private cloud workload network.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}
+ ///
+ /// -
+ /// Operation Id
+ /// WorkloadNetworks_GetPublicIP
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public virtual Response GetWorkloadNetworkPublicIP(string publicIPId, CancellationToken cancellationToken = default)
+ {
+ return GetWorkloadNetwork().GetWorkloadNetworkPublicIPs().Get(publicIPId, cancellationToken);
+ }
+
+ ///
+ /// Get a Public IP Block by id in a private cloud workload network.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}
+ ///
+ /// -
+ /// Operation Id
+ /// WorkloadNetworks_GetPublicIP
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public virtual async Task> GetWorkloadNetworkPublicIPAsync(string publicIPId, CancellationToken cancellationToken = default)
+ {
+ return await GetWorkloadNetwork().GetWorkloadNetworkPublicIPs().GetAsync(publicIPId, cancellationToken).ConfigureAwait(false);
+ }
+
+ /// Gets a collection of WorkloadNetworkPublicIPResources in the AvsPrivateCloud.
+ /// An object representing collection of WorkloadNetworkPublicIPResources and their operations over a WorkloadNetworkPublicIPResource.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public virtual WorkloadNetworkPublicIPCollection GetWorkloadNetworkPublicIPs()
+ {
+ return GetWorkloadNetwork().GetWorkloadNetworkPublicIPs();
+ }
+
+ ///
+ /// Get a segment by id in a private cloud workload network.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}
+ ///
+ /// -
+ /// Operation Id
+ /// WorkloadNetworks_GetSegment
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// NSX Segment identifier. Generally the same as the Segment's display name.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public virtual Response GetWorkloadNetworkSegment(string segmentId, CancellationToken cancellationToken = default)
+ {
+ return GetWorkloadNetwork().GetWorkloadNetworkSegments().Get(segmentId, cancellationToken);
+ }
+
+ ///
+ /// Get a segment by id in a private cloud workload network.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}
+ ///
+ /// -
+ /// Operation Id
+ /// WorkloadNetworks_GetSegment
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// NSX Segment identifier. Generally the same as the Segment's display name.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public virtual async Task> GetWorkloadNetworkSegmentAsync(string segmentId, CancellationToken cancellationToken = default)
+ {
+ return await GetWorkloadNetwork().GetWorkloadNetworkSegments().GetAsync(segmentId, cancellationToken).ConfigureAwait(false);
+ }
+
+ /// Gets a collection of WorkloadNetworkSegmentResources in the AvsPrivateCloud.
+ /// An object representing collection of WorkloadNetworkSegmentResources and their operations over a WorkloadNetworkSegmentResource.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public virtual WorkloadNetworkSegmentCollection GetWorkloadNetworkSegments()
+ {
+ return GetWorkloadNetwork().GetWorkloadNetworkSegments();
+ }
+
+ ///
+ /// Get a virtual machine by id in a private cloud workload network.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines/{virtualMachineId}
+ ///
+ /// -
+ /// Operation Id
+ /// WorkloadNetworks_GetVirtualMachine
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Virtual Machine identifier.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public virtual Response GetWorkloadNetworkVirtualMachine(string virtualMachineId, CancellationToken cancellationToken = default)
+ {
+ return GetWorkloadNetwork().GetWorkloadNetworkVirtualMachines().Get(virtualMachineId, cancellationToken);
+ }
+
+ ///
+ /// Get a virtual machine by id in a private cloud workload network.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines/{virtualMachineId}
+ ///
+ /// -
+ /// Operation Id
+ /// WorkloadNetworks_GetVirtualMachine
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Virtual Machine identifier.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public virtual async Task> GetWorkloadNetworkVirtualMachineAsync(string virtualMachineId, CancellationToken cancellationToken = default)
+ {
+ return await GetWorkloadNetwork().GetWorkloadNetworkVirtualMachines().GetAsync(virtualMachineId, cancellationToken).ConfigureAwait(false);
+ }
+
+ /// Gets a collection of WorkloadNetworkVirtualMachineResources in the AvsPrivateCloud.
+ /// An object representing collection of WorkloadNetworkVirtualMachineResources and their operations over a WorkloadNetworkVirtualMachineResource.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public virtual WorkloadNetworkVirtualMachineCollection GetWorkloadNetworkVirtualMachines()
+ {
+ return GetWorkloadNetwork().GetWorkloadNetworkVirtualMachines();
+ }
+
+ ///
+ /// Get a vm group by id in a private cloud workload network.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}
+ ///
+ /// -
+ /// Operation Id
+ /// WorkloadNetworks_GetVmGroup
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// NSX VM Group identifier. Generally the same as the VM Group's display name.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public virtual Response GetWorkloadNetworkVmGroup(string vmGroupId, CancellationToken cancellationToken = default)
+ {
+ return GetWorkloadNetwork().GetWorkloadNetworkVmGroups().Get(vmGroupId, cancellationToken);
+ }
+
+ ///
+ /// Get a vm group by id in a private cloud workload network.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}
+ ///
+ /// -
+ /// Operation Id
+ /// WorkloadNetworks_GetVmGroup
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// NSX VM Group identifier. Generally the same as the VM Group's display name.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public virtual async Task> GetWorkloadNetworkVmGroupAsync(string vmGroupId, CancellationToken cancellationToken = default)
+ {
+ return await GetWorkloadNetwork().GetWorkloadNetworkVmGroups().GetAsync(vmGroupId, cancellationToken).ConfigureAwait(false);
+ }
+
+ /// Gets a collection of WorkloadNetworkVmGroupResources in the AvsPrivateCloud.
+ /// An object representing collection of WorkloadNetworkVmGroupResources and their operations over a WorkloadNetworkVmGroupResource.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public virtual WorkloadNetworkVmGroupCollection GetWorkloadNetworkVmGroups()
+ {
+ return GetWorkloadNetwork().GetWorkloadNetworkVmGroups();
+ }
+ }
+}
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Customized/Models/AvsManagementCluster.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/Models/AvsManagementCluster.cs
new file mode 100644
index 000000000000..23bf887170b4
--- /dev/null
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/Models/AvsManagementCluster.cs
@@ -0,0 +1,30 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.ClientModel.Primitives;
+using System.Text.Json;
+
+namespace Azure.ResourceManager.Avs.Models
+{
+ /// The properties of a management cluster.
+ public partial class AvsManagementCluster : CommonClusterProperties
+ {
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ base.JsonModelWriteCore(writer, options);
+ if (Optional.IsDefined(VsanDatastoreName))
+ {
+ writer.WritePropertyName("vsanDatastoreName"u8);
+ writer.WriteStringValue(VsanDatastoreName);
+ }
+ }
+ }
+}
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/CommonClusterProperties.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/Models/CommonClusterProperties.Serialization.cs
similarity index 99%
rename from sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/CommonClusterProperties.Serialization.cs
rename to sdk/avs/Azure.ResourceManager.Avs/src/Customized/Models/CommonClusterProperties.Serialization.cs
index 84d2972cc995..761797561d9f 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/CommonClusterProperties.Serialization.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/Models/CommonClusterProperties.Serialization.cs
@@ -1,8 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-//
-
#nullable disable
using System;
@@ -185,4 +183,4 @@ CommonClusterProperties IPersistableModel.Create(Binary
string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
}
-}
+}
\ No newline at end of file
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/CommonClusterProperties.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/Models/CommonClusterProperties.cs
similarity index 91%
rename from sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/CommonClusterProperties.cs
rename to sdk/avs/Azure.ResourceManager.Avs/src/Customized/Models/CommonClusterProperties.cs
index 635fbcb73775..67a0ffcbb8aa 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/CommonClusterProperties.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/Models/CommonClusterProperties.cs
@@ -1,12 +1,11 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-//
-
#nullable disable
using System;
using System.Collections.Generic;
+using System.ComponentModel;
namespace Azure.ResourceManager.Avs.Models
{
@@ -43,9 +42,11 @@ public partial class CommonClusterProperties
///
///
///
+ [EditorBrowsable(EditorBrowsableState.Never)]
private protected IDictionary _serializedAdditionalRawData;
/// Initializes a new instance of .
+ [EditorBrowsable(EditorBrowsableState.Never)]
public CommonClusterProperties()
{
Hosts = new ChangeTrackingList();
@@ -69,10 +70,10 @@ internal CommonClusterProperties(int? clusterSize, AvsPrivateCloudClusterProvisi
/// The cluster size.
public int? ClusterSize { get; set; }
/// The state of the cluster provisioning.
- public AvsPrivateCloudClusterProvisioningState? ProvisioningState { get; }
+ public AvsPrivateCloudClusterProvisioningState? ProvisioningState { get; private protected set; }
/// The identity.
- public int? ClusterId { get; }
+ public int? ClusterId { get; private protected set; }
/// The hosts.
- public IList Hosts { get; }
+ public IList Hosts { get; private protected set; }
}
-}
+}
\ No newline at end of file
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkName.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/Models/WorkloadNetworkName.cs
similarity index 97%
rename from sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkName.cs
rename to sdk/avs/Azure.ResourceManager.Avs/src/Customized/Models/WorkloadNetworkName.cs
index 80d1b2789eca..2e29220686c9 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkName.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/Models/WorkloadNetworkName.cs
@@ -1,8 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-//
-
#nullable disable
using System;
@@ -11,6 +9,7 @@
namespace Azure.ResourceManager.Avs.Models
{
/// The WorkloadNetworkName.
+ [EditorBrowsable(EditorBrowsableState.Never)]
public readonly partial struct WorkloadNetworkName : IEquatable
{
private readonly string _value;
@@ -21,7 +20,6 @@ public WorkloadNetworkName(string value)
{
_value = value ?? throw new ArgumentNullException(nameof(value));
}
-
private const string DefaultValue = "default";
/// default.
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Customized/RestOperations/WorkloadNetworksRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/RestOperations/WorkloadNetworksRestOperations.cs
new file mode 100644
index 000000000000..1a8099d55b89
--- /dev/null
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/RestOperations/WorkloadNetworksRestOperations.cs
@@ -0,0 +1,123 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+#nullable disable
+
+using System;
+using System.ComponentModel;
+using System.Text.Json;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.Avs.Models;
+
+namespace Azure.ResourceManager.Avs
+{
+ internal partial class WorkloadNetworksRestOperations
+ {
+ internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, WorkloadNetworkName workloadNetworkName)
+ {
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendPath("/subscriptions/", false);
+ uri.AppendPath(subscriptionId, true);
+ uri.AppendPath("/resourceGroups/", false);
+ uri.AppendPath(resourceGroupName, true);
+ uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false);
+ uri.AppendPath(privateCloudName, true);
+ uri.AppendPath("/workloadNetworks/", false);
+ uri.AppendPath(workloadNetworkName.ToString(), true);
+ uri.AppendQuery("api-version", _apiVersion, true);
+ return uri;
+ }
+
+ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string privateCloudName, WorkloadNetworkName workloadNetworkName)
+ {
+ var message = _pipeline.CreateMessage();
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendPath("/subscriptions/", false);
+ uri.AppendPath(subscriptionId, true);
+ uri.AppendPath("/resourceGroups/", false);
+ uri.AppendPath(resourceGroupName, true);
+ uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false);
+ uri.AppendPath(privateCloudName, true);
+ uri.AppendPath("/workloadNetworks/", false);
+ uri.AppendPath(workloadNetworkName.ToString(), true);
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ _userAgent.Apply(message);
+ return message;
+ }
+
+ /// Get a private cloud workload network.
+ /// The ID of the target subscription.
+ /// The name of the resource group. The name is case insensitive.
+ /// Name of the private cloud.
+ /// Name for the workload network in the private cloud.
+ /// The cancellation token to use.
+ /// , or is null.
+ /// , or is an empty string, and was expected to be non-empty.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public async Task> GetAsync(string subscriptionId, string resourceGroupName, string privateCloudName, WorkloadNetworkName workloadNetworkName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId));
+ Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName));
+ Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName));
+
+ using var message = CreateGetRequest(subscriptionId, resourceGroupName, privateCloudName, workloadNetworkName);
+ await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
+ switch (message.Response.Status)
+ {
+ case 200:
+ {
+ WorkloadNetworkData value = default;
+ using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
+ value = WorkloadNetworkData.DeserializeWorkloadNetworkData(document.RootElement);
+ return Response.FromValue(value, message.Response);
+ }
+ case 404:
+ return Response.FromValue((WorkloadNetworkData)null, message.Response);
+ default:
+ throw new RequestFailedException(message.Response);
+ }
+ }
+
+ /// Get a private cloud workload network.
+ /// The ID of the target subscription.
+ /// The name of the resource group. The name is case insensitive.
+ /// Name of the private cloud.
+ /// Name for the workload network in the private cloud.
+ /// The cancellation token to use.
+ /// , or is null.
+ /// , or is an empty string, and was expected to be non-empty.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Response Get(string subscriptionId, string resourceGroupName, string privateCloudName, WorkloadNetworkName workloadNetworkName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId));
+ Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName));
+ Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName));
+
+ using var message = CreateGetRequest(subscriptionId, resourceGroupName, privateCloudName, workloadNetworkName);
+ _pipeline.Send(message, cancellationToken);
+ switch (message.Response.Status)
+ {
+ case 200:
+ {
+ WorkloadNetworkData value = default;
+ using var document = JsonDocument.Parse(message.Response.ContentStream);
+ value = WorkloadNetworkData.DeserializeWorkloadNetworkData(document.RootElement);
+ return Response.FromValue(value, message.Response);
+ }
+ case 404:
+ return Response.FromValue((WorkloadNetworkData)null, message.Response);
+ default:
+ throw new RequestFailedException(message.Response);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/WorkloadNetworkCollection.cs
similarity index 96%
rename from sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkCollection.cs
rename to sdk/avs/Azure.ResourceManager.Avs/src/Customized/WorkloadNetworkCollection.cs
index 3405d7809b72..24456f6aa0de 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkCollection.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/WorkloadNetworkCollection.cs
@@ -1,13 +1,12 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-//
-
#nullable disable
using System;
using System.Collections;
using System.Collections.Generic;
+using System.ComponentModel;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
@@ -23,6 +22,8 @@ namespace Azure.ResourceManager.Avs
/// Each in the collection will belong to the same instance of .
/// To get a instance call the GetWorkloadNetworks method from an instance of .
///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("This class is obsolete and will be removed in a future release.", false)]
public partial class WorkloadNetworkCollection : ArmCollection, IEnumerable, IAsyncEnumerable
{
private readonly ClientDiagnostics _workloadNetworkClientDiagnostics;
@@ -65,7 +66,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -106,7 +107,7 @@ public virtual async Task> GetAsync(WorkloadNe
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -147,7 +148,7 @@ public virtual Response Get(WorkloadNetworkName workloa
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -177,7 +178,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTo
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -207,7 +208,7 @@ public virtual Pageable GetAll(CancellationToken cancel
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -246,7 +247,7 @@ public virtual async Task> ExistsAsync(WorkloadNetworkName worklo
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -285,7 +286,7 @@ public virtual Response Exists(WorkloadNetworkName workloadNetworkName, Ca
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -326,7 +327,7 @@ public virtual async Task> GetIfExists
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Customized/WorkloadNetworkResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/WorkloadNetworkResource.cs
new file mode 100644
index 000000000000..1e84ea4c47a2
--- /dev/null
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/WorkloadNetworkResource.cs
@@ -0,0 +1,30 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+#nullable disable
+
+using System.ComponentModel;
+using Azure.Core;
+using Azure.ResourceManager.Avs.Models;
+
+namespace Azure.ResourceManager.Avs
+{
+ ///
+ /// A Class representing a WorkloadNetwork along with the instance operations that can be performed on it.
+ /// If you have a you can construct a
+ /// from an instance of using the GetWorkloadNetworkResource method.
+ /// Otherwise you can get one from its parent resource using the GetWorkloadNetwork method.
+ ///
+ public partial class WorkloadNetworkResource : ArmResource
+ {
+ ///
+ /// Generate the resource identifier of a instance.
+ /// The subscriptionId.
+ /// The resourceGroupName.
+ /// The privateCloudName.
+ /// The workloadNetworkName.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string privateCloudName, WorkloadNetworkName workloadNetworkName)
+ => CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName);
+ }
+}
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ArmAvsModelFactory.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ArmAvsModelFactory.cs
index 27e2a349dc04..76dc4245065b 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ArmAvsModelFactory.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ArmAvsModelFactory.cs
@@ -18,15 +18,6 @@ namespace Azure.ResourceManager.Avs.Models
/// Model factory for models.
public static partial class ArmAvsModelFactory
{
- /// Initializes a new instance of .
- /// Trial status.
- /// Number of trial hosts available.
- /// A new instance for mocking.
- public static AvsSubscriptionTrialAvailabilityResult AvsSubscriptionTrialAvailabilityResult(AvsSubscriptionTrialStatus? status = null, int? availableHosts = null)
- {
- return new AvsSubscriptionTrialAvailabilityResult(status, availableHosts, serializedAdditionalRawData: null);
- }
-
/// Initializes a new instance of .
/// Remaining hosts quota by sku type.
/// Host quota is active for current subscription.
@@ -38,6 +29,15 @@ public static AvsSubscriptionQuotaAvailabilityResult AvsSubscriptionQuotaAvailab
return new AvsSubscriptionQuotaAvailabilityResult(hostsRemaining, quotaEnabled, serializedAdditionalRawData: null);
}
+ /// Initializes a new instance of .
+ /// Trial status.
+ /// Number of trial hosts available.
+ /// A new instance for mocking.
+ public static AvsSubscriptionTrialAvailabilityResult AvsSubscriptionTrialAvailabilityResult(AvsSubscriptionTrialStatus? status = null, int? availableHosts = null)
+ {
+ return new AvsSubscriptionTrialAvailabilityResult(status, availableHosts, serializedAdditionalRawData: null);
+ }
+
/// Initializes a new instance of .
/// The id.
/// The name.
@@ -45,18 +45,27 @@ public static AvsSubscriptionQuotaAvailabilityResult AvsSubscriptionQuotaAvailab
/// The systemData.
/// The tags.
/// The location.
- /// The private cloud SKU.
- /// The identity of the private cloud, if configured. Current supported identity types: SystemAssigned, None.
+ /// The SKU (Stock Keeping Unit) assigned to this resource.
+ /// The managed service identities assigned to this resource. Current supported identity types: None, SystemAssigned.
/// The default cluster used for management.
/// Connectivity to internet is enabled or disabled.
/// vCenter Single Sign On Identity Sources.
/// Properties describing how the cloud is distributed across availability zones.
/// Customer managed key encryption, can be enabled or disabled.
- /// Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to (A.B.C.D/X).
+ ///
+ /// Array of additional networks noncontiguous with networkBlock. Networks must be
+ /// unique and non-overlapping across VNet in your subscription, on-premise, and
+ /// this privateCloud networkBlock attribute. Make sure the CIDR format conforms to
+ /// (A.B.C.D/X).
+ ///
/// The provisioning state.
/// An ExpressRoute Circuit.
/// The endpoints.
- /// The block of addresses should be unique across VNet in your subscription as well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22.
+ ///
+ /// The block of addresses should be unique across VNet in your subscription as
+ /// well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where
+ /// A,B,C,D are between 0 and 255, and X is between 0 and 22
+ ///
/// Network used to access vCenter Server and NSX-T Manager.
/// Used for virtual machine cold migration, cloning, and snapshot migration.
/// Used for live migration of virtual machines.
@@ -65,10 +74,18 @@ public static AvsSubscriptionQuotaAvailabilityResult AvsSubscriptionQuotaAvailab
/// Thumbprint of the vCenter Server SSL certificate.
/// Thumbprint of the NSX-T Manager SSL certificate.
/// Array of cloud link IDs from other clouds that connect to this one.
- /// A secondary expressRoute circuit from a separate AZ. Only present in a stretched private cloud.
- /// Flag to indicate whether the private cloud has the quota for provisioned NSX Public IP count raised from 64 to 1024.
+ ///
+ /// A secondary expressRoute circuit from a separate AZ. Only present in a
+ /// stretched private cloud
+ ///
+ ///
+ /// Flag to indicate whether the private cloud has the quota for provisioned NSX
+ /// Public IP count raised from 64 to 1024
+ ///
+ /// Azure resource ID of the virtual network.
+ /// The type of DNS zone to use.
/// A new instance for mocking.
- public static AvsPrivateCloudData AvsPrivateCloudData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string skuName = null, ManagedServiceIdentity identity = null, AvsManagementCluster managementCluster = null, InternetConnectivityState? internet = null, IEnumerable identitySources = null, PrivateCloudAvailabilityProperties availability = null, CustomerManagedEncryption encryption = null, IEnumerable extendedNetworkBlocks = null, AvsPrivateCloudProvisioningState? provisioningState = null, ExpressRouteCircuit circuit = null, AvsPrivateCloudEndpoints endpoints = null, string networkBlock = null, string managementNetwork = null, string provisioningNetwork = null, string vMotionNetwork = null, string vCenterPassword = null, string nsxtPassword = null, string vCenterCertificateThumbprint = null, string nsxtCertificateThumbprint = null, IEnumerable externalCloudLinks = null, ExpressRouteCircuit secondaryCircuit = null, NsxPublicIPQuotaRaisedEnum? nsxPublicIPQuotaRaised = null)
+ public static AvsPrivateCloudData AvsPrivateCloudData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, AvsSku sku = null, ManagedServiceIdentity identity = null, AvsManagementCluster managementCluster = null, InternetConnectivityState? internet = null, IEnumerable identitySources = null, PrivateCloudAvailabilityProperties availability = null, CustomerManagedEncryption encryption = null, IEnumerable extendedNetworkBlocks = null, AvsPrivateCloudProvisioningState? provisioningState = null, ExpressRouteCircuit circuit = null, AvsPrivateCloudEndpoints endpoints = null, string networkBlock = null, string managementNetwork = null, string provisioningNetwork = null, string vMotionNetwork = null, string vCenterPassword = null, string nsxtPassword = null, string vCenterCertificateThumbprint = null, string nsxtCertificateThumbprint = null, IEnumerable externalCloudLinks = null, ExpressRouteCircuit secondaryCircuit = null, NsxPublicIPQuotaRaisedEnum? nsxPublicIPQuotaRaised = null, ResourceIdentifier virtualNetworkId = null, AvsDnsZoneType? dnsZoneType = null)
{
tags ??= new Dictionary();
identitySources ??= new List();
@@ -82,7 +99,7 @@ public static AvsPrivateCloudData AvsPrivateCloudData(ResourceIdentifier id = nu
systemData,
tags,
location,
- skuName != null ? new AvsSku(skuName, serializedAdditionalRawData: null) : null,
+ sku,
identity,
managementCluster,
internet,
@@ -104,54 +121,29 @@ public static AvsPrivateCloudData AvsPrivateCloudData(ResourceIdentifier id = nu
externalCloudLinks?.ToList(),
secondaryCircuit,
nsxPublicIPQuotaRaised,
+ virtualNetworkId,
+ dnsZoneType,
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
- /// CIDR of primary subnet.
- /// CIDR of secondary subnet.
- /// Identifier of the ExpressRoute Circuit (Microsoft Colo only).
- /// ExpressRoute Circuit private peering identifier.
- /// A new instance for mocking.
- public static ExpressRouteCircuit ExpressRouteCircuit(string primarySubnet = null, string secondarySubnet = null, ResourceIdentifier expressRouteId = null, ResourceIdentifier expressRoutePrivatePeeringId = null)
- {
- return new ExpressRouteCircuit(primarySubnet, secondarySubnet, expressRouteId, expressRoutePrivatePeeringId, serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- /// Endpoint for the NSX-T Data Center manager.
- /// Endpoint for Virtual Center Server Appliance.
- /// Endpoint for the HCX Cloud Manager.
- /// A new instance for mocking.
- public static AvsPrivateCloudEndpoints AvsPrivateCloudEndpoints(string nsxtManager = null, string vcsa = null, string hcxCloudManager = null)
- {
- return new AvsPrivateCloudEndpoints(nsxtManager, vcsa, hcxCloudManager, serializedAdditionalRawData: null);
- }
-
/// Initializes a new instance of .
/// The cluster size.
/// The state of the cluster provisioning.
/// The identity.
/// The hosts.
+ /// Name of the vsan datastore associated with the cluster.
/// A new instance for mocking.
- public static AvsManagementCluster AvsManagementCluster(int? clusterSize = null, AvsPrivateCloudClusterProvisioningState? provisioningState = null, int? clusterId = null, IEnumerable hosts = null)
- {
- hosts ??= new List();
-
- return new AvsManagementCluster(clusterSize, provisioningState, clusterId, hosts?.ToList(), serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- /// The cluster size.
- /// The state of the cluster provisioning.
- /// The identity.
- /// The hosts.
- /// A new instance for mocking.
- public static CommonClusterProperties CommonClusterProperties(int? clusterSize = null, AvsPrivateCloudClusterProvisioningState? provisioningState = null, int? clusterId = null, IEnumerable hosts = null)
+ public static AvsManagementCluster AvsManagementCluster(int? clusterSize = null, AvsPrivateCloudClusterProvisioningState? provisioningState = null, int? clusterId = null, IEnumerable hosts = null, string vsanDatastoreName = null)
{
hosts ??= new List();
- return new CommonClusterProperties(clusterSize, provisioningState, clusterId, hosts?.ToList(), serializedAdditionalRawData: null);
+ return new AvsManagementCluster(
+ clusterSize,
+ provisioningState,
+ clusterId,
+ hosts?.ToList(),
+ vsanDatastoreName,
+ serializedAdditionalRawData: null);
}
/// Initializes a new instance of .
@@ -174,18 +166,127 @@ public static AvsEncryptionKeyVaultProperties AvsEncryptionKeyVaultProperties(st
serializedAdditionalRawData: null);
}
+ /// Initializes a new instance of .
+ /// CIDR of primary subnet.
+ /// CIDR of secondary subnet.
+ /// Identifier of the ExpressRoute Circuit (Microsoft Colo only).
+ /// ExpressRoute Circuit private peering identifier.
+ /// A new instance for mocking.
+ public static ExpressRouteCircuit ExpressRouteCircuit(string primarySubnet = null, string secondarySubnet = null, ResourceIdentifier expressRouteId = null, ResourceIdentifier expressRoutePrivatePeeringId = null)
+ {
+ return new ExpressRouteCircuit(primarySubnet, secondarySubnet, expressRouteId, expressRoutePrivatePeeringId, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Endpoint FQDN for the NSX-T Data Center manager.
+ /// Endpoint FQDN for Virtual Center Server Appliance.
+ /// Endpoint FQDN for the HCX Cloud Manager.
+ /// Endpoint IP for the NSX-T Data Center manager.
+ /// Endpoint IP for Virtual Center Server Appliance.
+ /// Endpoint IP for the HCX Cloud Manager.
+ /// A new instance for mocking.
+ public static AvsPrivateCloudEndpoints AvsPrivateCloudEndpoints(string nsxtManager = null, string vcsa = null, string hcxCloudManager = null, string nsxtManagerIP = null, string vcenterIP = null, string hcxCloudManagerIP = null)
+ {
+ return new AvsPrivateCloudEndpoints(
+ nsxtManager,
+ vcsa,
+ hcxCloudManager,
+ nsxtManagerIP,
+ vcenterIP,
+ hcxCloudManagerIP,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ ///
+ /// The resource-specific properties for this resource.
+ /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
+ /// The available derived classes include , , and .
+ ///
+ /// A new instance for mocking.
+ public static AvsPrivateCloudAddonData AvsPrivateCloudAddonData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AvsPrivateCloudAddonProperties properties = null)
+ {
+ return new AvsPrivateCloudAddonData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ properties,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Addon type.
+ /// The state of the addon provisioning.
+ /// A new instance for mocking.
+ public static AvsPrivateCloudAddonProperties AvsPrivateCloudAddonProperties(string addonType = null, AddonProvisioningState? provisioningState = null)
+ {
+ return new UnknownAddonProperties(addonType == null ? default : new AddonType(addonType), provisioningState, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The state of the ExpressRoute Circuit Authorization provisioning.
+ /// The ID of the ExpressRoute Circuit Authorization.
+ /// The key of the ExpressRoute Circuit Authorization.
+ /// The ID of the ExpressRoute Circuit.
+ /// A new instance for mocking.
+ public static ExpressRouteAuthorizationData ExpressRouteAuthorizationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ExpressRouteAuthorizationProvisioningState? provisioningState = null, ResourceIdentifier expressRouteAuthorizationId = null, string expressRouteAuthorizationKey = null, ResourceIdentifier expressRouteId = null)
+ {
+ return new ExpressRouteAuthorizationData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ provisioningState,
+ expressRouteAuthorizationId,
+ expressRouteAuthorizationKey,
+ expressRouteId,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The provisioning state of the resource.
+ /// The state of the cloud link.
+ /// Identifier of the other private cloud participating in the link.
+ /// A new instance for mocking.
+ public static AvsCloudLinkData AvsCloudLinkData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AvsCloudLinkProvisioningState? provisioningState = null, AvsCloudLinkStatus? status = null, ResourceIdentifier linkedCloud = null)
+ {
+ return new AvsCloudLinkData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ provisioningState,
+ status,
+ linkedCloud,
+ serializedAdditionalRawData: null);
+ }
+
/// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- /// The cluster SKU.
+ /// The SKU (Stock Keeping Unit) assigned to this resource.
/// The cluster size.
/// The state of the cluster provisioning.
/// The identity.
/// The hosts.
+ /// Name of the vsan datastore associated with the cluster.
/// A new instance for mocking.
- public static AvsPrivateCloudClusterData AvsPrivateCloudClusterData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string skuName = null, int? clusterSize = null, AvsPrivateCloudClusterProvisioningState? provisioningState = null, int? clusterId = null, IEnumerable hosts = null)
+ public static AvsPrivateCloudClusterData AvsPrivateCloudClusterData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AvsSku sku = null, int? clusterSize = null, AvsPrivateCloudClusterProvisioningState? provisioningState = null, int? clusterId = null, IEnumerable hosts = null, string vsanDatastoreName = null)
{
hosts ??= new List();
@@ -194,25 +295,15 @@ public static AvsPrivateCloudClusterData AvsPrivateCloudClusterData(ResourceIden
name,
resourceType,
systemData,
- skuName != null ? new AvsSku(skuName, serializedAdditionalRawData: null) : null,
+ sku,
clusterSize,
provisioningState,
clusterId,
hosts?.ToList(),
+ vsanDatastoreName,
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
- /// List of hosts belonging to the availability zone in a cluster.
- /// Availability zone identifier.
- /// A new instance for mocking.
- public static AvsClusterZone AvsClusterZone(IEnumerable hosts = null, string zone = null)
- {
- hosts ??= new List();
-
- return new AvsClusterZone(hosts?.ToList(), zone, serializedAdditionalRawData: null);
- }
-
/// Initializes a new instance of .
/// The id.
/// The name.
@@ -221,9 +312,10 @@ public static AvsClusterZone AvsClusterZone(IEnumerable hosts = null, st
/// The state of the datastore provisioning.
/// An Azure NetApp Files volume.
/// An iSCSI volume.
+ /// An Elastic SAN volume.
/// The operational status of the datastore.
/// A new instance for mocking.
- public static AvsPrivateCloudDatastoreData AvsPrivateCloudDatastoreData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AvsPrivateCloudDatastoreProvisioningState? provisioningState = null, ResourceIdentifier netAppVolumeId = null, DiskPoolVolume diskPoolVolume = null, DatastoreStatus? status = null)
+ public static AvsPrivateCloudDatastoreData AvsPrivateCloudDatastoreData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AvsPrivateCloudDatastoreProvisioningState? provisioningState = null, ResourceIdentifier netAppVolumeId = null, DiskPoolVolume diskPoolVolume = null, ResourceIdentifier elasticSanVolumeTargetId = null, DatastoreStatus? status = null)
{
return new AvsPrivateCloudDatastoreData(
id,
@@ -233,6 +325,7 @@ public static AvsPrivateCloudDatastoreData AvsPrivateCloudDatastoreData(Resource
provisioningState,
netAppVolumeId != null ? ResourceManagerModelFactory.WritableSubResource(netAppVolumeId) : null,
diskPoolVolume,
+ elasticSanVolumeTargetId != null ? new ElasticSanVolume(elasticSanVolumeTargetId, serializedAdditionalRawData: null) : null,
status,
serializedAdditionalRawData: null);
}
@@ -240,7 +333,10 @@ public static AvsPrivateCloudDatastoreData AvsPrivateCloudDatastoreData(Resource
/// Initializes a new instance of .
/// Azure resource ID of the iSCSI target.
/// Name of the LUN to be used for datastore.
- /// Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN.
+ ///
+ /// Mode that describes whether the LUN has to be mounted as a datastore or
+ /// attached as a LUN
+ ///
/// Device path.
/// A new instance for mocking.
public static DiskPoolVolume DiskPoolVolume(ResourceIdentifier targetId = null, string lunName = null, LunMountMode? mountOption = null, string path = null)
@@ -248,58 +344,73 @@ public static DiskPoolVolume DiskPoolVolume(ResourceIdentifier targetId = null,
return new DiskPoolVolume(targetId, lunName, mountOption, path, serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
- /// NSX-T Manager username.
- /// NSX-T Manager password.
- /// vCenter admin username.
- /// vCenter admin password.
- /// A new instance for mocking.
- public static AdminCredentials AdminCredentials(string nsxtUsername = null, string nsxtPassword = null, string vCenterUsername = null, string vCenterPassword = null)
+ /// Initializes a new instance of .
+ /// List of hosts belonging to the availability zone in a cluster.
+ /// Availability zone identifier.
+ /// A new instance for mocking.
+ public static AvsClusterZone AvsClusterZone(IEnumerable hosts = null, string zone = null)
{
- return new AdminCredentials(nsxtUsername, nsxtPassword, vCenterUsername, vCenterPassword, serializedAdditionalRawData: null);
+ hosts ??= new List();
+
+ return new AvsClusterZone(hosts?.ToList(), zone, serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- /// The activation key.
- /// The status of the HCX Enterprise Site.
- /// A new instance for mocking.
- public static HcxEnterpriseSiteData HcxEnterpriseSiteData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string activationKey = null, HcxEnterpriseSiteStatus? status = null)
+ ///
+ /// The resource-specific properties for this resource.
+ /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
+ /// The available derived classes include and .
+ ///
+ /// A new instance for mocking.
+ public static PlacementPolicyData PlacementPolicyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, PlacementPolicyProperties properties = null)
{
- return new HcxEnterpriseSiteData(
+ return new PlacementPolicyData(
id,
name,
resourceType,
systemData,
- activationKey,
- status,
+ properties,
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
+ /// Placement Policy type.
+ /// Whether the placement policy is enabled or disabled.
+ /// Display name of the placement policy.
+ /// The provisioning state.
+ /// A new instance for mocking.
+ public static PlacementPolicyProperties PlacementPolicyProperties(string policyType = null, PlacementPolicyState? state = null, string displayName = null, PlacementPolicyProvisioningState? provisioningState = null)
+ {
+ return new UnknownPlacementPolicyProperties(policyType == null ? default : new PlacementPolicyType(policyType), state, displayName, provisioningState, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- /// The state of the ExpressRoute Circuit Authorization provisioning.
- /// The ID of the ExpressRoute Circuit Authorization.
- /// The key of the ExpressRoute Circuit Authorization.
- /// The ID of the ExpressRoute Circuit.
- /// A new instance for mocking.
- public static ExpressRouteAuthorizationData ExpressRouteAuthorizationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ExpressRouteAuthorizationProvisioningState? provisioningState = null, ResourceIdentifier expressRouteAuthorizationId = null, string expressRouteAuthorizationKey = null, ResourceIdentifier expressRouteId = null)
+ /// The provisioning state of the resource.
+ /// Display name of the VM.
+ /// Virtual machine managed object reference id.
+ /// Path to virtual machine's folder starting from datacenter virtual machine folder.
+ /// Whether VM DRS-driven movement is restricted (enabled) or not (disabled).
+ /// A new instance for mocking.
+ public static AvsPrivateCloudClusterVirtualMachineData AvsPrivateCloudClusterVirtualMachineData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AvsVirtualMachineProvisioningState? provisioningState = null, string displayName = null, string moRefId = null, string folderPath = null, VirtualMachineRestrictMovementState? restrictMovement = null)
{
- return new ExpressRouteAuthorizationData(
+ return new AvsPrivateCloudClusterVirtualMachineData(
id,
name,
resourceType,
systemData,
provisioningState,
- expressRouteAuthorizationId,
- expressRouteAuthorizationKey,
- expressRouteId,
+ displayName,
+ moRefId,
+ folderPath,
+ restrictMovement,
serializedAdditionalRawData: null);
}
@@ -309,11 +420,23 @@ public static ExpressRouteAuthorizationData ExpressRouteAuthorizationData(Resour
/// The resourceType.
/// The systemData.
/// The state of the ExpressRoute Circuit Authorization provisioning.
- /// The network used for global reach carved out from the original network block provided for the private cloud.
- /// Authorization key from the peer express route used for the global reach connection.
+ ///
+ /// The network used for global reach carved out from the original network block
+ /// provided for the private cloud
+ ///
+ ///
+ /// Authorization key from the peer express route used for the global reach
+ /// connection
+ ///
/// The connection status of the global reach connection.
- /// Identifier of the ExpressRoute Circuit to peer with in the global reach connection.
- /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection.
+ ///
+ /// Identifier of the ExpressRoute Circuit to peer with in the global reach
+ /// connection
+ ///
+ ///
+ /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in the
+ /// global reach connection
+ ///
/// A new instance for mocking.
public static GlobalReachConnectionData GlobalReachConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, GlobalReachConnectionProvisioningState? provisioningState = null, string addressPrefix = null, string authorizationKey = null, GlobalReachConnectionStatus? circuitConnectionStatus = null, ResourceIdentifier peerExpressRouteCircuit = null, ResourceIdentifier expressRouteId = null)
{
@@ -331,194 +454,259 @@ public static GlobalReachConnectionData GlobalReachConnectionData(ResourceIdenti
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- /// A new instance for mocking.
- public static WorkloadNetworkData WorkloadNetworkData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null)
+ /// The provisioning state of the resource.
+ /// The activation key.
+ /// The status of the HCX Enterprise Site.
+ /// A new instance for mocking.
+ public static HcxEnterpriseSiteData HcxEnterpriseSiteData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, HcxEnterpriseSiteProvisioningState? provisioningState = null, string activationKey = null, HcxEnterpriseSiteStatus? status = null)
{
- return new WorkloadNetworkData(id, name, resourceType, systemData, serializedAdditionalRawData: null);
+ return new HcxEnterpriseSiteData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ provisioningState,
+ activationKey,
+ status,
+ serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- /// Display name of the segment.
- /// Gateway which to connect segment to.
- /// Subnet which to connect segment to.
- /// Port Vif which segment is associated with.
- /// Segment status.
- /// The provisioning state.
- /// NSX revision number.
- /// A new instance for mocking.
- public static WorkloadNetworkSegmentData WorkloadNetworkSegmentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, string connectedGateway = null, WorkloadNetworkSegmentSubnet subnet = null, IEnumerable portVif = null, WorkloadNetworkSegmentStatus? status = null, WorkloadNetworkSegmentProvisioningState? provisioningState = null, long? revision = null)
+ /// The state of the iSCSI path provisioning.
+ /// CIDR Block for iSCSI path.
+ /// A new instance for mocking.
+ public static IscsiPathData IscsiPathData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IscsiPathProvisioningState? provisioningState = null, string networkBlock = null)
{
- portVif ??= new List();
-
- return new WorkloadNetworkSegmentData(
+ return new IscsiPathData(
id,
name,
resourceType,
systemData,
- displayName,
- connectedGateway,
- subnet,
- portVif?.ToList(),
- status,
provisioningState,
- revision,
+ networkBlock,
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
- /// Name of port or VIF attached to segment.
- /// A new instance for mocking.
- public static WorkloadNetworkSegmentPortVif WorkloadNetworkSegmentPortVif(string portName = null)
+ /// Initializes a new instance of .
+ /// NSX-T Manager username.
+ /// NSX-T Manager password.
+ /// vCenter admin username.
+ /// vCenter admin password.
+ /// A new instance for mocking.
+ public static AdminCredentials AdminCredentials(string nsxtUsername = null, string nsxtPassword = null, string vCenterUsername = null, string vCenterPassword = null)
{
- return new WorkloadNetworkSegmentPortVif(portName, serializedAdditionalRawData: null);
+ return new AdminCredentials(nsxtUsername, nsxtPassword, vCenterUsername, vCenterPassword, serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- ///
- /// DHCP properties.
- /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include and .
+ /// A reference to the script cmdlet resource if user is running a AVS script.
+ ///
+ /// Parameters the script will accept
+ /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
+ /// The available derived classes include , and .
///
- /// A new instance for mocking.
- public static WorkloadNetworkDhcpData WorkloadNetworkDhcpData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, WorkloadNetworkDhcpEntity properties = null)
+ ///
+ /// Parameters that will be hidden/not visible to ARM, such as passwords and
+ /// credentials
+ /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
+ /// The available derived classes include , and .
+ ///
+ ///
+ /// Error message if the script was able to run, but if the script itself had
+ /// errors or powershell threw an exception
+ ///
+ /// Time limit for execution.
+ /// Time to live for the resource. If not provided, will be available for 60 days.
+ /// Time the script execution was submitted.
+ /// Time the script execution was started.
+ /// Time the script execution was finished.
+ /// The state of the script execution resource.
+ /// Standard output stream from the powershell execution.
+ /// User-defined dictionary.
+ /// Standard information out stream from the powershell execution.
+ /// Standard warning out stream from the powershell execution.
+ /// Standard error output stream from the powershell execution.
+ /// A new instance for mocking.
+ public static ScriptExecutionData ScriptExecutionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier scriptCmdletId = null, IEnumerable parameters = null, IEnumerable hiddenParameters = null, string failureReason = null, string timeout = null, string retention = null, DateTimeOffset? submittedOn = null, DateTimeOffset? startedOn = null, DateTimeOffset? finishedOn = null, ScriptExecutionProvisioningState? provisioningState = null, IEnumerable output = null, BinaryData namedOutputs = null, IEnumerable information = null, IEnumerable warnings = null, IEnumerable errors = null)
{
- return new WorkloadNetworkDhcpData(
+ parameters ??= new List();
+ hiddenParameters ??= new List();
+ output ??= new List();
+ information ??= new List();
+ warnings ??= new List();
+ errors ??= new List();
+
+ return new ScriptExecutionData(
id,
name,
resourceType,
systemData,
- properties,
- serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- /// Type of DHCP: SERVER or RELAY.
- /// Display name of the DHCP entity.
- /// NSX Segments consuming DHCP.
- /// The provisioning state.
- /// NSX revision number.
- /// A new instance for mocking.
- public static WorkloadNetworkDhcpEntity WorkloadNetworkDhcpEntity(string dhcpType = null, string displayName = null, IEnumerable segments = null, WorkloadNetworkDhcpProvisioningState? provisioningState = null, long? revision = null)
- {
- segments ??= new List();
-
- return new UnknownWorkloadNetworkDhcpEntity(
- dhcpType == null ? default : new DhcpTypeEnum(dhcpType),
- displayName,
- segments?.ToList(),
+ scriptCmdletId,
+ parameters?.ToList(),
+ hiddenParameters?.ToList(),
+ failureReason,
+ timeout,
+ retention,
+ submittedOn,
+ startedOn,
+ finishedOn,
provisioningState,
- revision,
+ output?.ToList(),
+ namedOutputs,
+ information?.ToList(),
+ warnings?.ToList(),
+ errors?.ToList(),
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- /// Display name of the DHCP entity.
- /// NSX Gateway Path.
- /// A new instance for mocking.
- public static WorkloadNetworkGatewayData WorkloadNetworkGatewayData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, string path = null)
+ /// The provisioning state of the resource.
+ /// User friendly description of the package.
+ /// Module version.
+ /// Company that created and supports the package.
+ /// Link to support by the package vendor.
+ /// A new instance for mocking.
+ public static ScriptPackageData ScriptPackageData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ScriptPackageProvisioningState? provisioningState = null, string description = null, string version = null, string company = null, Uri uri = null)
{
- return new WorkloadNetworkGatewayData(
+ return new ScriptPackageData(
id,
name,
resourceType,
systemData,
- displayName,
- path,
+ provisioningState,
+ description,
+ version,
+ company,
+ uri,
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- /// Display name of the port mirroring profile.
- /// Direction of port mirroring profile.
- /// Source VM Group.
- /// Destination VM Group.
- /// Port Mirroring Status.
- /// The provisioning state.
- /// NSX revision number.
- /// A new instance for mocking.
- public static WorkloadNetworkPortMirroringProfileData WorkloadNetworkPortMirroringProfileData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, PortMirroringProfileDirection? direction = null, string source = null, string destination = null, PortMirroringProfileStatus? status = null, WorkloadNetworkPortMirroringProfileProvisioningState? provisioningState = null, long? revision = null)
+ /// The provisioning state of the resource.
+ /// Description of the scripts functionality.
+ /// Recommended time limit for execution.
+ /// Specifies whether a script cmdlet is intended to be invoked only through automation or visible to customers.
+ /// Parameters the script will accept.
+ /// A new instance for mocking.
+ public static ScriptCmdletData ScriptCmdletData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ScriptCmdletProvisioningState? provisioningState = null, string description = null, TimeSpan? timeout = null, ScriptCmdletAudience? audience = null, IEnumerable parameters = null)
{
- return new WorkloadNetworkPortMirroringProfileData(
+ parameters ??= new List();
+
+ return new ScriptCmdletData(
id,
name,
resourceType,
systemData,
- displayName,
- direction,
- source,
- destination,
- status,
provisioningState,
- revision,
+ description,
+ timeout,
+ audience,
+ parameters?.ToList(),
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
+ ///
+ /// The type of parameter the script is expecting. psCredential is a
+ /// PSCredentialObject
+ ///
+ /// The parameter name that the script will expect a parameter value for.
+ /// User friendly description of the parameter.
+ ///
+ /// Should this parameter be visible to arm and passed in the parameters argument
+ /// when executing
+ ///
+ /// Is this parameter required or optional.
+ /// A new instance for mocking.
+ public static ScriptParameter ScriptParameter(ScriptParameterType? parameterType = null, string name = null, string description = null, ParameterVisibilityStatus? visibility = null, ParameterOptionalityStatus? optional = null)
+ {
+ return new ScriptParameter(
+ parameterType,
+ name,
+ description,
+ visibility,
+ optional,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- /// Display name of the VM group.
- /// Virtual machine members of this group.
- /// VM Group status.
- /// The provisioning state.
- /// NSX revision number.
- /// A new instance for mocking.
- public static WorkloadNetworkVmGroupData WorkloadNetworkVmGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, IEnumerable members = null, WorkloadNetworkVmGroupStatus? status = null, WorkloadNetworkVmGroupProvisioningState? provisioningState = null, long? revision = null)
+ /// The provisioning state of the resource.
+ /// A new instance for mocking.
+ public static WorkloadNetworkData WorkloadNetworkData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, WorkloadNetworkProvisioningState? provisioningState = null)
{
- members ??= new List();
-
- return new WorkloadNetworkVmGroupData(
+ return new WorkloadNetworkData(
id,
name,
resourceType,
systemData,
- displayName,
- members?.ToList(),
- status,
provisioningState,
- revision,
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- /// Display name of the VM.
- /// Virtual machine type.
- /// A new instance for mocking.
- public static WorkloadNetworkVirtualMachineData WorkloadNetworkVirtualMachineData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, WorkloadNetworkVmType? vmType = null)
+ ///
+ /// The resource-specific properties for this resource.
+ /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
+ /// The available derived classes include and .
+ ///
+ /// A new instance for mocking.
+ public static WorkloadNetworkDhcpData WorkloadNetworkDhcpData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, WorkloadNetworkDhcpEntity properties = null)
{
- return new WorkloadNetworkVirtualMachineData(
+ return new WorkloadNetworkDhcpData(
id,
name,
resourceType,
systemData,
+ properties,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Type of DHCP: SERVER or RELAY.
+ /// Display name of the DHCP entity.
+ /// NSX Segments consuming DHCP.
+ /// The provisioning state.
+ /// NSX revision number.
+ /// A new instance for mocking.
+ public static WorkloadNetworkDhcpEntity WorkloadNetworkDhcpEntity(string dhcpType = null, string displayName = null, IEnumerable segments = null, WorkloadNetworkDhcpProvisioningState? provisioningState = null, long? revision = null)
+ {
+ segments ??= new List();
+
+ return new UnknownWorkloadNetworkDhcpEntity(
+ dhcpType == null ? default : new DhcpTypeEnum(dhcpType),
displayName,
- vmType,
+ segments?.ToList(),
+ provisioningState,
+ revision,
serializedAdditionalRawData: null);
}
@@ -589,263 +777,188 @@ public static WorkloadNetworkDnsZoneData WorkloadNetworkDnsZoneData(ResourceIden
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- /// Display name of the Public IP Block.
- /// Number of Public IPs requested.
- /// CIDR Block of the Public IP Block.
- /// The provisioning state.
- /// A new instance for mocking.
- public static WorkloadNetworkPublicIPData WorkloadNetworkPublicIPData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, long? numberOfPublicIPs = null, string publicIPBlock = null, WorkloadNetworkPublicIPProvisioningState? provisioningState = null)
+ /// The provisioning state of the resource.
+ /// Display name of the DHCP entity.
+ /// NSX Gateway Path.
+ /// A new instance for mocking.
+ public static WorkloadNetworkGatewayData WorkloadNetworkGatewayData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, WorkloadNetworkProvisioningState? provisioningState = null, string displayName = null, string path = null)
{
- return new WorkloadNetworkPublicIPData(
+ return new WorkloadNetworkGatewayData(
id,
name,
resourceType,
systemData,
- displayName,
- numberOfPublicIPs,
- publicIPBlock,
provisioningState,
+ displayName,
+ path,
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- /// The state of the cloud link.
- /// Identifier of the other private cloud participating in the link.
- /// A new instance for mocking.
- public static AvsCloudLinkData AvsCloudLinkData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AvsCloudLinkStatus? status = null, ResourceIdentifier linkedCloud = null)
+ /// Display name of the port mirroring profile.
+ /// Direction of port mirroring profile.
+ /// Source VM Group.
+ /// Destination VM Group.
+ /// Port Mirroring Status.
+ /// The provisioning state.
+ /// NSX revision number.
+ /// A new instance for mocking.
+ public static WorkloadNetworkPortMirroringProfileData WorkloadNetworkPortMirroringProfileData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, PortMirroringProfileDirection? direction = null, string source = null, string destination = null, PortMirroringProfileStatus? status = null, WorkloadNetworkPortMirroringProfileProvisioningState? provisioningState = null, long? revision = null)
{
- return new AvsCloudLinkData(
+ return new WorkloadNetworkPortMirroringProfileData(
id,
name,
resourceType,
systemData,
+ displayName,
+ direction,
+ source,
+ destination,
status,
- linkedCloud,
+ provisioningState,
+ revision,
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- ///
- /// The properties of an addon resource
- /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include , , and .
- ///
- /// A new instance for mocking.
- public static AvsPrivateCloudAddonData AvsPrivateCloudAddonData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AvsPrivateCloudAddonProperties properties = null)
- {
- return new AvsPrivateCloudAddonData(
- id,
- name,
- resourceType,
- systemData,
- properties,
- serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- /// The type of private cloud addon.
- /// The state of the addon provisioning.
- /// A new instance for mocking.
- public static AvsPrivateCloudAddonProperties AvsPrivateCloudAddonProperties(string addonType = null, AddonProvisioningState? provisioningState = null)
- {
- return new UnknownAddonProperties(addonType == null ? default : new AddonType(addonType), provisioningState, serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- /// The id.
- /// The name.
- /// The resourceType.
- /// The systemData.
- /// Display name of the VM.
- /// Virtual machine managed object reference id.
- /// Path to virtual machine's folder starting from datacenter virtual machine folder.
- /// Whether VM DRS-driven movement is restricted (enabled) or not (disabled).
- /// A new instance for mocking.
- public static AvsPrivateCloudClusterVirtualMachineData AvsPrivateCloudClusterVirtualMachineData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, string moRefId = null, string folderPath = null, VirtualMachineRestrictMovementState? restrictMovement = null)
+ /// Display name of the Public IP Block.
+ /// Number of Public IPs requested.
+ /// CIDR Block of the Public IP Block.
+ /// The provisioning state.
+ /// A new instance for mocking.
+ public static WorkloadNetworkPublicIPData WorkloadNetworkPublicIPData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, long? numberOfPublicIPs = null, string publicIPBlock = null, WorkloadNetworkPublicIPProvisioningState? provisioningState = null)
{
- return new AvsPrivateCloudClusterVirtualMachineData(
+ return new WorkloadNetworkPublicIPData(
id,
name,
resourceType,
systemData,
displayName,
- moRefId,
- folderPath,
- restrictMovement,
+ numberOfPublicIPs,
+ publicIPBlock,
+ provisioningState,
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- ///
- /// placement policy properties
- /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include and .
- ///
- /// A new instance for mocking.
- public static PlacementPolicyData PlacementPolicyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, PlacementPolicyProperties properties = null)
+ /// Display name of the segment.
+ /// Gateway which to connect segment to.
+ /// Subnet which to connect segment to.
+ /// Port Vif which segment is associated with.
+ /// Segment status.
+ /// The provisioning state.
+ /// NSX revision number.
+ /// A new instance for mocking.
+ public static WorkloadNetworkSegmentData WorkloadNetworkSegmentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, string connectedGateway = null, WorkloadNetworkSegmentSubnet subnet = null, IEnumerable portVif = null, WorkloadNetworkSegmentStatus? status = null, WorkloadNetworkSegmentProvisioningState? provisioningState = null, long? revision = null)
{
- return new PlacementPolicyData(
+ portVif ??= new List();
+
+ return new WorkloadNetworkSegmentData(
id,
name,
resourceType,
systemData,
- properties,
+ displayName,
+ connectedGateway,
+ subnet,
+ portVif?.ToList(),
+ status,
+ provisioningState,
+ revision,
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
- /// placement policy type.
- /// Whether the placement policy is enabled or disabled.
- /// Display name of the placement policy.
- /// The provisioning state.
- /// A new instance for mocking.
- public static PlacementPolicyProperties PlacementPolicyProperties(string policyType = null, PlacementPolicyState? state = null, string displayName = null, PlacementPolicyProvisioningState? provisioningState = null)
+ /// Initializes a new instance of .
+ /// Name of port or VIF attached to segment.
+ /// A new instance for mocking.
+ public static WorkloadNetworkSegmentPortVif WorkloadNetworkSegmentPortVif(string portName = null)
{
- return new UnknownPlacementPolicyProperties(policyType == null ? default : new PlacementPolicyType(policyType), state, displayName, provisioningState, serializedAdditionalRawData: null);
+ return new WorkloadNetworkSegmentPortVif(portName, serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- /// User friendly description of the package.
- /// Module version.
- /// Company that created and supports the package.
- /// Link to support by the package vendor.
- /// A new instance for mocking.
- public static ScriptPackageData ScriptPackageData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, string version = null, string company = null, Uri uri = null)
+ /// The provisioning state of the resource.
+ /// Display name of the VM.
+ /// Virtual machine type.
+ /// A new instance for mocking.
+ public static WorkloadNetworkVirtualMachineData WorkloadNetworkVirtualMachineData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, WorkloadNetworkProvisioningState? provisioningState = null, string displayName = null, WorkloadNetworkVmType? vmType = null)
{
- return new ScriptPackageData(
+ return new WorkloadNetworkVirtualMachineData(
id,
name,
resourceType,
systemData,
- description,
- version,
- company,
- uri,
+ provisioningState,
+ displayName,
+ vmType,
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- /// Description of the scripts functionality.
- /// Recommended time limit for execution.
- /// Parameters the script will accept.
- /// A new instance for mocking.
- public static ScriptCmdletData ScriptCmdletData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, TimeSpan? timeout = null, IEnumerable parameters = null)
+ /// Display name of the VM group.
+ /// Virtual machine members of this group.
+ /// VM Group status.
+ /// The provisioning state.
+ /// NSX revision number.
+ /// A new instance for mocking.
+ public static WorkloadNetworkVmGroupData WorkloadNetworkVmGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, IEnumerable members = null, WorkloadNetworkVmGroupStatus? status = null, WorkloadNetworkVmGroupProvisioningState? provisioningState = null, long? revision = null)
{
- parameters ??= new List();
+ members ??= new List();
- return new ScriptCmdletData(
+ return new WorkloadNetworkVmGroupData(
id,
name,
resourceType,
systemData,
- description,
- timeout,
- parameters?.ToList(),
+ displayName,
+ members?.ToList(),
+ status,
+ provisioningState,
+ revision,
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
- /// The type of parameter the script is expecting. psCredential is a PSCredentialObject.
- /// The parameter name that the script will expect a parameter value for.
- /// User friendly description of the parameter.
- /// Should this parameter be visible to arm and passed in the parameters argument when executing.
- /// Is this parameter required or optional.
- /// A new instance for mocking.
- public static ScriptParameter ScriptParameter(ScriptParameterType? parameterType = null, string name = null, string description = null, ParameterVisibilityStatus? visibility = null, ParameterOptionalityStatus? optional = null)
+ /// Initializes a new instance of .
+ /// The state of the addon provisioning.
+ /// The VMware vCenter resource ID.
+ /// A new instance for mocking.
+ public static AddonArcProperties AddonArcProperties(AddonProvisioningState? provisioningState = null, string vCenter = null)
{
- return new ScriptParameter(
- parameterType,
- name,
- description,
- visibility,
- optional,
- serializedAdditionalRawData: null);
+ return new AddonArcProperties(AddonType.Arc, provisioningState, serializedAdditionalRawData: null, vCenter);
}
- /// Initializes a new instance of .
- /// The id.
- /// The name.
- /// The resourceType.
- /// The systemData.
- /// A reference to the script cmdlet resource if user is running a AVS script.
- ///
- /// Parameters the script will accept
- /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include , and .
- ///
- ///
- /// Parameters that will be hidden/not visible to ARM, such as passwords and credentials
- /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include , and .
- ///
- /// Error message if the script was able to run, but if the script itself had errors or powershell threw an exception.
- /// Time limit for execution.
- /// Time to live for the resource. If not provided, will be available for 60 days.
- /// Time the script execution was submitted.
- /// Time the script execution was started.
- /// Time the script execution was finished.
- /// The state of the script execution resource.
- /// Standard output stream from the powershell execution.
- /// User-defined dictionary.
- /// Standard information out stream from the powershell execution.
- /// Standard warning out stream from the powershell execution.
- /// Standard error output stream from the powershell execution.
- /// A new instance for mocking.
- public static ScriptExecutionData ScriptExecutionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier scriptCmdletId = null, IEnumerable parameters = null, IEnumerable hiddenParameters = null, string failureReason = null, string timeout = null, string retention = null, DateTimeOffset? submittedOn = null, DateTimeOffset? startedOn = null, DateTimeOffset? finishedOn = null, ScriptExecutionProvisioningState? provisioningState = null, IEnumerable output = null, BinaryData namedOutputs = null, IEnumerable information = null, IEnumerable warnings = null, IEnumerable errors = null)
+ /// Initializes a new instance of .
+ /// The state of the addon provisioning.
+ /// The HCX offer, example VMware MaaS Cloud Provider (Enterprise).
+ /// A new instance for mocking.
+ public static AddonHcxProperties AddonHcxProperties(AddonProvisioningState? provisioningState = null, string offer = null)
{
- parameters ??= new List();
- hiddenParameters ??= new List();
- output ??= new List();
- information ??= new List();
- warnings ??= new List();
- errors ??= new List();
-
- return new ScriptExecutionData(
- id,
- name,
- resourceType,
- systemData,
- scriptCmdletId,
- parameters?.ToList(),
- hiddenParameters?.ToList(),
- failureReason,
- timeout,
- retention,
- submittedOn,
- startedOn,
- finishedOn,
- provisioningState,
- output?.ToList(),
- namedOutputs,
- information?.ToList(),
- warnings?.ToList(),
- errors?.ToList(),
- serializedAdditionalRawData: null);
+ return new AddonHcxProperties(AddonType.HCX, provisioningState, serializedAdditionalRawData: null, offer);
}
/// Initializes a new instance of .
@@ -866,45 +979,53 @@ public static AddonVrProperties AddonVrProperties(AddonProvisioningState? provis
return new AddonVrProperties(AddonType.VR, provisioningState, serializedAdditionalRawData: null, vrsCount);
}
- /// Initializes a new instance of .
- /// The state of the addon provisioning.
- /// The HCX offer, example VMware MaaS Cloud Provider (Enterprise).
- /// A new instance for mocking.
- public static AddonHcxProperties AddonHcxProperties(AddonProvisioningState? provisioningState = null, string offer = null)
+ /// Initializes a new instance of .
+ /// Whether the placement policy is enabled or disabled.
+ /// Display name of the placement policy.
+ /// The provisioning state.
+ /// Virtual machine members list.
+ /// Host members list.
+ /// placement policy affinity type.
+ /// vm-host placement policy affinity strength (should/must).
+ /// placement policy azure hybrid benefit opt-in type.
+ /// A new instance for mocking.
+ public static VmHostPlacementPolicyProperties VmHostPlacementPolicyProperties(PlacementPolicyState? state = null, string displayName = null, PlacementPolicyProvisioningState? provisioningState = null, IEnumerable vmMembers = null, IEnumerable hostMembers = null, AvsPlacementPolicyAffinityType affinityType = default, VmHostPlacementPolicyAffinityStrength? affinityStrength = null, AzureHybridBenefitType? azureHybridBenefitType = null)
{
- return new AddonHcxProperties(AddonType.HCX, provisioningState, serializedAdditionalRawData: null, offer);
- }
+ vmMembers ??= new List();
+ hostMembers ??= new List();
- /// Initializes a new instance of .
- /// The state of the addon provisioning.
- /// The VMware vCenter resource ID.
- /// A new instance for mocking.
- public static AddonArcProperties AddonArcProperties(AddonProvisioningState? provisioningState = null, string vCenter = null)
- {
- return new AddonArcProperties(AddonType.Arc, provisioningState, serializedAdditionalRawData: null, vCenter);
+ return new VmHostPlacementPolicyProperties(
+ PlacementPolicyType.VmHost,
+ state,
+ displayName,
+ provisioningState,
+ serializedAdditionalRawData: null,
+ vmMembers?.ToList(),
+ hostMembers?.ToList(),
+ affinityType,
+ affinityStrength,
+ azureHybridBenefitType);
}
- /// Initializes a new instance of .
- /// Display name of the DHCP entity.
- /// NSX Segments consuming DHCP.
+ /// Initializes a new instance of .
+ /// Whether the placement policy is enabled or disabled.
+ /// Display name of the placement policy.
/// The provisioning state.
- /// NSX revision number.
- /// DHCP Server Address.
- /// DHCP Server Lease Time.
- /// A new instance for mocking.
- public static WorkloadNetworkDhcpServer WorkloadNetworkDhcpServer(string displayName = null, IEnumerable segments = null, WorkloadNetworkDhcpProvisioningState? provisioningState = null, long? revision = null, string serverAddress = null, long? leaseTime = null)
+ /// Virtual machine members list.
+ /// placement policy affinity type.
+ /// A new instance for mocking.
+ public static VmPlacementPolicyProperties VmPlacementPolicyProperties(PlacementPolicyState? state = null, string displayName = null, PlacementPolicyProvisioningState? provisioningState = null, IEnumerable vmMembers = null, AvsPlacementPolicyAffinityType affinityType = default)
{
- segments ??= new List();
+ vmMembers ??= new List();
- return new WorkloadNetworkDhcpServer(
- DhcpTypeEnum.Server,
+ return new VmPlacementPolicyProperties(
+ PlacementPolicyType.VmVm,
+ state,
displayName,
- segments?.ToList(),
provisioningState,
- revision,
serializedAdditionalRawData: null,
- serverAddress,
- leaseTime);
+ vmMembers?.ToList(),
+ affinityType);
}
/// Initializes a new instance of .
@@ -929,53 +1050,181 @@ public static WorkloadNetworkDhcpRelay WorkloadNetworkDhcpRelay(string displayNa
serverAddresses?.ToList());
}
- /// Initializes a new instance of .
- /// Whether the placement policy is enabled or disabled.
- /// Display name of the placement policy.
+ /// Initializes a new instance of .
+ /// Display name of the DHCP entity.
+ /// NSX Segments consuming DHCP.
/// The provisioning state.
- /// Virtual machine members list.
- /// placement policy affinity type.
- /// A new instance for mocking.
- public static VmPlacementPolicyProperties VmPlacementPolicyProperties(PlacementPolicyState? state = null, string displayName = null, PlacementPolicyProvisioningState? provisioningState = null, IEnumerable vmMembers = null, AvsPlacementPolicyAffinityType affinityType = default)
+ /// NSX revision number.
+ /// DHCP Server Address.
+ /// DHCP Server Lease Time.
+ /// A new instance for mocking.
+ public static WorkloadNetworkDhcpServer WorkloadNetworkDhcpServer(string displayName = null, IEnumerable segments = null, WorkloadNetworkDhcpProvisioningState? provisioningState = null, long? revision = null, string serverAddress = null, long? leaseTime = null)
{
- vmMembers ??= new List();
+ segments ??= new List();
- return new VmPlacementPolicyProperties(
- PlacementPolicyType.VmVm,
- state,
+ return new WorkloadNetworkDhcpServer(
+ DhcpTypeEnum.Server,
displayName,
+ segments?.ToList(),
provisioningState,
+ revision,
serializedAdditionalRawData: null,
- vmMembers?.ToList(),
- affinityType);
+ serverAddress,
+ leaseTime);
}
- /// Initializes a new instance of .
- /// Whether the placement policy is enabled or disabled.
- /// Display name of the placement policy.
- /// The provisioning state.
- /// Virtual machine members list.
- /// Host members list.
- /// placement policy affinity type.
- /// vm-host placement policy affinity strength (should/must).
- /// placement policy azure hybrid benefit opt-in type.
- /// A new instance for mocking.
- public static VmHostPlacementPolicyProperties VmHostPlacementPolicyProperties(PlacementPolicyState? state = null, string displayName = null, PlacementPolicyProvisioningState? provisioningState = null, IEnumerable vmMembers = null, IEnumerable hostMembers = null, AvsPlacementPolicyAffinityType affinityType = default, VmHostPlacementPolicyAffinityStrength? affinityStrength = null, AzureHybridBenefitType? azureHybridBenefitType = null)
+ /// Initializes a new instance of .
+ /// Endpoint for the NSX-T Data Center manager.
+ /// Endpoint for Virtual Center Server Appliance.
+ /// Endpoint for the HCX Cloud Manager.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static AvsPrivateCloudEndpoints AvsPrivateCloudEndpoints(string nsxtManager, string vcsa, string hcxCloudManager)
{
- vmMembers ??= new List();
- hostMembers ??= new List();
+ return AvsPrivateCloudEndpoints(nsxtManager: nsxtManager, vcsa: vcsa, hcxCloudManager: hcxCloudManager, nsxtManagerIP: default, vcenterIP: default, hcxCloudManagerIP: default);
+ }
- return new VmHostPlacementPolicyProperties(
- PlacementPolicyType.VmHost,
- state,
- displayName,
- provisioningState,
- serializedAdditionalRawData: null,
- vmMembers?.ToList(),
- hostMembers?.ToList(),
- affinityType,
- affinityStrength,
- azureHybridBenefitType);
+ /// Initializes a new instance of .
+ /// The cluster size.
+ /// The state of the cluster provisioning.
+ /// The identity.
+ /// The hosts.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static AvsManagementCluster AvsManagementCluster(int? clusterSize, AvsPrivateCloudClusterProvisioningState? provisioningState, int? clusterId, IEnumerable hosts)
+ {
+ return AvsManagementCluster(clusterSize: clusterSize, provisioningState: provisioningState, clusterId: clusterId, hosts: hosts, vsanDatastoreName: default);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The state of the datastore provisioning.
+ /// An Azure NetApp Files volume.
+ /// An iSCSI volume.
+ /// The operational status of the datastore.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static AvsPrivateCloudDatastoreData AvsPrivateCloudDatastoreData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AvsPrivateCloudDatastoreProvisioningState? provisioningState, ResourceIdentifier netAppVolumeId, DiskPoolVolume diskPoolVolume, DatastoreStatus? status)
+ {
+ return AvsPrivateCloudDatastoreData(id: id, name: name, resourceType: resourceType, systemData: systemData, provisioningState: provisioningState, netAppVolumeId: netAppVolumeId, diskPoolVolume: diskPoolVolume, elasticSanVolumeTargetId: default, status: status);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The activation key.
+ /// The status of the HCX Enterprise Site.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static HcxEnterpriseSiteData HcxEnterpriseSiteData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string activationKey, HcxEnterpriseSiteStatus? status)
+ {
+ return HcxEnterpriseSiteData(id: id, name: name, resourceType: resourceType, systemData: systemData, provisioningState: default, activationKey: activationKey, status: status);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static WorkloadNetworkData WorkloadNetworkData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData)
+ {
+ return WorkloadNetworkData(id: id, name: name, resourceType: resourceType, systemData: systemData, provisioningState: default);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// Display name of the DHCP entity.
+ /// NSX Gateway Path.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static WorkloadNetworkGatewayData WorkloadNetworkGatewayData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string displayName, string path)
+ {
+ return WorkloadNetworkGatewayData(id: id, name: name, resourceType: resourceType, systemData: systemData, provisioningState: default, displayName: displayName, path: path);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// Display name of the VM.
+ /// Virtual machine type.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static WorkloadNetworkVirtualMachineData WorkloadNetworkVirtualMachineData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string displayName, WorkloadNetworkVmType? vmType)
+ {
+ return WorkloadNetworkVirtualMachineData(id: id, name: name, resourceType: resourceType, systemData: systemData, provisioningState: default, displayName: displayName, vmType: vmType);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The state of the cloud link.
+ /// Identifier of the other private cloud participating in the link.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static AvsCloudLinkData AvsCloudLinkData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AvsCloudLinkStatus? status, ResourceIdentifier linkedCloud)
+ {
+ return AvsCloudLinkData(id: id, name: name, resourceType: resourceType, systemData: systemData, provisioningState: default, status: status, linkedCloud: linkedCloud);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// Display name of the VM.
+ /// Virtual machine managed object reference id.
+ /// Path to virtual machine's folder starting from datacenter virtual machine folder.
+ /// Whether VM DRS-driven movement is restricted (enabled) or not (disabled).
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static AvsPrivateCloudClusterVirtualMachineData AvsPrivateCloudClusterVirtualMachineData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string displayName, string moRefId, string folderPath, VirtualMachineRestrictMovementState? restrictMovement)
+ {
+ return AvsPrivateCloudClusterVirtualMachineData(id: id, name: name, resourceType: resourceType, systemData: systemData, provisioningState: default, displayName: displayName, moRefId: moRefId, folderPath: folderPath, restrictMovement: restrictMovement);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// User friendly description of the package.
+ /// Module version.
+ /// Company that created and supports the package.
+ /// Link to support by the package vendor.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static ScriptPackageData ScriptPackageData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, string version, string company, Uri uri)
+ {
+ return ScriptPackageData(id: id, name: name, resourceType: resourceType, systemData: systemData, provisioningState: default, description: description, version: version, company: company, uri: uri);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// Description of the scripts functionality.
+ /// Recommended time limit for execution.
+ /// Parameters the script will accept.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static ScriptCmdletData ScriptCmdletData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, TimeSpan? timeout, IEnumerable parameters)
+ {
+ return ScriptCmdletData(id: id, name: name, resourceType: resourceType, systemData: systemData, provisioningState: default, description: description, timeout: timeout, audience: default, parameters: parameters);
}
}
}
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkCollection.cs
index 6d91b26ec6f2..c316424f14b0 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkCollection.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkCollection.cs
@@ -52,7 +52,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
}
///
- /// Create or update a cloud link in a private cloud
+ /// Create a CloudLink
///
/// -
/// Request Path
@@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -73,8 +73,8 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
///
/// 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.
- /// Name of the cloud link resource.
- /// A cloud link in the private cloud.
+ /// Name of the cloud link.
+ /// Resource create parameters.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// or is null.
@@ -88,7 +88,7 @@ public virtual async Task> CreateOrUpdateAsyn
try
{
var response = await _avsCloudLinkCloudLinksRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cloudLinkName, data, cancellationToken).ConfigureAwait(false);
- var operation = new AvsArmOperation(new AvsCloudLinkOperationSource(Client), _avsCloudLinkCloudLinksClientDiagnostics, Pipeline, _avsCloudLinkCloudLinksRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cloudLinkName, data).Request, response, OperationFinalStateVia.Location);
+ var operation = new AvsArmOperation(new AvsCloudLinkOperationSource(Client), _avsCloudLinkCloudLinksClientDiagnostics, Pipeline, _avsCloudLinkCloudLinksRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cloudLinkName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
if (waitUntil == WaitUntil.Completed)
await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
return operation;
@@ -101,7 +101,7 @@ public virtual async Task> CreateOrUpdateAsyn
}
///
- /// Create or update a cloud link in a private cloud
+ /// Create a CloudLink
///
/// -
/// Request Path
@@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateAsyn
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -122,8 +122,8 @@ public virtual async Task> CreateOrUpdateAsyn
///
///
/// 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.
- /// Name of the cloud link resource.
- /// A cloud link in the private cloud.
+ /// Name of the cloud link.
+ /// Resource create parameters.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// or is null.
@@ -137,7 +137,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU
try
{
var response = _avsCloudLinkCloudLinksRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cloudLinkName, data, cancellationToken);
- var operation = new AvsArmOperation(new AvsCloudLinkOperationSource(Client), _avsCloudLinkCloudLinksClientDiagnostics, Pipeline, _avsCloudLinkCloudLinksRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cloudLinkName, data).Request, response, OperationFinalStateVia.Location);
+ var operation = new AvsArmOperation(new AvsCloudLinkOperationSource(Client), _avsCloudLinkCloudLinksClientDiagnostics, Pipeline, _avsCloudLinkCloudLinksRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cloudLinkName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
if (waitUntil == WaitUntil.Completed)
operation.WaitForCompletion(cancellationToken);
return operation;
@@ -150,7 +150,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU
}
///
- /// Get an cloud link by name in a private cloud
+ /// Get a CloudLink
///
/// -
/// Request Path
@@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -170,7 +170,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU
///
///
///
- /// Name of the cloud link resource.
+ /// Name of the cloud link.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -195,7 +195,7 @@ public virtual async Task> GetAsync(string cloudL
}
///
- /// Get an cloud link by name in a private cloud
+ /// Get a CloudLink
///
/// -
/// Request Path
@@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string cloudL
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -215,7 +215,7 @@ public virtual async Task> GetAsync(string cloudL
///
///
///
- /// Name of the cloud link resource.
+ /// Name of the cloud link.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -240,7 +240,7 @@ public virtual Response Get(string cloudLinkName, Cancella
}
///
- /// List cloud link in a private cloud
+ /// List CloudLink resources by PrivateCloud
///
/// -
/// Request Path
@@ -252,7 +252,7 @@ public virtual Response Get(string cloudLinkName, Cancella
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -270,7 +270,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken
}
///
- /// List cloud link in a private cloud
+ /// List CloudLink resources by PrivateCloud
///
/// -
/// Request Path
@@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cancellat
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -320,7 +320,7 @@ public virtual Pageable GetAll(CancellationToken cancellat
///
///
///
- /// Name of the cloud link resource.
+ /// Name of the cloud link.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string cloudLinkName, Canc
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string cloudLinkName, Canc
///
///
///
- /// Name of the cloud link resource.
+ /// Name of the cloud link.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -398,7 +398,7 @@ public virtual Response Exists(string cloudLinkName, CancellationToken can
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -406,7 +406,7 @@ public virtual Response Exists(string cloudLinkName, CancellationToken can
///
///
///
- /// Name of the cloud link resource.
+ /// Name of the cloud link.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -443,7 +443,7 @@ public virtual async Task> GetIfExistsAsy
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -451,7 +451,7 @@ public virtual async Task> GetIfExistsAsy
///
///
///
- /// Name of the cloud link resource.
+ /// Name of the cloud link.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkData.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkData.Serialization.cs
index 0ef62e6596ed..87b1a0acd6c4 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkData.Serialization.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkData.Serialization.cs
@@ -39,6 +39,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri
base.JsonModelWriteCore(writer, options);
writer.WritePropertyName("properties"u8);
writer.WriteStartObject();
+ if (options.Format != "W" && Optional.IsDefined(ProvisioningState))
+ {
+ writer.WritePropertyName("provisioningState"u8);
+ writer.WriteStringValue(ProvisioningState.Value.ToString());
+ }
if (options.Format != "W" && Optional.IsDefined(Status))
{
writer.WritePropertyName("status"u8);
@@ -76,6 +81,7 @@ internal static AvsCloudLinkData DeserializeAvsCloudLinkData(JsonElement element
string name = default;
ResourceType type = default;
SystemData systemData = default;
+ AvsCloudLinkProvisioningState? provisioningState = default;
AvsCloudLinkStatus? status = default;
ResourceIdentifier linkedCloud = default;
IDictionary serializedAdditionalRawData = default;
@@ -115,6 +121,15 @@ internal static AvsCloudLinkData DeserializeAvsCloudLinkData(JsonElement element
}
foreach (var property0 in property.Value.EnumerateObject())
{
+ if (property0.NameEquals("provisioningState"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ provisioningState = new AvsCloudLinkProvisioningState(property0.Value.GetString());
+ continue;
+ }
if (property0.NameEquals("status"u8))
{
if (property0.Value.ValueKind == JsonValueKind.Null)
@@ -147,6 +162,7 @@ internal static AvsCloudLinkData DeserializeAvsCloudLinkData(JsonElement element
name,
type,
systemData,
+ provisioningState,
status,
linkedCloud,
serializedAdditionalRawData);
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkData.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkData.cs
index 52ed98ef6539..40557248ca47 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkData.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkData.cs
@@ -61,16 +61,20 @@ public AvsCloudLinkData()
/// The name.
/// The resourceType.
/// The systemData.
+ /// The provisioning state of the resource.
/// The state of the cloud link.
/// Identifier of the other private cloud participating in the link.
/// Keeps track of any properties unknown to the library.
- internal AvsCloudLinkData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AvsCloudLinkStatus? status, ResourceIdentifier linkedCloud, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData)
+ internal AvsCloudLinkData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AvsCloudLinkProvisioningState? provisioningState, AvsCloudLinkStatus? status, ResourceIdentifier linkedCloud, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData)
{
+ ProvisioningState = provisioningState;
Status = status;
LinkedCloud = linkedCloud;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
+ /// The provisioning state of the resource.
+ public AvsCloudLinkProvisioningState? ProvisioningState { get; }
/// The state of the cloud link.
public AvsCloudLinkStatus? Status { get; }
/// Identifier of the other private cloud participating in the link.
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkResource.cs
index 569a2ac75c64..becf6cebb180 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkResource.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkResource.cs
@@ -89,7 +89,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
}
///
- /// Get an cloud link by name in a private cloud
+ /// Get a CloudLink
///
/// -
/// Request Path
@@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -129,7 +129,7 @@ public virtual async Task> GetAsync(CancellationT
}
///
- /// Get an cloud link by name in a private cloud
+ /// Get a CloudLink
///
/// -
/// Request Path
@@ -141,7 +141,7 @@ public virtual async Task> GetAsync(CancellationT
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -169,7 +169,7 @@ public virtual Response Get(CancellationToken cancellation
}
///
- /// Delete a cloud link in a private cloud
+ /// Delete a CloudLink
///
/// -
/// Request Path
@@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancellation
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -211,7 +211,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell
}
///
- /// Delete a cloud link in a private cloud
+ /// Delete a CloudLink
///
/// -
/// Request Path
@@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -253,7 +253,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
}
///
- /// Create or update a cloud link in a private cloud
+ /// Create a CloudLink
///
/// -
/// Request Path
@@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -274,7 +274,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
///
///
/// 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.
- /// A cloud link in the private cloud.
+ /// Resource create parameters.
/// The cancellation token to use.
/// is null.
public virtual async Task> UpdateAsync(WaitUntil waitUntil, AvsCloudLinkData data, CancellationToken cancellationToken = default)
@@ -286,7 +286,7 @@ public virtual async Task> UpdateAsync(WaitUn
try
{
var response = await _avsCloudLinkCloudLinksRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false);
- var operation = new AvsArmOperation(new AvsCloudLinkOperationSource(Client), _avsCloudLinkCloudLinksClientDiagnostics, Pipeline, _avsCloudLinkCloudLinksRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location);
+ var operation = new AvsArmOperation(new AvsCloudLinkOperationSource(Client), _avsCloudLinkCloudLinksClientDiagnostics, Pipeline, _avsCloudLinkCloudLinksRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
if (waitUntil == WaitUntil.Completed)
await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
return operation;
@@ -299,7 +299,7 @@ public virtual async Task> UpdateAsync(WaitUn
}
///
- /// Create or update a cloud link in a private cloud
+ /// Create a CloudLink
///
/// -
/// Request Path
@@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(WaitUn
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -320,7 +320,7 @@ public virtual async Task> UpdateAsync(WaitUn
///
///
/// 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.
- /// A cloud link in the private cloud.
+ /// Resource create parameters.
/// The cancellation token to use.
/// is null.
public virtual ArmOperation Update(WaitUntil waitUntil, AvsCloudLinkData data, CancellationToken cancellationToken = default)
@@ -332,7 +332,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, Av
try
{
var response = _avsCloudLinkCloudLinksRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken);
- var operation = new AvsArmOperation(new AvsCloudLinkOperationSource(Client), _avsCloudLinkCloudLinksClientDiagnostics, Pipeline, _avsCloudLinkCloudLinksRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location);
+ var operation = new AvsArmOperation(new AvsCloudLinkOperationSource(Client), _avsCloudLinkCloudLinksClientDiagnostics, Pipeline, _avsCloudLinkCloudLinksRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
if (waitUntil == WaitUntil.Completed)
operation.WaitForCompletion(cancellationToken);
return operation;
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudAddonCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudAddonCollection.cs
index b3d04e7c069a..2294956f0fa7 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudAddonCollection.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudAddonCollection.cs
@@ -52,7 +52,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
}
///
- /// Create or update a addon in a private cloud
+ /// Create a Addon
///
/// -
/// Request Path
@@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -73,8 +73,8 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
///
/// 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.
- /// Name of the addon for the private cloud.
- /// A addon in the private cloud.
+ /// Name of the addon.
+ /// Resource create parameters.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// or is null.
@@ -88,7 +88,7 @@ public virtual async Task> CreateOrUp
try
{
var response = await _avsPrivateCloudAddonAddonsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, addonName, data, cancellationToken).ConfigureAwait(false);
- var operation = new AvsArmOperation(new AvsPrivateCloudAddonOperationSource(Client), _avsPrivateCloudAddonAddonsClientDiagnostics, Pipeline, _avsPrivateCloudAddonAddonsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, addonName, data).Request, response, OperationFinalStateVia.Location);
+ var operation = new AvsArmOperation(new AvsPrivateCloudAddonOperationSource(Client), _avsPrivateCloudAddonAddonsClientDiagnostics, Pipeline, _avsPrivateCloudAddonAddonsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, addonName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
if (waitUntil == WaitUntil.Completed)
await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
return operation;
@@ -101,7 +101,7 @@ public virtual async Task> CreateOrUp
}
///
- /// Create or update a addon in a private cloud
+ /// Create a Addon
///
/// -
/// Request Path
@@ -113,7 +113,7 @@ public virtual async Task> CreateOrUp
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -122,8 +122,8 @@ public virtual async Task> CreateOrUp
///
///
/// 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.
- /// Name of the addon for the private cloud.
- /// A addon in the private cloud.
+ /// Name of the addon.
+ /// Resource create parameters.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// or is null.
@@ -137,7 +137,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt
try
{
var response = _avsPrivateCloudAddonAddonsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, addonName, data, cancellationToken);
- var operation = new AvsArmOperation(new AvsPrivateCloudAddonOperationSource(Client), _avsPrivateCloudAddonAddonsClientDiagnostics, Pipeline, _avsPrivateCloudAddonAddonsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, addonName, data).Request, response, OperationFinalStateVia.Location);
+ var operation = new AvsArmOperation(new AvsPrivateCloudAddonOperationSource(Client), _avsPrivateCloudAddonAddonsClientDiagnostics, Pipeline, _avsPrivateCloudAddonAddonsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, addonName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
if (waitUntil == WaitUntil.Completed)
operation.WaitForCompletion(cancellationToken);
return operation;
@@ -150,7 +150,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt
}
///
- /// Get an addon by name in a private cloud
+ /// Get a Addon
///
/// -
/// Request Path
@@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -170,7 +170,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt
///
///
///
- /// Name of the addon for the private cloud.
+ /// Name of the addon.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -195,7 +195,7 @@ public virtual async Task> GetAsync(strin
}
///
- /// Get an addon by name in a private cloud
+ /// Get a Addon
///
/// -
/// Request Path
@@ -207,7 +207,7 @@ public virtual async Task> GetAsync(strin
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -215,7 +215,7 @@ public virtual async Task> GetAsync(strin
///
///
///
- /// Name of the addon for the private cloud.
+ /// Name of the addon.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -240,7 +240,7 @@ public virtual Response Get(string addonName, Canc
}
///
- /// List addons in a private cloud
+ /// List Addon resources by PrivateCloud
///
/// -
/// Request Path
@@ -252,7 +252,7 @@ public virtual Response Get(string addonName, Canc
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -270,7 +270,7 @@ public virtual AsyncPageable GetAllAsync(Cancellat
}
///
- /// List addons in a private cloud
+ /// List Addon resources by PrivateCloud
///
/// -
/// Request Path
@@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancellat
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken c
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -320,7 +320,7 @@ public virtual Pageable GetAll(CancellationToken c
///
///
///
- /// Name of the addon for the private cloud.
+ /// Name of the addon.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string addonName, Cancella
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string addonName, Cancella
///
///
///
- /// Name of the addon for the private cloud.
+ /// Name of the addon.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -398,7 +398,7 @@ public virtual Response Exists(string addonName, CancellationToken cancell
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -406,7 +406,7 @@ public virtual Response Exists(string addonName, CancellationToken cancell
///
///
///
- /// Name of the addon for the private cloud.
+ /// Name of the addon.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -443,7 +443,7 @@ public virtual async Task> GetIfE
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -451,7 +451,7 @@ public virtual async Task> GetIfE
///
///
///
- /// Name of the addon for the private cloud.
+ /// Name of the addon.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudAddonData.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudAddonData.cs
index b9d6c3d107b3..ee048fa34e28 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudAddonData.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudAddonData.cs
@@ -62,7 +62,7 @@ public AvsPrivateCloudAddonData()
/// The resourceType.
/// The systemData.
///
- /// The properties of an addon resource
+ /// The resource-specific properties for this resource.
/// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include , , and .
///
@@ -74,7 +74,7 @@ internal AvsPrivateCloudAddonData(ResourceIdentifier id, string name, ResourceTy
}
///
- /// The properties of an addon resource
+ /// The resource-specific properties for this resource.
/// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include , , and .
///
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudAddonResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudAddonResource.cs
index 1a447bad5d29..2f4bbb5d238b 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudAddonResource.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudAddonResource.cs
@@ -89,7 +89,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
}
///
- /// Get an addon by name in a private cloud
+ /// Get a Addon
///
/// -
/// Request Path
@@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -129,7 +129,7 @@ public virtual async Task> GetAsync(Cance
}
///
- /// Get an addon by name in a private cloud
+ /// Get a Addon
///
/// -
/// Request Path
@@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cance
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -169,7 +169,7 @@ public virtual Response Get(CancellationToken canc
}
///
- /// Delete a addon in a private cloud
+ /// Delete a Addon
///
/// -
/// Request Path
@@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken canc
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -211,7 +211,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell
}
///
- /// Delete a addon in a private cloud
+ /// Delete a Addon
///
/// -
/// Request Path
@@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -253,7 +253,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
}
///
- /// Create or update a addon in a private cloud
+ /// Create a Addon
///
/// -
/// Request Path
@@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -274,7 +274,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
///
///
/// 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.
- /// A addon in the private cloud.
+ /// Resource create parameters.
/// The cancellation token to use.
/// is null.
public virtual async Task> UpdateAsync(WaitUntil waitUntil, AvsPrivateCloudAddonData data, CancellationToken cancellationToken = default)
@@ -286,7 +286,7 @@ public virtual async Task> UpdateAsyn
try
{
var response = await _avsPrivateCloudAddonAddonsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false);
- var operation = new AvsArmOperation(new AvsPrivateCloudAddonOperationSource(Client), _avsPrivateCloudAddonAddonsClientDiagnostics, Pipeline, _avsPrivateCloudAddonAddonsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location);
+ var operation = new AvsArmOperation(new AvsPrivateCloudAddonOperationSource(Client), _avsPrivateCloudAddonAddonsClientDiagnostics, Pipeline, _avsPrivateCloudAddonAddonsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
if (waitUntil == WaitUntil.Completed)
await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
return operation;
@@ -299,7 +299,7 @@ public virtual async Task> UpdateAsyn
}
///
- /// Create or update a addon in a private cloud
+ /// Create a Addon
///
/// -
/// Request Path
@@ -311,7 +311,7 @@ public virtual async Task> UpdateAsyn
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -320,7 +320,7 @@ public virtual async Task> UpdateAsyn
///
///
/// 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.
- /// A addon in the private cloud.
+ /// Resource create parameters.
/// The cancellation token to use.
/// is null.
public virtual ArmOperation Update(WaitUntil waitUntil, AvsPrivateCloudAddonData data, CancellationToken cancellationToken = default)
@@ -332,7 +332,7 @@ public virtual ArmOperation Update(WaitUntil waitU
try
{
var response = _avsPrivateCloudAddonAddonsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken);
- var operation = new AvsArmOperation(new AvsPrivateCloudAddonOperationSource(Client), _avsPrivateCloudAddonAddonsClientDiagnostics, Pipeline, _avsPrivateCloudAddonAddonsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location);
+ var operation = new AvsArmOperation(new AvsPrivateCloudAddonOperationSource(Client), _avsPrivateCloudAddonAddonsClientDiagnostics, Pipeline, _avsPrivateCloudAddonAddonsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
if (waitUntil == WaitUntil.Completed)
operation.WaitForCompletion(cancellationToken);
return operation;
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterCollection.cs
index 38c002a6d0da..d18d4e7f6bf4 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterCollection.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterCollection.cs
@@ -52,7 +52,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
}
///
- /// Create or update a cluster in a private cloud
+ /// Create a Cluster
///
/// -
/// Request Path
@@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -73,8 +73,8 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
///
/// 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.
- /// Name of the cluster in the private cloud.
- /// A cluster in the private cloud.
+ /// Name of the cluster.
+ /// Resource create parameters.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// or is null.
@@ -88,7 +88,7 @@ public virtual async Task> CreateOr
try
{
var response = await _avsPrivateCloudClusterClustersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, clusterName, data, cancellationToken).ConfigureAwait(false);
- var operation = new AvsArmOperation(new AvsPrivateCloudClusterOperationSource(Client), _avsPrivateCloudClusterClustersClientDiagnostics, Pipeline, _avsPrivateCloudClusterClustersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, clusterName, data).Request, response, OperationFinalStateVia.Location);
+ var operation = new AvsArmOperation(new AvsPrivateCloudClusterOperationSource(Client), _avsPrivateCloudClusterClustersClientDiagnostics, Pipeline, _avsPrivateCloudClusterClustersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, clusterName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
if (waitUntil == WaitUntil.Completed)
await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
return operation;
@@ -101,7 +101,7 @@ public virtual async Task> CreateOr
}
///
- /// Create or update a cluster in a private cloud
+ /// Create a Cluster
///
/// -
/// Request Path
@@ -113,7 +113,7 @@ public virtual async Task> CreateOr
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -122,8 +122,8 @@ public virtual async Task> CreateOr
///
///
/// 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.
- /// Name of the cluster in the private cloud.
- /// A cluster in the private cloud.
+ /// Name of the cluster.
+ /// Resource create parameters.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// or is null.
@@ -137,7 +137,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU
try
{
var response = _avsPrivateCloudClusterClustersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, clusterName, data, cancellationToken);
- var operation = new AvsArmOperation(new AvsPrivateCloudClusterOperationSource(Client), _avsPrivateCloudClusterClustersClientDiagnostics, Pipeline, _avsPrivateCloudClusterClustersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, clusterName, data).Request, response, OperationFinalStateVia.Location);
+ var operation = new AvsArmOperation(new AvsPrivateCloudClusterOperationSource(Client), _avsPrivateCloudClusterClustersClientDiagnostics, Pipeline, _avsPrivateCloudClusterClustersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, clusterName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
if (waitUntil == WaitUntil.Completed)
operation.WaitForCompletion(cancellationToken);
return operation;
@@ -150,7 +150,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU
}
///
- /// Get a cluster by name in a private cloud
+ /// Get a Cluster
///
/// -
/// Request Path
@@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -170,7 +170,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU
///
///
///
- /// Name of the cluster in the private cloud.
+ /// Name of the cluster.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -195,7 +195,7 @@ public virtual async Task> GetAsync(str
}
///
- /// Get a cluster by name in a private cloud
+ /// Get a Cluster
///
/// -
/// Request Path
@@ -207,7 +207,7 @@ public virtual async Task> GetAsync(str
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -215,7 +215,7 @@ public virtual async Task> GetAsync(str
///
///
///
- /// Name of the cluster in the private cloud.
+ /// Name of the cluster.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -240,7 +240,7 @@ public virtual Response Get(string clusterName,
}
///
- /// List clusters in a private cloud
+ /// List Cluster resources by PrivateCloud
///
/// -
/// Request Path
@@ -252,7 +252,7 @@ public virtual Response Get(string clusterName,
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -270,7 +270,7 @@ public virtual AsyncPageable GetAllAsync(Cancell
}
///
- /// List clusters in a private cloud
+ /// List Cluster resources by PrivateCloud
///
/// -
/// Request Path
@@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancell
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -320,7 +320,7 @@ public virtual Pageable GetAll(CancellationToken
///
///
///
- /// Name of the cluster in the private cloud.
+ /// Name of the cluster.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string clusterName, Cancel
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string clusterName, Cancel
///
///
///
- /// Name of the cluster in the private cloud.
+ /// Name of the cluster.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -398,7 +398,7 @@ public virtual Response Exists(string clusterName, CancellationToken cance
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -406,7 +406,7 @@ public virtual Response Exists(string clusterName, CancellationToken cance
///
///
///
- /// Name of the cluster in the private cloud.
+ /// Name of the cluster.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -443,7 +443,7 @@ public virtual async Task> GetI
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -451,7 +451,7 @@ public virtual async Task> GetI
///
///
///
- /// Name of the cluster in the private cloud.
+ /// Name of the cluster.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterData.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterData.Serialization.cs
index 7e4c90521ff9..d6a71e9c543f 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterData.Serialization.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterData.Serialization.cs
@@ -66,6 +66,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri
}
writer.WriteEndArray();
}
+ if (Optional.IsDefined(VsanDatastoreName))
+ {
+ writer.WritePropertyName("vsanDatastoreName"u8);
+ writer.WriteStringValue(VsanDatastoreName);
+ }
writer.WriteEndObject();
}
@@ -98,6 +103,7 @@ internal static AvsPrivateCloudClusterData DeserializeAvsPrivateCloudClusterData
AvsPrivateCloudClusterProvisioningState? provisioningState = default;
int? clusterId = default;
IList hosts = default;
+ string vsanDatastoreName = default;
IDictionary serializedAdditionalRawData = default;
Dictionary rawDataDictionary = new Dictionary();
foreach (var property in element.EnumerateObject())
@@ -181,6 +187,11 @@ internal static AvsPrivateCloudClusterData DeserializeAvsPrivateCloudClusterData
hosts = array;
continue;
}
+ if (property0.NameEquals("vsanDatastoreName"u8))
+ {
+ vsanDatastoreName = property0.Value.GetString();
+ continue;
+ }
}
continue;
}
@@ -200,6 +211,7 @@ internal static AvsPrivateCloudClusterData DeserializeAvsPrivateCloudClusterData
provisioningState,
clusterId,
hosts ?? new ChangeTrackingList(),
+ vsanDatastoreName,
serializedAdditionalRawData);
}
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterData.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterData.cs
index 6fa36f702d7a..11659771d1c0 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterData.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterData.cs
@@ -52,7 +52,7 @@ public partial class AvsPrivateCloudClusterData : ResourceData
private IDictionary _serializedAdditionalRawData;
/// Initializes a new instance of .
- /// The cluster SKU.
+ /// The SKU (Stock Keeping Unit) assigned to this resource.
/// is null.
public AvsPrivateCloudClusterData(AvsSku sku)
{
@@ -67,19 +67,21 @@ public AvsPrivateCloudClusterData(AvsSku sku)
/// The name.
/// The resourceType.
/// The systemData.
- /// The cluster SKU.
+ /// The SKU (Stock Keeping Unit) assigned to this resource.
/// The cluster size.
/// The state of the cluster provisioning.
/// The identity.
/// The hosts.
+ /// Name of the vsan datastore associated with the cluster.
/// Keeps track of any properties unknown to the library.
- internal AvsPrivateCloudClusterData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AvsSku sku, int? clusterSize, AvsPrivateCloudClusterProvisioningState? provisioningState, int? clusterId, IList hosts, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData)
+ internal AvsPrivateCloudClusterData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AvsSku sku, int? clusterSize, AvsPrivateCloudClusterProvisioningState? provisioningState, int? clusterId, IList hosts, string vsanDatastoreName, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData)
{
Sku = sku;
ClusterSize = clusterSize;
ProvisioningState = provisioningState;
ClusterId = clusterId;
Hosts = hosts;
+ VsanDatastoreName = vsanDatastoreName;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
@@ -88,15 +90,8 @@ internal AvsPrivateCloudClusterData()
{
}
- /// The cluster SKU.
- internal AvsSku Sku { get; set; }
- /// The name of the SKU.
- public string SkuName
- {
- get => Sku is null ? default : Sku.Name;
- set => Sku = new AvsSku(value);
- }
-
+ /// The SKU (Stock Keeping Unit) assigned to this resource.
+ public AvsSku Sku { get; set; }
/// The cluster size.
public int? ClusterSize { get; set; }
/// The state of the cluster provisioning.
@@ -105,5 +100,7 @@ public string SkuName
public int? ClusterId { get; }
/// The hosts.
public IList Hosts { get; }
+ /// Name of the vsan datastore associated with the cluster.
+ public string VsanDatastoreName { get; set; }
}
}
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterResource.cs
index a3c8269dbbd9..5ce32f2aa835 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterResource.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterResource.cs
@@ -98,7 +98,7 @@ public virtual AvsPrivateCloudDatastoreCollection GetAvsPrivateCloudDatastores()
}
///
- /// Get a datastore in a private cloud cluster
+ /// Get a Datastore
///
/// -
/// Request Path
@@ -110,7 +110,7 @@ public virtual AvsPrivateCloudDatastoreCollection GetAvsPrivateCloudDatastores()
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -118,7 +118,7 @@ public virtual AvsPrivateCloudDatastoreCollection GetAvsPrivateCloudDatastores()
///
///
///
- /// Name of the datastore in the private cloud cluster.
+ /// Name of the datastore.
/// The cancellation token to use.
/// is null.
/// is an empty string, and was expected to be non-empty.
@@ -129,7 +129,7 @@ public virtual async Task> GetAvsPriv
}
///
- /// Get a datastore in a private cloud cluster
+ /// Get a Datastore
///
/// -
/// Request Path
@@ -141,7 +141,7 @@ public virtual async Task> GetAvsPriv
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -149,7 +149,7 @@ public virtual async Task> GetAvsPriv
///
///
///
- /// Name of the datastore in the private cloud cluster.
+ /// Name of the datastore.
/// The cancellation token to use.
/// is null.
/// is an empty string, and was expected to be non-empty.
@@ -159,146 +159,146 @@ public virtual Response GetAvsPrivateCloudData
return GetAvsPrivateCloudDatastores().Get(datastoreName, cancellationToken);
}
- /// Gets a collection of AvsPrivateCloudClusterVirtualMachineResources in the AvsPrivateCloudCluster.
- /// An object representing collection of AvsPrivateCloudClusterVirtualMachineResources and their operations over a AvsPrivateCloudClusterVirtualMachineResource.
- public virtual AvsPrivateCloudClusterVirtualMachineCollection GetAvsPrivateCloudClusterVirtualMachines()
+ /// Gets a collection of PlacementPolicyResources in the AvsPrivateCloudCluster.
+ /// An object representing collection of PlacementPolicyResources and their operations over a PlacementPolicyResource.
+ public virtual PlacementPolicyCollection GetPlacementPolicies()
{
- return GetCachedClient(client => new AvsPrivateCloudClusterVirtualMachineCollection(client, Id));
+ return GetCachedClient(client => new PlacementPolicyCollection(client, Id));
}
///
- /// Get a virtual machine by id in a private cloud cluster
+ /// Get a PlacementPolicy
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}
///
/// -
/// Operation Id
- /// VirtualMachines_Get
+ /// PlacementPolicies_Get
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// Virtual Machine identifier.
+ /// Name of the placement policy.
/// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual async Task> GetAvsPrivateCloudClusterVirtualMachineAsync(string virtualMachineId, CancellationToken cancellationToken = default)
+ public virtual async Task> GetPlacementPolicyAsync(string placementPolicyName, CancellationToken cancellationToken = default)
{
- return await GetAvsPrivateCloudClusterVirtualMachines().GetAsync(virtualMachineId, cancellationToken).ConfigureAwait(false);
+ return await GetPlacementPolicies().GetAsync(placementPolicyName, cancellationToken).ConfigureAwait(false);
}
///
- /// Get a virtual machine by id in a private cloud cluster
+ /// Get a PlacementPolicy
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}
///
/// -
/// Operation Id
- /// VirtualMachines_Get
+ /// PlacementPolicies_Get
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// Virtual Machine identifier.
+ /// Name of the placement policy.
/// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual Response GetAvsPrivateCloudClusterVirtualMachine(string virtualMachineId, CancellationToken cancellationToken = default)
+ public virtual Response GetPlacementPolicy(string placementPolicyName, CancellationToken cancellationToken = default)
{
- return GetAvsPrivateCloudClusterVirtualMachines().Get(virtualMachineId, cancellationToken);
+ return GetPlacementPolicies().Get(placementPolicyName, cancellationToken);
}
- /// Gets a collection of PlacementPolicyResources in the AvsPrivateCloudCluster.
- /// An object representing collection of PlacementPolicyResources and their operations over a PlacementPolicyResource.
- public virtual PlacementPolicyCollection GetPlacementPolicies()
+ /// Gets a collection of AvsPrivateCloudClusterVirtualMachineResources in the AvsPrivateCloudCluster.
+ /// An object representing collection of AvsPrivateCloudClusterVirtualMachineResources and their operations over a AvsPrivateCloudClusterVirtualMachineResource.
+ public virtual AvsPrivateCloudClusterVirtualMachineCollection GetAvsPrivateCloudClusterVirtualMachines()
{
- return GetCachedClient(client => new PlacementPolicyCollection(client, Id));
+ return GetCachedClient(client => new AvsPrivateCloudClusterVirtualMachineCollection(client, Id));
}
///
- /// Get a placement policy by name in a private cloud cluster
+ /// Get a VirtualMachine
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}
///
/// -
/// Operation Id
- /// PlacementPolicies_Get
+ /// VirtualMachines_Get
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy.
+ /// ID of the virtual machine.
/// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual async Task> GetPlacementPolicyAsync(string placementPolicyName, CancellationToken cancellationToken = default)
+ public virtual async Task> GetAvsPrivateCloudClusterVirtualMachineAsync(string virtualMachineId, CancellationToken cancellationToken = default)
{
- return await GetPlacementPolicies().GetAsync(placementPolicyName, cancellationToken).ConfigureAwait(false);
+ return await GetAvsPrivateCloudClusterVirtualMachines().GetAsync(virtualMachineId, cancellationToken).ConfigureAwait(false);
}
///
- /// Get a placement policy by name in a private cloud cluster
+ /// Get a VirtualMachine
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}
///
/// -
/// Operation Id
- /// PlacementPolicies_Get
+ /// VirtualMachines_Get
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy.
+ /// ID of the virtual machine.
/// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual Response GetPlacementPolicy(string placementPolicyName, CancellationToken cancellationToken = default)
+ public virtual Response GetAvsPrivateCloudClusterVirtualMachine(string virtualMachineId, CancellationToken cancellationToken = default)
{
- return GetPlacementPolicies().Get(placementPolicyName, cancellationToken);
+ return GetAvsPrivateCloudClusterVirtualMachines().Get(virtualMachineId, cancellationToken);
}
///
- /// Get a cluster by name in a private cloud
+ /// Get a Cluster
///
/// -
/// Request Path
@@ -310,7 +310,7 @@ public virtual Response GetPlacementPolicy(string place
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -338,7 +338,7 @@ public virtual async Task> GetAsync(Can
}
///
- /// Get a cluster by name in a private cloud
+ /// Get a Cluster
///
/// -
/// Request Path
@@ -350,7 +350,7 @@ public virtual async Task> GetAsync(Can
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -378,7 +378,7 @@ public virtual Response Get(CancellationToken ca
}
///
- /// Delete a cluster in a private cloud
+ /// Delete a Cluster
///
/// -
/// Request Path
@@ -390,7 +390,7 @@ public virtual Response Get(CancellationToken ca
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -420,7 +420,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell
}
///
- /// Delete a cluster in a private cloud
+ /// Delete a Cluster
///
/// -
/// Request Path
@@ -432,7 +432,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -462,7 +462,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
}
///
- /// Update a cluster in a private cloud
+ /// Update a Cluster
///
/// -
/// Request Path
@@ -474,7 +474,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -508,7 +508,7 @@ public virtual async Task> UpdateAs
}
///
- /// Update a cluster in a private cloud
+ /// Update a Cluster
///
/// -
/// Request Path
@@ -520,7 +520,7 @@ public virtual async Task> UpdateAs
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -566,7 +566,7 @@ public virtual ArmOperation Update(WaitUntil wai
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -595,7 +595,7 @@ public virtual AsyncPageable GetZonesAsync(CancellationToken can
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineCollection.cs
index 3772e65ec77f..4e8ab0fbb6ab 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineCollection.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineCollection.cs
@@ -52,7 +52,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
}
///
- /// Get a virtual machine by id in a private cloud cluster
+ /// Get a VirtualMachine
///
/// -
/// Request Path
@@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -72,7 +72,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
///
///
- /// Virtual Machine identifier.
+ /// ID of the virtual machine.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -97,7 +97,7 @@ public virtual async Task
}
///
- /// Get a virtual machine by id in a private cloud cluster
+ /// Get a VirtualMachine
///
/// -
/// Request Path
@@ -109,7 +109,7 @@ public virtual async Task
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -117,7 +117,7 @@ public virtual async Task
///
///
///
- /// Virtual Machine identifier.
+ /// ID of the virtual machine.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -142,7 +142,7 @@ public virtual Response Get(string
}
///
- /// List of virtual machines in a private cloud cluster
+ /// List VirtualMachine resources by Cluster
///
/// -
/// Request Path
@@ -154,7 +154,7 @@ public virtual Response Get(string
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -172,7 +172,7 @@ public virtual AsyncPageable GetAl
}
///
- /// List of virtual machines in a private cloud cluster
+ /// List VirtualMachine resources by Cluster
///
/// -
/// Request Path
@@ -184,7 +184,7 @@ public virtual AsyncPageable GetAl
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -214,7 +214,7 @@ public virtual Pageable GetAll(Can
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -222,7 +222,7 @@ public virtual Pageable GetAll(Can
///
///
///
- /// Virtual Machine identifier.
+ /// ID of the virtual machine.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string virtualMachineId, C
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -265,7 +265,7 @@ public virtual async Task> ExistsAsync(string virtualMachineId, C
///
///
///
- /// Virtual Machine identifier.
+ /// ID of the virtual machine.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -300,7 +300,7 @@ public virtual Response Exists(string virtualMachineId, CancellationToken
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -308,7 +308,7 @@ public virtual Response Exists(string virtualMachineId, CancellationToken
///
///
///
- /// Virtual Machine identifier.
+ /// ID of the virtual machine.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -345,7 +345,7 @@ public virtual async Task
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -353,7 +353,7 @@ public virtual async Task
///
///
- /// Virtual Machine identifier.
+ /// ID of the virtual machine.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineData.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineData.Serialization.cs
index c8245287d44c..b489414196be 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineData.Serialization.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineData.Serialization.cs
@@ -39,6 +39,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri
base.JsonModelWriteCore(writer, options);
writer.WritePropertyName("properties"u8);
writer.WriteStartObject();
+ if (options.Format != "W" && Optional.IsDefined(ProvisioningState))
+ {
+ writer.WritePropertyName("provisioningState"u8);
+ writer.WriteStringValue(ProvisioningState.Value.ToString());
+ }
if (options.Format != "W" && Optional.IsDefined(DisplayName))
{
writer.WritePropertyName("displayName"u8);
@@ -86,6 +91,7 @@ internal static AvsPrivateCloudClusterVirtualMachineData DeserializeAvsPrivateCl
string name = default;
ResourceType type = default;
SystemData systemData = default;
+ AvsVirtualMachineProvisioningState? provisioningState = default;
string displayName = default;
string moRefId = default;
string folderPath = default;
@@ -127,6 +133,15 @@ internal static AvsPrivateCloudClusterVirtualMachineData DeserializeAvsPrivateCl
}
foreach (var property0 in property.Value.EnumerateObject())
{
+ if (property0.NameEquals("provisioningState"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ provisioningState = new AvsVirtualMachineProvisioningState(property0.Value.GetString());
+ continue;
+ }
if (property0.NameEquals("displayName"u8))
{
displayName = property0.Value.GetString();
@@ -165,6 +180,7 @@ internal static AvsPrivateCloudClusterVirtualMachineData DeserializeAvsPrivateCl
name,
type,
systemData,
+ provisioningState,
displayName,
moRefId,
folderPath,
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineData.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineData.cs
index 567296d60777..efefe62f2927 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineData.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineData.cs
@@ -61,13 +61,15 @@ public AvsPrivateCloudClusterVirtualMachineData()
/// The name.
/// The resourceType.
/// The systemData.
+ /// The provisioning state of the resource.
/// Display name of the VM.
/// Virtual machine managed object reference id.
/// Path to virtual machine's folder starting from datacenter virtual machine folder.
/// Whether VM DRS-driven movement is restricted (enabled) or not (disabled).
/// Keeps track of any properties unknown to the library.
- internal AvsPrivateCloudClusterVirtualMachineData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string displayName, string moRefId, string folderPath, VirtualMachineRestrictMovementState? restrictMovement, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData)
+ internal AvsPrivateCloudClusterVirtualMachineData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AvsVirtualMachineProvisioningState? provisioningState, string displayName, string moRefId, string folderPath, VirtualMachineRestrictMovementState? restrictMovement, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData)
{
+ ProvisioningState = provisioningState;
DisplayName = displayName;
MoRefId = moRefId;
FolderPath = folderPath;
@@ -75,6 +77,8 @@ internal AvsPrivateCloudClusterVirtualMachineData(ResourceIdentifier id, string
_serializedAdditionalRawData = serializedAdditionalRawData;
}
+ /// The provisioning state of the resource.
+ public AvsVirtualMachineProvisioningState? ProvisioningState { get; }
/// Display name of the VM.
public string DisplayName { get; }
/// Virtual machine managed object reference id.
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineResource.cs
index 111ec87b6b13..577485c2b272 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineResource.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineResource.cs
@@ -91,7 +91,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
}
///
- /// Get a virtual machine by id in a private cloud cluster
+ /// Get a VirtualMachine
///
/// -
/// Request Path
@@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -131,7 +131,7 @@ public virtual async Task
}
///
- /// Get a virtual machine by id in a private cloud cluster
+ /// Get a VirtualMachine
///
/// -
/// Request Path
@@ -143,7 +143,7 @@ public virtual async Task
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -183,7 +183,7 @@ public virtual Response Get(Cancel
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -192,7 +192,7 @@ public virtual Response Get(Cancel
///
///
/// 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.
- /// Whether VM DRS-driven movement is restricted (Enabled) or not (Disabled).
+ /// The body type of the operation request.
/// The cancellation token to use.
/// is null.
public virtual async Task RestrictMovementAsync(WaitUntil waitUntil, AvsPrivateCloudClusterVirtualMachineRestrictMovement restrictMovement, CancellationToken cancellationToken = default)
@@ -229,7 +229,7 @@ public virtual async Task RestrictMovementAsync(WaitUntil waitUnti
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -238,7 +238,7 @@ public virtual async Task RestrictMovementAsync(WaitUntil waitUnti
///
///
/// 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.
- /// Whether VM DRS-driven movement is restricted (Enabled) or not (Disabled).
+ /// The body type of the operation request.
/// The cancellation token to use.
/// is null.
public virtual ArmOperation RestrictMovement(WaitUntil waitUntil, AvsPrivateCloudClusterVirtualMachineRestrictMovement restrictMovement, CancellationToken cancellationToken = default)
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudCollection.cs
index 7f35c79ac508..15f59a39cc8c 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudCollection.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudCollection.cs
@@ -53,7 +53,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
}
///
- /// Create or update a private cloud
+ /// Create a PrivateCloud
///
/// -
/// Request Path
@@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -75,7 +75,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// 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.
/// Name of the private cloud.
- /// The private cloud.
+ /// Resource create parameters.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// or is null.
@@ -89,7 +89,7 @@ public virtual async Task> CreateOrUpdateA
try
{
var response = await _avsPrivateCloudPrivateCloudsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, privateCloudName, data, cancellationToken).ConfigureAwait(false);
- var operation = new AvsArmOperation(new AvsPrivateCloudOperationSource(Client), _avsPrivateCloudPrivateCloudsClientDiagnostics, Pipeline, _avsPrivateCloudPrivateCloudsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, privateCloudName, data).Request, response, OperationFinalStateVia.Location);
+ var operation = new AvsArmOperation(new AvsPrivateCloudOperationSource(Client), _avsPrivateCloudPrivateCloudsClientDiagnostics, Pipeline, _avsPrivateCloudPrivateCloudsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, privateCloudName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
if (waitUntil == WaitUntil.Completed)
await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
return operation;
@@ -102,7 +102,7 @@ public virtual async Task> CreateOrUpdateA
}
///
- /// Create or update a private cloud
+ /// Create a PrivateCloud
///
/// -
/// Request Path
@@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateA
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -124,7 +124,7 @@ public virtual async Task> CreateOrUpdateA
///
/// 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.
/// Name of the private cloud.
- /// The private cloud.
+ /// Resource create parameters.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// or is null.
@@ -138,7 +138,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa
try
{
var response = _avsPrivateCloudPrivateCloudsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, privateCloudName, data, cancellationToken);
- var operation = new AvsArmOperation(new AvsPrivateCloudOperationSource(Client), _avsPrivateCloudPrivateCloudsClientDiagnostics, Pipeline, _avsPrivateCloudPrivateCloudsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, privateCloudName, data).Request, response, OperationFinalStateVia.Location);
+ var operation = new AvsArmOperation(new AvsPrivateCloudOperationSource(Client), _avsPrivateCloudPrivateCloudsClientDiagnostics, Pipeline, _avsPrivateCloudPrivateCloudsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, privateCloudName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
if (waitUntil == WaitUntil.Completed)
operation.WaitForCompletion(cancellationToken);
return operation;
@@ -151,7 +151,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa
}
///
- /// Get a private cloud
+ /// Get a PrivateCloud
///
/// -
/// Request Path
@@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -196,7 +196,7 @@ public virtual async Task> GetAsync(string pri
}
///
- /// Get a private cloud
+ /// Get a PrivateCloud
///
/// -
/// Request Path
@@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string pri
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -241,7 +241,7 @@ public virtual Response Get(string privateCloudName, Ca
}
///
- /// List private clouds in a resource group
+ /// List PrivateCloud resources by resource group
///
/// -
/// Request Path
@@ -253,7 +253,7 @@ public virtual Response Get(string privateCloudName, Ca
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -271,7 +271,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTo
}
///
- /// List private clouds in a resource group
+ /// List PrivateCloud resources by resource group
///
/// -
/// Request Path
@@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTo
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken cancel
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string privateCloudName, C
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -399,7 +399,7 @@ public virtual Response Exists(string privateCloudName, CancellationToken
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -444,7 +444,7 @@ public virtual async Task> GetIfExists
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudData.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudData.Serialization.cs
index 31d003c89a62..221fce422299 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudData.Serialization.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudData.Serialization.cs
@@ -166,6 +166,16 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri
writer.WritePropertyName("nsxPublicIpQuotaRaised"u8);
writer.WriteStringValue(NsxPublicIPQuotaRaised.Value.ToString());
}
+ if (Optional.IsDefined(VirtualNetworkId))
+ {
+ writer.WritePropertyName("virtualNetworkId"u8);
+ writer.WriteStringValue(VirtualNetworkId);
+ }
+ if (Optional.IsDefined(DnsZoneType))
+ {
+ writer.WritePropertyName("dnsZoneType"u8);
+ writer.WriteStringValue(DnsZoneType.Value.ToString());
+ }
writer.WriteEndObject();
}
@@ -217,6 +227,8 @@ internal static AvsPrivateCloudData DeserializeAvsPrivateCloudData(JsonElement e
IReadOnlyList externalCloudLinks = default;
ExpressRouteCircuit secondaryCircuit = default;
NsxPublicIPQuotaRaisedEnum? nsxPublicIPQuotaRaised = default;
+ ResourceIdentifier virtualNetworkId = default;
+ AvsDnsZoneType? dnsZoneType = default;
IDictionary serializedAdditionalRawData = default;
Dictionary rawDataDictionary = new Dictionary();
foreach (var property in element.EnumerateObject())
@@ -457,6 +469,24 @@ internal static AvsPrivateCloudData DeserializeAvsPrivateCloudData(JsonElement e
nsxPublicIPQuotaRaised = new NsxPublicIPQuotaRaisedEnum(property0.Value.GetString());
continue;
}
+ if (property0.NameEquals("virtualNetworkId"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ virtualNetworkId = new ResourceIdentifier(property0.Value.GetString());
+ continue;
+ }
+ if (property0.NameEquals("dnsZoneType"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ dnsZoneType = new AvsDnsZoneType(property0.Value.GetString());
+ continue;
+ }
}
continue;
}
@@ -495,6 +525,8 @@ internal static AvsPrivateCloudData DeserializeAvsPrivateCloudData(JsonElement e
externalCloudLinks ?? new ChangeTrackingList(),
secondaryCircuit,
nsxPublicIPQuotaRaised,
+ virtualNetworkId,
+ dnsZoneType,
serializedAdditionalRawData);
}
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudData.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudData.cs
index 71e1351f7d2d..5c2167c33be7 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudData.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudData.cs
@@ -53,7 +53,7 @@ public partial class AvsPrivateCloudData : TrackedResourceData
/// Initializes a new instance of .
/// The location.
- /// The private cloud SKU.
+ /// The SKU (Stock Keeping Unit) assigned to this resource.
/// is null.
public AvsPrivateCloudData(AzureLocation location, AvsSku sku) : base(location)
{
@@ -72,18 +72,27 @@ public AvsPrivateCloudData(AzureLocation location, AvsSku sku) : base(location)
/// The systemData.
/// The tags.
/// The location.
- /// The private cloud SKU.
- /// The identity of the private cloud, if configured. Current supported identity types: SystemAssigned, None.
+ /// The SKU (Stock Keeping Unit) assigned to this resource.
+ /// The managed service identities assigned to this resource. Current supported identity types: None, SystemAssigned.
/// The default cluster used for management.
/// Connectivity to internet is enabled or disabled.
/// vCenter Single Sign On Identity Sources.
/// Properties describing how the cloud is distributed across availability zones.
/// Customer managed key encryption, can be enabled or disabled.
- /// Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to (A.B.C.D/X).
+ ///
+ /// Array of additional networks noncontiguous with networkBlock. Networks must be
+ /// unique and non-overlapping across VNet in your subscription, on-premise, and
+ /// this privateCloud networkBlock attribute. Make sure the CIDR format conforms to
+ /// (A.B.C.D/X).
+ ///
/// The provisioning state.
/// An ExpressRoute Circuit.
/// The endpoints.
- /// The block of addresses should be unique across VNet in your subscription as well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22.
+ ///
+ /// The block of addresses should be unique across VNet in your subscription as
+ /// well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where
+ /// A,B,C,D are between 0 and 255, and X is between 0 and 22
+ ///
/// Network used to access vCenter Server and NSX-T Manager.
/// Used for virtual machine cold migration, cloning, and snapshot migration.
/// Used for live migration of virtual machines.
@@ -92,10 +101,18 @@ public AvsPrivateCloudData(AzureLocation location, AvsSku sku) : base(location)
/// Thumbprint of the vCenter Server SSL certificate.
/// Thumbprint of the NSX-T Manager SSL certificate.
/// Array of cloud link IDs from other clouds that connect to this one.
- /// A secondary expressRoute circuit from a separate AZ. Only present in a stretched private cloud.
- /// Flag to indicate whether the private cloud has the quota for provisioned NSX Public IP count raised from 64 to 1024.
+ ///
+ /// A secondary expressRoute circuit from a separate AZ. Only present in a
+ /// stretched private cloud
+ ///
+ ///
+ /// Flag to indicate whether the private cloud has the quota for provisioned NSX
+ /// Public IP count raised from 64 to 1024
+ ///
+ /// Azure resource ID of the virtual network.
+ /// The type of DNS zone to use.
/// Keeps track of any properties unknown to the library.
- internal AvsPrivateCloudData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, AvsSku sku, ManagedServiceIdentity identity, AvsManagementCluster managementCluster, InternetConnectivityState? internet, IList identitySources, PrivateCloudAvailabilityProperties availability, CustomerManagedEncryption encryption, IList extendedNetworkBlocks, AvsPrivateCloudProvisioningState? provisioningState, ExpressRouteCircuit circuit, AvsPrivateCloudEndpoints endpoints, string networkBlock, string managementNetwork, string provisioningNetwork, string vMotionNetwork, string vCenterPassword, string nsxtPassword, string vCenterCertificateThumbprint, string nsxtCertificateThumbprint, IReadOnlyList externalCloudLinks, ExpressRouteCircuit secondaryCircuit, NsxPublicIPQuotaRaisedEnum? nsxPublicIPQuotaRaised, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location)
+ internal AvsPrivateCloudData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, AvsSku sku, ManagedServiceIdentity identity, AvsManagementCluster managementCluster, InternetConnectivityState? internet, IList identitySources, PrivateCloudAvailabilityProperties availability, CustomerManagedEncryption encryption, IList extendedNetworkBlocks, AvsPrivateCloudProvisioningState? provisioningState, ExpressRouteCircuit circuit, AvsPrivateCloudEndpoints endpoints, string networkBlock, string managementNetwork, string provisioningNetwork, string vMotionNetwork, string vCenterPassword, string nsxtPassword, string vCenterCertificateThumbprint, string nsxtCertificateThumbprint, IReadOnlyList externalCloudLinks, ExpressRouteCircuit secondaryCircuit, NsxPublicIPQuotaRaisedEnum? nsxPublicIPQuotaRaised, ResourceIdentifier virtualNetworkId, AvsDnsZoneType? dnsZoneType, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location)
{
Sku = sku;
Identity = identity;
@@ -119,6 +136,8 @@ internal AvsPrivateCloudData(ResourceIdentifier id, string name, ResourceType re
ExternalCloudLinks = externalCloudLinks;
SecondaryCircuit = secondaryCircuit;
NsxPublicIPQuotaRaised = nsxPublicIPQuotaRaised;
+ VirtualNetworkId = virtualNetworkId;
+ DnsZoneType = dnsZoneType;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
@@ -127,16 +146,9 @@ internal AvsPrivateCloudData()
{
}
- /// The private cloud SKU.
- internal AvsSku Sku { get; set; }
- /// The name of the SKU.
- public string SkuName
- {
- get => Sku is null ? default : Sku.Name;
- set => Sku = new AvsSku(value);
- }
-
- /// The identity of the private cloud, if configured. Current supported identity types: SystemAssigned, None.
+ /// The SKU (Stock Keeping Unit) assigned to this resource.
+ public AvsSku Sku { get; set; }
+ /// The managed service identities assigned to this resource. Current supported identity types: None, SystemAssigned.
public ManagedServiceIdentity Identity { get; set; }
/// The default cluster used for management.
public AvsManagementCluster ManagementCluster { get; set; }
@@ -148,7 +160,12 @@ public string SkuName
public PrivateCloudAvailabilityProperties Availability { get; set; }
/// Customer managed key encryption, can be enabled or disabled.
public CustomerManagedEncryption Encryption { get; set; }
- /// Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to (A.B.C.D/X).
+ ///
+ /// Array of additional networks noncontiguous with networkBlock. Networks must be
+ /// unique and non-overlapping across VNet in your subscription, on-premise, and
+ /// this privateCloud networkBlock attribute. Make sure the CIDR format conforms to
+ /// (A.B.C.D/X).
+ ///
public IList ExtendedNetworkBlocks { get; }
/// The provisioning state.
public AvsPrivateCloudProvisioningState? ProvisioningState { get; }
@@ -156,7 +173,11 @@ public string SkuName
public ExpressRouteCircuit Circuit { get; set; }
/// The endpoints.
public AvsPrivateCloudEndpoints Endpoints { get; }
- /// The block of addresses should be unique across VNet in your subscription as well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22.
+ ///
+ /// The block of addresses should be unique across VNet in your subscription as
+ /// well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where
+ /// A,B,C,D are between 0 and 255, and X is between 0 and 22
+ ///
public string NetworkBlock { get; set; }
/// Network used to access vCenter Server and NSX-T Manager.
public string ManagementNetwork { get; }
@@ -174,9 +195,19 @@ public string SkuName
public string NsxtCertificateThumbprint { get; }
/// Array of cloud link IDs from other clouds that connect to this one.
public IReadOnlyList ExternalCloudLinks { get; }
- /// A secondary expressRoute circuit from a separate AZ. Only present in a stretched private cloud.
+ ///
+ /// A secondary expressRoute circuit from a separate AZ. Only present in a
+ /// stretched private cloud
+ ///
public ExpressRouteCircuit SecondaryCircuit { get; set; }
- /// Flag to indicate whether the private cloud has the quota for provisioned NSX Public IP count raised from 64 to 1024.
+ ///
+ /// Flag to indicate whether the private cloud has the quota for provisioned NSX
+ /// Public IP count raised from 64 to 1024
+ ///
public NsxPublicIPQuotaRaisedEnum? NsxPublicIPQuotaRaised { get; }
+ /// Azure resource ID of the virtual network.
+ public ResourceIdentifier VirtualNetworkId { get; set; }
+ /// The type of DNS zone to use.
+ public AvsDnsZoneType? DnsZoneType { get; set; }
}
}
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreCollection.cs
index b20e0ef4274e..3f2fb7336422 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreCollection.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreCollection.cs
@@ -52,7 +52,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
}
///
- /// Create or update a datastore in a private cloud cluster
+ /// Create a Datastore
///
/// -
/// Request Path
@@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -73,8 +73,8 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
///
/// 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.
- /// Name of the datastore in the private cloud cluster.
- /// A datastore in a private cloud cluster.
+ /// Name of the datastore.
+ /// Resource create parameters.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// or is null.
@@ -88,7 +88,7 @@ public virtual async Task> Create
try
{
var response = await _avsPrivateCloudDatastoreDatastoresRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, datastoreName, data, cancellationToken).ConfigureAwait(false);
- var operation = new AvsArmOperation(new AvsPrivateCloudDatastoreOperationSource(Client), _avsPrivateCloudDatastoreDatastoresClientDiagnostics, Pipeline, _avsPrivateCloudDatastoreDatastoresRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, datastoreName, data).Request, response, OperationFinalStateVia.Location);
+ var operation = new AvsArmOperation(new AvsPrivateCloudDatastoreOperationSource(Client), _avsPrivateCloudDatastoreDatastoresClientDiagnostics, Pipeline, _avsPrivateCloudDatastoreDatastoresRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, datastoreName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
if (waitUntil == WaitUntil.Completed)
await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
return operation;
@@ -101,7 +101,7 @@ public virtual async Task> Create
}
///
- /// Create or update a datastore in a private cloud cluster
+ /// Create a Datastore
///
/// -
/// Request Path
@@ -113,7 +113,7 @@ public virtual async Task> Create
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -122,8 +122,8 @@ public virtual async Task> Create
///
///
/// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- /// Name of the datastore in the private cloud cluster.
- /// A datastore in a private cloud cluster.
+ /// Name of the datastore.
+ /// Resource create parameters.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// or is null.
@@ -137,7 +137,7 @@ public virtual ArmOperation CreateOrUpdate(Wai
try
{
var response = _avsPrivateCloudDatastoreDatastoresRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, datastoreName, data, cancellationToken);
- var operation = new AvsArmOperation(new AvsPrivateCloudDatastoreOperationSource(Client), _avsPrivateCloudDatastoreDatastoresClientDiagnostics, Pipeline, _avsPrivateCloudDatastoreDatastoresRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, datastoreName, data).Request, response, OperationFinalStateVia.Location);
+ var operation = new AvsArmOperation(new AvsPrivateCloudDatastoreOperationSource(Client), _avsPrivateCloudDatastoreDatastoresClientDiagnostics, Pipeline, _avsPrivateCloudDatastoreDatastoresRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, datastoreName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
if (waitUntil == WaitUntil.Completed)
operation.WaitForCompletion(cancellationToken);
return operation;
@@ -150,7 +150,7 @@ public virtual ArmOperation CreateOrUpdate(Wai
}
///
- /// Get a datastore in a private cloud cluster
+ /// Get a Datastore
///
/// -
/// Request Path
@@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(Wai
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -170,7 +170,7 @@ public virtual ArmOperation CreateOrUpdate(Wai
///
///
///
- /// Name of the datastore in the private cloud cluster.
+ /// Name of the datastore.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -195,7 +195,7 @@ public virtual async Task> GetAsync(s
}
///
- /// Get a datastore in a private cloud cluster
+ /// Get a Datastore
///
/// -
/// Request Path
@@ -207,7 +207,7 @@ public virtual async Task> GetAsync(s
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -215,7 +215,7 @@ public virtual async Task> GetAsync(s
///
///
///
- /// Name of the datastore in the private cloud cluster.
+ /// Name of the datastore.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -240,7 +240,7 @@ public virtual Response Get(string datastoreNa
}
///
- /// List datastores in a private cloud cluster
+ /// List Datastore resources by Cluster
///
/// -
/// Request Path
@@ -252,7 +252,7 @@ public virtual Response Get(string datastoreNa
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -270,7 +270,7 @@ public virtual AsyncPageable GetAllAsync(Cance
}
///
- /// List datastores in a private cloud cluster
+ /// List Datastore resources by Cluster
///
/// -
/// Request Path
@@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cance
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationTok
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -320,7 +320,7 @@ public virtual Pageable GetAll(CancellationTok
///
///
///
- /// Name of the datastore in the private cloud cluster.
+ /// Name of the datastore.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string datastoreName, Canc
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string datastoreName, Canc
///
///
///
- /// Name of the datastore in the private cloud cluster.
+ /// Name of the datastore.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -398,7 +398,7 @@ public virtual Response Exists(string datastoreName, CancellationToken can
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -406,7 +406,7 @@ public virtual Response Exists(string datastoreName, CancellationToken can
///
///
///
- /// Name of the datastore in the private cloud cluster.
+ /// Name of the datastore.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -443,7 +443,7 @@ public virtual async Task> Ge
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -451,7 +451,7 @@ public virtual async Task> Ge
///
///
///
- /// Name of the datastore in the private cloud cluster.
+ /// Name of the datastore.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreData.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreData.Serialization.cs
index 4788dfe2ab37..f65ccb683217 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreData.Serialization.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreData.Serialization.cs
@@ -55,6 +55,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri
writer.WritePropertyName("diskPoolVolume"u8);
writer.WriteObjectValue(DiskPoolVolume, options);
}
+ if (Optional.IsDefined(ElasticSanVolume))
+ {
+ writer.WritePropertyName("elasticSanVolume"u8);
+ writer.WriteObjectValue(ElasticSanVolume, options);
+ }
if (options.Format != "W" && Optional.IsDefined(Status))
{
writer.WritePropertyName("status"u8);
@@ -90,6 +95,7 @@ internal static AvsPrivateCloudDatastoreData DeserializeAvsPrivateCloudDatastore
AvsPrivateCloudDatastoreProvisioningState? provisioningState = default;
WritableSubResource netAppVolume = default;
DiskPoolVolume diskPoolVolume = default;
+ ElasticSanVolume elasticSanVolume = default;
DatastoreStatus? status = default;
IDictionary serializedAdditionalRawData = default;
Dictionary rawDataDictionary = new Dictionary();
@@ -155,6 +161,15 @@ internal static AvsPrivateCloudDatastoreData DeserializeAvsPrivateCloudDatastore
diskPoolVolume = DiskPoolVolume.DeserializeDiskPoolVolume(property0.Value, options);
continue;
}
+ if (property0.NameEquals("elasticSanVolume"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ elasticSanVolume = ElasticSanVolume.DeserializeElasticSanVolume(property0.Value, options);
+ continue;
+ }
if (property0.NameEquals("status"u8))
{
if (property0.Value.ValueKind == JsonValueKind.Null)
@@ -181,6 +196,7 @@ internal static AvsPrivateCloudDatastoreData DeserializeAvsPrivateCloudDatastore
provisioningState,
netAppVolume,
diskPoolVolume,
+ elasticSanVolume,
status,
serializedAdditionalRawData);
}
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreData.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreData.cs
index 1275606325e0..9adf75d2e24d 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreData.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreData.cs
@@ -65,13 +65,15 @@ public AvsPrivateCloudDatastoreData()
/// The state of the datastore provisioning.
/// An Azure NetApp Files volume.
/// An iSCSI volume.
+ /// An Elastic SAN volume.
/// The operational status of the datastore.
/// Keeps track of any properties unknown to the library.
- internal AvsPrivateCloudDatastoreData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AvsPrivateCloudDatastoreProvisioningState? provisioningState, WritableSubResource netAppVolume, DiskPoolVolume diskPoolVolume, DatastoreStatus? status, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData)
+ internal AvsPrivateCloudDatastoreData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AvsPrivateCloudDatastoreProvisioningState? provisioningState, WritableSubResource netAppVolume, DiskPoolVolume diskPoolVolume, ElasticSanVolume elasticSanVolume, DatastoreStatus? status, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData)
{
ProvisioningState = provisioningState;
NetAppVolume = netAppVolume;
DiskPoolVolume = diskPoolVolume;
+ ElasticSanVolume = elasticSanVolume;
Status = status;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
@@ -94,6 +96,15 @@ public ResourceIdentifier NetAppVolumeId
/// An iSCSI volume.
public DiskPoolVolume DiskPoolVolume { get; set; }
+ /// An Elastic SAN volume.
+ internal ElasticSanVolume ElasticSanVolume { get; set; }
+ /// Azure resource ID of the Elastic SAN Volume.
+ public ResourceIdentifier ElasticSanVolumeTargetId
+ {
+ get => ElasticSanVolume is null ? default : ElasticSanVolume.TargetId;
+ set => ElasticSanVolume = new ElasticSanVolume(value);
+ }
+
/// The operational status of the datastore.
public DatastoreStatus? Status { get; }
}
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreResource.cs
index 0c3af8d8fc5d..f5fccd0ff906 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreResource.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreResource.cs
@@ -90,7 +90,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
}
///
- /// Get a datastore in a private cloud cluster
+ /// Get a Datastore
///
/// -
/// Request Path
@@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -130,7 +130,7 @@ public virtual async Task> GetAsync(C
}
///
- /// Get a datastore in a private cloud cluster
+ /// Get a Datastore
///
/// -
/// Request Path
@@ -142,7 +142,7 @@ public virtual async Task> GetAsync(C
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -170,7 +170,7 @@ public virtual Response Get(CancellationToken
}
///
- /// Delete a datastore in a private cloud cluster
+ /// Delete a Datastore
///
/// -
/// Request Path
@@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -212,7 +212,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell
}
///
- /// Delete a datastore in a private cloud cluster
+ /// Delete a Datastore
///
/// -
/// Request Path
@@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -254,7 +254,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
}
///
- /// Create or update a datastore in a private cloud cluster
+ /// Create a Datastore
///
/// -
/// Request Path
@@ -266,7 +266,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -275,7 +275,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
///
///
/// 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.
- /// A datastore in a private cloud cluster.
+ /// Resource create parameters.
/// The cancellation token to use.
/// is null.
public virtual async Task> UpdateAsync(WaitUntil waitUntil, AvsPrivateCloudDatastoreData data, CancellationToken cancellationToken = default)
@@ -287,7 +287,7 @@ public virtual async Task> Update
try
{
var response = await _avsPrivateCloudDatastoreDatastoresRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false);
- var operation = new AvsArmOperation(new AvsPrivateCloudDatastoreOperationSource(Client), _avsPrivateCloudDatastoreDatastoresClientDiagnostics, Pipeline, _avsPrivateCloudDatastoreDatastoresRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location);
+ var operation = new AvsArmOperation(new AvsPrivateCloudDatastoreOperationSource(Client), _avsPrivateCloudDatastoreDatastoresClientDiagnostics, Pipeline, _avsPrivateCloudDatastoreDatastoresRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
if (waitUntil == WaitUntil.Completed)
await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
return operation;
@@ -300,7 +300,7 @@ public virtual async Task> Update
}
///
- /// Create or update a datastore in a private cloud cluster
+ /// Create a Datastore
///
/// -
/// Request Path
@@ -312,7 +312,7 @@ public virtual async Task> Update
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -321,7 +321,7 @@ public virtual async Task> Update
///
///
/// 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.
- /// A datastore in a private cloud cluster.
+ /// Resource create parameters.
/// The cancellation token to use.
/// is null.
public virtual ArmOperation Update(WaitUntil waitUntil, AvsPrivateCloudDatastoreData data, CancellationToken cancellationToken = default)
@@ -333,7 +333,7 @@ public virtual ArmOperation Update(WaitUntil w
try
{
var response = _avsPrivateCloudDatastoreDatastoresRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken);
- var operation = new AvsArmOperation(new AvsPrivateCloudDatastoreOperationSource(Client), _avsPrivateCloudDatastoreDatastoresClientDiagnostics, Pipeline, _avsPrivateCloudDatastoreDatastoresRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location);
+ var operation = new AvsArmOperation(new AvsPrivateCloudDatastoreOperationSource(Client), _avsPrivateCloudDatastoreDatastoresClientDiagnostics, Pipeline, _avsPrivateCloudDatastoreDatastoresRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
if (waitUntil == WaitUntil.Completed)
operation.WaitForCompletion(cancellationToken);
return operation;
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudResource.cs
index aa472612ab22..dc03d06a5dfa 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudResource.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudResource.cs
@@ -90,142 +90,73 @@ internal static void ValidateResourceId(ResourceIdentifier id)
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id));
}
- /// Gets a collection of AvsPrivateCloudClusterResources in the AvsPrivateCloud.
- /// An object representing collection of AvsPrivateCloudClusterResources and their operations over a AvsPrivateCloudClusterResource.
- public virtual AvsPrivateCloudClusterCollection GetAvsPrivateCloudClusters()
- {
- return GetCachedClient(client => new AvsPrivateCloudClusterCollection(client, Id));
- }
-
- ///
- /// Get a cluster by name in a private cloud
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}
- ///
- /// -
- /// Operation Id
- /// Clusters_Get
- ///
- /// -
- /// Default Api Version
- /// 2023-03-01
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// Name of the cluster in the private cloud.
- /// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
- [ForwardsClientCalls]
- public virtual async Task> GetAvsPrivateCloudClusterAsync(string clusterName, CancellationToken cancellationToken = default)
- {
- return await GetAvsPrivateCloudClusters().GetAsync(clusterName, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Get a cluster by name in a private cloud
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}
- ///
- /// -
- /// Operation Id
- /// Clusters_Get
- ///
- /// -
- /// Default Api Version
- /// 2023-03-01
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// Name of the cluster in the private cloud.
- /// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
- [ForwardsClientCalls]
- public virtual Response GetAvsPrivateCloudCluster(string clusterName, CancellationToken cancellationToken = default)
- {
- return GetAvsPrivateCloudClusters().Get(clusterName, cancellationToken);
- }
-
- /// Gets a collection of HcxEnterpriseSiteResources in the AvsPrivateCloud.
- /// An object representing collection of HcxEnterpriseSiteResources and their operations over a HcxEnterpriseSiteResource.
- public virtual HcxEnterpriseSiteCollection GetHcxEnterpriseSites()
+ /// Gets a collection of AvsPrivateCloudAddonResources in the AvsPrivateCloud.
+ /// An object representing collection of AvsPrivateCloudAddonResources and their operations over a AvsPrivateCloudAddonResource.
+ public virtual AvsPrivateCloudAddonCollection GetAvsPrivateCloudAddons()
{
- return GetCachedClient(client => new HcxEnterpriseSiteCollection(client, Id));
+ return GetCachedClient(client => new AvsPrivateCloudAddonCollection(client, Id));
}
///
- /// Get an HCX on-premises key by name in a private cloud
+ /// Get a Addon
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/hcxEnterpriseSites/{hcxEnterpriseSiteName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}
///
/// -
/// Operation Id
- /// HcxEnterpriseSites_Get
+ /// Addons_Get
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// Name of the HCX Enterprise Site in the private cloud.
+ /// Name of the addon.
/// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual async Task> GetHcxEnterpriseSiteAsync(string hcxEnterpriseSiteName, CancellationToken cancellationToken = default)
+ public virtual async Task> GetAvsPrivateCloudAddonAsync(string addonName, CancellationToken cancellationToken = default)
{
- return await GetHcxEnterpriseSites().GetAsync(hcxEnterpriseSiteName, cancellationToken).ConfigureAwait(false);
+ return await GetAvsPrivateCloudAddons().GetAsync(addonName, cancellationToken).ConfigureAwait(false);
}
///
- /// Get an HCX on-premises key by name in a private cloud
+ /// Get a Addon
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/hcxEnterpriseSites/{hcxEnterpriseSiteName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}
///
/// -
/// Operation Id
- /// HcxEnterpriseSites_Get
+ /// Addons_Get
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// Name of the HCX Enterprise Site in the private cloud.
+ /// Name of the addon.
/// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual Response GetHcxEnterpriseSite(string hcxEnterpriseSiteName, CancellationToken cancellationToken = default)
+ public virtual Response GetAvsPrivateCloudAddon(string addonName, CancellationToken cancellationToken = default)
{
- return GetHcxEnterpriseSites().Get(hcxEnterpriseSiteName, cancellationToken);
+ return GetAvsPrivateCloudAddons().Get(addonName, cancellationToken);
}
/// Gets a collection of ExpressRouteAuthorizationResources in the AvsPrivateCloud.
@@ -236,7 +167,7 @@ public virtual ExpressRouteAuthorizationCollection GetExpressRouteAuthorizations
}
///
- /// Get an ExpressRoute Circuit Authorization by name in a private cloud
+ /// Get a ExpressRouteAuthorization
///
/// -
/// Request Path
@@ -248,7 +179,7 @@ public virtual ExpressRouteAuthorizationCollection GetExpressRouteAuthorizations
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -256,7 +187,7 @@ public virtual ExpressRouteAuthorizationCollection GetExpressRouteAuthorizations
///
///
///
- /// Name of the ExpressRoute Circuit Authorization in the private cloud.
+ /// Name of the ExpressRoute Circuit Authorization.
/// The cancellation token to use.
/// is null.
/// is an empty string, and was expected to be non-empty.
@@ -267,7 +198,7 @@ public virtual async Task> GetExpres
}
///
- /// Get an ExpressRoute Circuit Authorization by name in a private cloud
+ /// Get a ExpressRouteAuthorization
///
/// -
/// Request Path
@@ -279,7 +210,7 @@ public virtual async Task> GetExpres
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -287,7 +218,7 @@ public virtual async Task> GetExpres
///
///
///
- /// Name of the ExpressRoute Circuit Authorization in the private cloud.
+ /// Name of the ExpressRoute Circuit Authorization.
/// The cancellation token to use.
/// is null.
/// is an empty string, and was expected to be non-empty.
@@ -297,897 +228,356 @@ public virtual Response GetExpressRouteAuthor
return GetExpressRouteAuthorizations().Get(authorizationName, cancellationToken);
}
- /// Gets a collection of GlobalReachConnectionResources in the AvsPrivateCloud.
- /// An object representing collection of GlobalReachConnectionResources and their operations over a GlobalReachConnectionResource.
- public virtual GlobalReachConnectionCollection GetGlobalReachConnections()
- {
- return GetCachedClient(client => new GlobalReachConnectionCollection(client, Id));
- }
-
- ///
- /// Get a global reach connection by name in a private cloud
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}
- ///
- /// -
- /// Operation Id
- /// GlobalReachConnections_Get
- ///
- /// -
- /// Default Api Version
- /// 2023-03-01
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// Name of the global reach connection in the private cloud.
- /// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
- [ForwardsClientCalls]
- public virtual async Task> GetGlobalReachConnectionAsync(string globalReachConnectionName, CancellationToken cancellationToken = default)
- {
- return await GetGlobalReachConnections().GetAsync(globalReachConnectionName, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Get a global reach connection by name in a private cloud
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}
- ///
- /// -
- /// Operation Id
- /// GlobalReachConnections_Get
- ///
- /// -
- /// Default Api Version
- /// 2023-03-01
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// Name of the global reach connection in the private cloud.
- /// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
- [ForwardsClientCalls]
- public virtual Response GetGlobalReachConnection(string globalReachConnectionName, CancellationToken cancellationToken = default)
- {
- return GetGlobalReachConnections().Get(globalReachConnectionName, cancellationToken);
- }
-
- /// Gets a collection of WorkloadNetworkResources in the AvsPrivateCloud.
- /// An object representing collection of WorkloadNetworkResources and their operations over a WorkloadNetworkResource.
- public virtual WorkloadNetworkCollection GetWorkloadNetworks()
- {
- return GetCachedClient(client => new WorkloadNetworkCollection(client, Id));
- }
-
- ///
- /// Get a private cloud workload network.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}
- ///
- /// -
- /// Operation Id
- /// WorkloadNetworks_Get
- ///
- /// -
- /// Default Api Version
- /// 2023-03-01
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// Name for the workload network in the private cloud.
- /// The cancellation token to use.
- [ForwardsClientCalls]
- public virtual async Task> GetWorkloadNetworkAsync(WorkloadNetworkName workloadNetworkName, CancellationToken cancellationToken = default)
- {
- return await GetWorkloadNetworks().GetAsync(workloadNetworkName, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Get a private cloud workload network.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}
- ///
- /// -
- /// Operation Id
- /// WorkloadNetworks_Get
- ///
- /// -
- /// Default Api Version
- /// 2023-03-01
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// Name for the workload network in the private cloud.
- /// The cancellation token to use.
- [ForwardsClientCalls]
- public virtual Response GetWorkloadNetwork(WorkloadNetworkName workloadNetworkName, CancellationToken cancellationToken = default)
- {
- return GetWorkloadNetworks().Get(workloadNetworkName, cancellationToken);
- }
-
- /// Gets a collection of WorkloadNetworkSegmentResources in the AvsPrivateCloud.
- /// An object representing collection of WorkloadNetworkSegmentResources and their operations over a WorkloadNetworkSegmentResource.
- public virtual WorkloadNetworkSegmentCollection GetWorkloadNetworkSegments()
- {
- return GetCachedClient(client => new WorkloadNetworkSegmentCollection(client, Id));
- }
-
- ///
- /// Get a segment by id in a private cloud workload network.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}
- ///
- /// -
- /// Operation Id
- /// WorkloadNetworks_GetSegment
- ///
- /// -
- /// Default Api Version
- /// 2023-03-01
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// NSX Segment identifier. Generally the same as the Segment's display name.
- /// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
- [ForwardsClientCalls]
- public virtual async Task> GetWorkloadNetworkSegmentAsync(string segmentId, CancellationToken cancellationToken = default)
- {
- return await GetWorkloadNetworkSegments().GetAsync(segmentId, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Get a segment by id in a private cloud workload network.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}
- ///
- /// -
- /// Operation Id
- /// WorkloadNetworks_GetSegment
- ///
- /// -
- /// Default Api Version
- /// 2023-03-01
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// NSX Segment identifier. Generally the same as the Segment's display name.
- /// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
- [ForwardsClientCalls]
- public virtual Response GetWorkloadNetworkSegment(string segmentId, CancellationToken cancellationToken = default)
- {
- return GetWorkloadNetworkSegments().Get(segmentId, cancellationToken);
- }
-
- /// Gets a collection of WorkloadNetworkDhcpResources in the AvsPrivateCloud.
- /// An object representing collection of WorkloadNetworkDhcpResources and their operations over a WorkloadNetworkDhcpResource.
- public virtual WorkloadNetworkDhcpCollection GetWorkloadNetworkDhcps()
- {
- return GetCachedClient(client => new WorkloadNetworkDhcpCollection(client, Id));
- }
-
- ///
- /// Get dhcp by id in a private cloud workload network.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}
- ///
- /// -
- /// Operation Id
- /// WorkloadNetworks_GetDhcp
- ///
- /// -
- /// Default Api Version
- /// 2023-03-01
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// NSX DHCP identifier. Generally the same as the DHCP display name.
- /// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
- [ForwardsClientCalls]
- public virtual async Task> GetWorkloadNetworkDhcpAsync(string dhcpId, CancellationToken cancellationToken = default)
- {
- return await GetWorkloadNetworkDhcps().GetAsync(dhcpId, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Get dhcp by id in a private cloud workload network.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}
- ///
- /// -
- /// Operation Id
- /// WorkloadNetworks_GetDhcp
- ///
- /// -
- /// Default Api Version
- /// 2023-03-01
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// NSX DHCP identifier. Generally the same as the DHCP display name.
- /// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
- [ForwardsClientCalls]
- public virtual Response GetWorkloadNetworkDhcp(string dhcpId, CancellationToken cancellationToken = default)
- {
- return GetWorkloadNetworkDhcps().Get(dhcpId, cancellationToken);
- }
-
- /// Gets a collection of WorkloadNetworkGatewayResources in the AvsPrivateCloud.
- /// An object representing collection of WorkloadNetworkGatewayResources and their operations over a WorkloadNetworkGatewayResource.
- public virtual WorkloadNetworkGatewayCollection GetWorkloadNetworkGateways()
- {
- return GetCachedClient(client => new WorkloadNetworkGatewayCollection(client, Id));
- }
-
- ///
- /// Get a gateway by id in a private cloud workload network.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways/{gatewayId}
- ///
- /// -
- /// Operation Id
- /// WorkloadNetworks_GetGateway
- ///
- /// -
- /// Default Api Version
- /// 2023-03-01
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// NSX Gateway identifier. Generally the same as the Gateway's display name.
- /// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
- [ForwardsClientCalls]
- public virtual async Task> GetWorkloadNetworkGatewayAsync(string gatewayId, CancellationToken cancellationToken = default)
- {
- return await GetWorkloadNetworkGateways().GetAsync(gatewayId, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Get a gateway by id in a private cloud workload network.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways/{gatewayId}
- ///
- /// -
- /// Operation Id
- /// WorkloadNetworks_GetGateway
- ///
- /// -
- /// Default Api Version
- /// 2023-03-01
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// NSX Gateway identifier. Generally the same as the Gateway's display name.
- /// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
- [ForwardsClientCalls]
- public virtual Response GetWorkloadNetworkGateway(string gatewayId, CancellationToken cancellationToken = default)
- {
- return GetWorkloadNetworkGateways().Get(gatewayId, cancellationToken);
- }
-
- /// Gets a collection of WorkloadNetworkPortMirroringProfileResources in the AvsPrivateCloud.
- /// An object representing collection of WorkloadNetworkPortMirroringProfileResources and their operations over a WorkloadNetworkPortMirroringProfileResource.
- public virtual WorkloadNetworkPortMirroringProfileCollection GetWorkloadNetworkPortMirroringProfiles()
- {
- return GetCachedClient(client => new WorkloadNetworkPortMirroringProfileCollection(client, Id));
- }
-
- ///
- /// Get a port mirroring profile by id in a private cloud workload network.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}
- ///
- /// -
- /// Operation Id
- /// WorkloadNetworks_GetPortMirroring
- ///
- /// -
- /// Default Api Version
- /// 2023-03-01
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name.
- /// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
- [ForwardsClientCalls]
- public virtual async Task> GetWorkloadNetworkPortMirroringProfileAsync(string portMirroringId, CancellationToken cancellationToken = default)
- {
- return await GetWorkloadNetworkPortMirroringProfiles().GetAsync(portMirroringId, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Get a port mirroring profile by id in a private cloud workload network.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}
- ///
- /// -
- /// Operation Id
- /// WorkloadNetworks_GetPortMirroring
- ///
- /// -
- /// Default Api Version
- /// 2023-03-01
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name.
- /// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
- [ForwardsClientCalls]
- public virtual Response GetWorkloadNetworkPortMirroringProfile(string portMirroringId, CancellationToken cancellationToken = default)
- {
- return GetWorkloadNetworkPortMirroringProfiles().Get(portMirroringId, cancellationToken);
- }
-
- /// Gets a collection of WorkloadNetworkVmGroupResources in the AvsPrivateCloud.
- /// An object representing collection of WorkloadNetworkVmGroupResources and their operations over a WorkloadNetworkVmGroupResource.
- public virtual WorkloadNetworkVmGroupCollection GetWorkloadNetworkVmGroups()
- {
- return GetCachedClient(client => new WorkloadNetworkVmGroupCollection(client, Id));
- }
-
- ///
- /// Get a vm group by id in a private cloud workload network.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}
- ///
- /// -
- /// Operation Id
- /// WorkloadNetworks_GetVmGroup
- ///
- /// -
- /// Default Api Version
- /// 2023-03-01
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// NSX VM Group identifier. Generally the same as the VM Group's display name.
- /// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
- [ForwardsClientCalls]
- public virtual async Task> GetWorkloadNetworkVmGroupAsync(string vmGroupId, CancellationToken cancellationToken = default)
- {
- return await GetWorkloadNetworkVmGroups().GetAsync(vmGroupId, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Get a vm group by id in a private cloud workload network.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}
- ///
- /// -
- /// Operation Id
- /// WorkloadNetworks_GetVmGroup
- ///
- /// -
- /// Default Api Version
- /// 2023-03-01
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// NSX VM Group identifier. Generally the same as the VM Group's display name.
- /// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
- [ForwardsClientCalls]
- public virtual Response GetWorkloadNetworkVmGroup(string vmGroupId, CancellationToken cancellationToken = default)
- {
- return GetWorkloadNetworkVmGroups().Get(vmGroupId, cancellationToken);
- }
-
- /// Gets a collection of WorkloadNetworkVirtualMachineResources in the AvsPrivateCloud.
- /// An object representing collection of WorkloadNetworkVirtualMachineResources and their operations over a WorkloadNetworkVirtualMachineResource.
- public virtual WorkloadNetworkVirtualMachineCollection GetWorkloadNetworkVirtualMachines()
- {
- return GetCachedClient(client => new WorkloadNetworkVirtualMachineCollection(client, Id));
- }
-
- ///
- /// Get a virtual machine by id in a private cloud workload network.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines/{virtualMachineId}
- ///
- /// -
- /// Operation Id
- /// WorkloadNetworks_GetVirtualMachine
- ///
- /// -
- /// Default Api Version
- /// 2023-03-01
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// Virtual Machine identifier.
- /// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
- [ForwardsClientCalls]
- public virtual async Task> GetWorkloadNetworkVirtualMachineAsync(string virtualMachineId, CancellationToken cancellationToken = default)
- {
- return await GetWorkloadNetworkVirtualMachines().GetAsync(virtualMachineId, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Get a virtual machine by id in a private cloud workload network.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines/{virtualMachineId}
- ///
- /// -
- /// Operation Id
- /// WorkloadNetworks_GetVirtualMachine
- ///
- /// -
- /// Default Api Version
- /// 2023-03-01
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// Virtual Machine identifier.
- /// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
- [ForwardsClientCalls]
- public virtual Response GetWorkloadNetworkVirtualMachine(string virtualMachineId, CancellationToken cancellationToken = default)
- {
- return GetWorkloadNetworkVirtualMachines().Get(virtualMachineId, cancellationToken);
- }
-
- /// Gets a collection of WorkloadNetworkDnsServiceResources in the AvsPrivateCloud.
- /// An object representing collection of WorkloadNetworkDnsServiceResources and their operations over a WorkloadNetworkDnsServiceResource.
- public virtual WorkloadNetworkDnsServiceCollection GetWorkloadNetworkDnsServices()
+ /// Gets a collection of AvsCloudLinkResources in the AvsPrivateCloud.
+ /// An object representing collection of AvsCloudLinkResources and their operations over a AvsCloudLinkResource.
+ public virtual AvsCloudLinkCollection GetAvsCloudLinks()
{
- return GetCachedClient(client => new WorkloadNetworkDnsServiceCollection(client, Id));
+ return GetCachedClient(client => new AvsCloudLinkCollection(client, Id));
}
///
- /// Get a DNS service by id in a private cloud workload network.
+ /// Get a CloudLink
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}
///
/// -
/// Operation Id
- /// WorkloadNetworks_GetDnsService
+ /// CloudLinks_Get
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// NSX DNS Service identifier. Generally the same as the DNS Service's display name.
+ /// Name of the cloud link.
/// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual async Task> GetWorkloadNetworkDnsServiceAsync(string dnsServiceId, CancellationToken cancellationToken = default)
+ public virtual async Task> GetAvsCloudLinkAsync(string cloudLinkName, CancellationToken cancellationToken = default)
{
- return await GetWorkloadNetworkDnsServices().GetAsync(dnsServiceId, cancellationToken).ConfigureAwait(false);
+ return await GetAvsCloudLinks().GetAsync(cloudLinkName, cancellationToken).ConfigureAwait(false);
}
///
- /// Get a DNS service by id in a private cloud workload network.
+ /// Get a CloudLink
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}
///
/// -
/// Operation Id
- /// WorkloadNetworks_GetDnsService
+ /// CloudLinks_Get
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// NSX DNS Service identifier. Generally the same as the DNS Service's display name.
+ /// Name of the cloud link.
/// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual Response GetWorkloadNetworkDnsService(string dnsServiceId, CancellationToken cancellationToken = default)
+ public virtual Response GetAvsCloudLink(string cloudLinkName, CancellationToken cancellationToken = default)
{
- return GetWorkloadNetworkDnsServices().Get(dnsServiceId, cancellationToken);
+ return GetAvsCloudLinks().Get(cloudLinkName, cancellationToken);
}
- /// Gets a collection of WorkloadNetworkDnsZoneResources in the AvsPrivateCloud.
- /// An object representing collection of WorkloadNetworkDnsZoneResources and their operations over a WorkloadNetworkDnsZoneResource.
- public virtual WorkloadNetworkDnsZoneCollection GetWorkloadNetworkDnsZones()
+ /// Gets a collection of AvsPrivateCloudClusterResources in the AvsPrivateCloud.
+ /// An object representing collection of AvsPrivateCloudClusterResources and their operations over a AvsPrivateCloudClusterResource.
+ public virtual AvsPrivateCloudClusterCollection GetAvsPrivateCloudClusters()
{
- return GetCachedClient(client => new WorkloadNetworkDnsZoneCollection(client, Id));
+ return GetCachedClient(client => new AvsPrivateCloudClusterCollection(client, Id));
}
///
- /// Get a DNS zone by id in a private cloud workload network.
+ /// Get a Cluster
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}
///
/// -
/// Operation Id
- /// WorkloadNetworks_GetDnsZone
+ /// Clusters_Get
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name.
+ /// Name of the cluster.
/// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual async Task> GetWorkloadNetworkDnsZoneAsync(string dnsZoneId, CancellationToken cancellationToken = default)
+ public virtual async Task> GetAvsPrivateCloudClusterAsync(string clusterName, CancellationToken cancellationToken = default)
{
- return await GetWorkloadNetworkDnsZones().GetAsync(dnsZoneId, cancellationToken).ConfigureAwait(false);
+ return await GetAvsPrivateCloudClusters().GetAsync(clusterName, cancellationToken).ConfigureAwait(false);
}
///
- /// Get a DNS zone by id in a private cloud workload network.
+ /// Get a Cluster
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}
///
/// -
/// Operation Id
- /// WorkloadNetworks_GetDnsZone
+ /// Clusters_Get
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name.
+ /// Name of the cluster.
/// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual Response GetWorkloadNetworkDnsZone(string dnsZoneId, CancellationToken cancellationToken = default)
+ public virtual Response GetAvsPrivateCloudCluster(string clusterName, CancellationToken cancellationToken = default)
{
- return GetWorkloadNetworkDnsZones().Get(dnsZoneId, cancellationToken);
+ return GetAvsPrivateCloudClusters().Get(clusterName, cancellationToken);
}
- /// Gets a collection of WorkloadNetworkPublicIPResources in the AvsPrivateCloud.
- /// An object representing collection of WorkloadNetworkPublicIPResources and their operations over a WorkloadNetworkPublicIPResource.
- public virtual WorkloadNetworkPublicIPCollection GetWorkloadNetworkPublicIPs()
+ /// Gets a collection of GlobalReachConnectionResources in the AvsPrivateCloud.
+ /// An object representing collection of GlobalReachConnectionResources and their operations over a GlobalReachConnectionResource.
+ public virtual GlobalReachConnectionCollection GetGlobalReachConnections()
{
- return GetCachedClient(client => new WorkloadNetworkPublicIPCollection(client, Id));
+ return GetCachedClient(client => new GlobalReachConnectionCollection(client, Id));
}
///
- /// Get a Public IP Block by id in a private cloud workload network.
+ /// Get a GlobalReachConnection
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}
///
/// -
/// Operation Id
- /// WorkloadNetworks_GetPublicIP
+ /// GlobalReachConnections_Get
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name.
+ /// Name of the global reach connection.
/// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual async Task> GetWorkloadNetworkPublicIPAsync(string publicIPId, CancellationToken cancellationToken = default)
+ public virtual async Task> GetGlobalReachConnectionAsync(string globalReachConnectionName, CancellationToken cancellationToken = default)
{
- return await GetWorkloadNetworkPublicIPs().GetAsync(publicIPId, cancellationToken).ConfigureAwait(false);
+ return await GetGlobalReachConnections().GetAsync(globalReachConnectionName, cancellationToken).ConfigureAwait(false);
}
///
- /// Get a Public IP Block by id in a private cloud workload network.
+ /// Get a GlobalReachConnection
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}
///
/// -
/// Operation Id
- /// WorkloadNetworks_GetPublicIP
+ /// GlobalReachConnections_Get
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name.
+ /// Name of the global reach connection.
/// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual Response GetWorkloadNetworkPublicIP(string publicIPId, CancellationToken cancellationToken = default)
+ public virtual Response GetGlobalReachConnection(string globalReachConnectionName, CancellationToken cancellationToken = default)
{
- return GetWorkloadNetworkPublicIPs().Get(publicIPId, cancellationToken);
+ return GetGlobalReachConnections().Get(globalReachConnectionName, cancellationToken);
}
- /// Gets a collection of AvsCloudLinkResources in the AvsPrivateCloud.
- /// An object representing collection of AvsCloudLinkResources and their operations over a AvsCloudLinkResource.
- public virtual AvsCloudLinkCollection GetAvsCloudLinks()
+ /// Gets a collection of HcxEnterpriseSiteResources in the AvsPrivateCloud.
+ /// An object representing collection of HcxEnterpriseSiteResources and their operations over a HcxEnterpriseSiteResource.
+ public virtual HcxEnterpriseSiteCollection GetHcxEnterpriseSites()
{
- return GetCachedClient(client => new AvsCloudLinkCollection(client, Id));
+ return GetCachedClient(client => new HcxEnterpriseSiteCollection(client, Id));
}
///
- /// Get an cloud link by name in a private cloud
+ /// Get a HcxEnterpriseSite
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/hcxEnterpriseSites/{hcxEnterpriseSiteName}
///
/// -
/// Operation Id
- /// CloudLinks_Get
+ /// HcxEnterpriseSites_Get
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// Name of the cloud link resource.
+ /// Name of the HCX Enterprise Site.
/// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual async Task> GetAvsCloudLinkAsync(string cloudLinkName, CancellationToken cancellationToken = default)
+ public virtual async Task> GetHcxEnterpriseSiteAsync(string hcxEnterpriseSiteName, CancellationToken cancellationToken = default)
{
- return await GetAvsCloudLinks().GetAsync(cloudLinkName, cancellationToken).ConfigureAwait(false);
+ return await GetHcxEnterpriseSites().GetAsync(hcxEnterpriseSiteName, cancellationToken).ConfigureAwait(false);
}
///
- /// Get an cloud link by name in a private cloud
+ /// Get a HcxEnterpriseSite
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/hcxEnterpriseSites/{hcxEnterpriseSiteName}
///
/// -
/// Operation Id
- /// CloudLinks_Get
+ /// HcxEnterpriseSites_Get
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// Name of the cloud link resource.
+ /// Name of the HCX Enterprise Site.
/// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual Response GetAvsCloudLink(string cloudLinkName, CancellationToken cancellationToken = default)
+ public virtual Response GetHcxEnterpriseSite(string hcxEnterpriseSiteName, CancellationToken cancellationToken = default)
{
- return GetAvsCloudLinks().Get(cloudLinkName, cancellationToken);
+ return GetHcxEnterpriseSites().Get(hcxEnterpriseSiteName, cancellationToken);
}
- /// Gets a collection of AvsPrivateCloudAddonResources in the AvsPrivateCloud.
- /// An object representing collection of AvsPrivateCloudAddonResources and their operations over a AvsPrivateCloudAddonResource.
- public virtual AvsPrivateCloudAddonCollection GetAvsPrivateCloudAddons()
+ /// Gets an object representing a IscsiPathResource along with the instance operations that can be performed on it in the AvsPrivateCloud.
+ /// Returns a object.
+ public virtual IscsiPathResource GetIscsiPath()
{
- return GetCachedClient(client => new AvsPrivateCloudAddonCollection(client, Id));
+ return new IscsiPathResource(Client, Id.AppendChildResource("iscsiPaths", "default"));
+ }
+
+ /// Gets a collection of ScriptExecutionResources in the AvsPrivateCloud.
+ /// An object representing collection of ScriptExecutionResources and their operations over a ScriptExecutionResource.
+ public virtual ScriptExecutionCollection GetScriptExecutions()
+ {
+ return GetCachedClient(client => new ScriptExecutionCollection(client, Id));
}
///
- /// Get an addon by name in a private cloud
+ /// Get a ScriptExecution
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}
///
/// -
/// Operation Id
- /// Addons_Get
+ /// ScriptExecutions_Get
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// Name of the addon for the private cloud.
+ /// Name of the script cmdlet.
/// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual async Task> GetAvsPrivateCloudAddonAsync(string addonName, CancellationToken cancellationToken = default)
+ public virtual async Task> GetScriptExecutionAsync(string scriptExecutionName, CancellationToken cancellationToken = default)
{
- return await GetAvsPrivateCloudAddons().GetAsync(addonName, cancellationToken).ConfigureAwait(false);
+ return await GetScriptExecutions().GetAsync(scriptExecutionName, cancellationToken).ConfigureAwait(false);
}
///
- /// Get an addon by name in a private cloud
+ /// Get a ScriptExecution
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}
///
/// -
/// Operation Id
- /// Addons_Get
+ /// ScriptExecutions_Get
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// Name of the addon for the private cloud.
+ /// Name of the script cmdlet.
/// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual Response GetAvsPrivateCloudAddon(string addonName, CancellationToken cancellationToken = default)
+ public virtual Response GetScriptExecution(string scriptExecutionName, CancellationToken cancellationToken = default)
{
- return GetAvsPrivateCloudAddons().Get(addonName, cancellationToken);
+ return GetScriptExecutions().Get(scriptExecutionName, cancellationToken);
}
/// Gets a collection of ScriptPackageResources in the AvsPrivateCloud.
@@ -1198,7 +588,7 @@ public virtual ScriptPackageCollection GetScriptPackages()
}
///
- /// Get a script package available to run on a private cloud
+ /// Get a ScriptPackage
///
/// -
/// Request Path
@@ -1210,7 +600,7 @@ public virtual ScriptPackageCollection GetScriptPackages()
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -1218,7 +608,7 @@ public virtual ScriptPackageCollection GetScriptPackages()
///
///
///
- /// Name of the script package in the private cloud.
+ /// Name of the script package.
/// The cancellation token to use.
/// is null.
/// is an empty string, and was expected to be non-empty.
@@ -1229,7 +619,7 @@ public virtual async Task> GetScriptPackageAsync
}
///
- /// Get a script package available to run on a private cloud
+ /// Get a ScriptPackage
///
/// -
/// Request Path
@@ -1241,7 +631,7 @@ public virtual async Task> GetScriptPackageAsync
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -1249,7 +639,7 @@ public virtual async Task> GetScriptPackageAsync
///
///
///
- /// Name of the script package in the private cloud.
+ /// Name of the script package.
/// The cancellation token to use.
/// is null.
/// is an empty string, and was expected to be non-empty.
@@ -1259,77 +649,15 @@ public virtual Response GetScriptPackage(string scriptPac
return GetScriptPackages().Get(scriptPackageName, cancellationToken);
}
- /// Gets a collection of ScriptExecutionResources in the AvsPrivateCloud.
- /// An object representing collection of ScriptExecutionResources and their operations over a ScriptExecutionResource.
- public virtual ScriptExecutionCollection GetScriptExecutions()
- {
- return GetCachedClient(client => new ScriptExecutionCollection(client, Id));
- }
-
- ///
- /// Get an script execution by name in a private cloud
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}
- ///
- /// -
- /// Operation Id
- /// ScriptExecutions_Get
- ///
- /// -
- /// Default Api Version
- /// 2023-03-01
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// Name of the user-invoked script execution resource.
- /// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
- [ForwardsClientCalls]
- public virtual async Task> GetScriptExecutionAsync(string scriptExecutionName, CancellationToken cancellationToken = default)
- {
- return await GetScriptExecutions().GetAsync(scriptExecutionName, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Get an script execution by name in a private cloud
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}
- ///
- /// -
- /// Operation Id
- /// ScriptExecutions_Get
- ///
- /// -
- /// Default Api Version
- /// 2023-03-01
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// Name of the user-invoked script execution resource.
- /// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
- [ForwardsClientCalls]
- public virtual Response GetScriptExecution(string scriptExecutionName, CancellationToken cancellationToken = default)
+ /// Gets an object representing a WorkloadNetworkResource along with the instance operations that can be performed on it in the AvsPrivateCloud.
+ /// Returns a object.
+ public virtual WorkloadNetworkResource GetWorkloadNetwork()
{
- return GetScriptExecutions().Get(scriptExecutionName, cancellationToken);
+ return new WorkloadNetworkResource(Client, Id.AppendChildResource("workloadNetworks", "default"));
}
///
- /// Get a private cloud
+ /// Get a PrivateCloud
///
/// -
/// Request Path
@@ -1341,7 +669,7 @@ public virtual Response GetScriptExecution(string scrip
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -1369,7 +697,7 @@ public virtual async Task> GetAsync(Cancellati
}
///
- /// Get a private cloud
+ /// Get a PrivateCloud
///
/// -
/// Request Path
@@ -1381,7 +709,7 @@ public virtual async Task> GetAsync(Cancellati
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -1409,7 +737,7 @@ public virtual Response Get(CancellationToken cancellat
}
///
- /// Delete a private cloud
+ /// Delete a PrivateCloud
///
/// -
/// Request Path
@@ -1421,7 +749,7 @@ public virtual Response Get(CancellationToken cancellat
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -1451,7 +779,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell
}
///
- /// Delete a private cloud
+ /// Delete a PrivateCloud
///
/// -
/// Request Path
@@ -1463,7 +791,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -1493,7 +821,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
}
///
- /// Update a private cloud
+ /// Update a PrivateCloud
///
/// -
/// Request Path
@@ -1505,7 +833,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -1539,7 +867,7 @@ public virtual async Task> UpdateAsync(Wai
}
///
- /// Update a private cloud
+ /// Update a PrivateCloud
///
/// -
/// Request Path
@@ -1551,7 +879,7 @@ public virtual async Task> UpdateAsync(Wai
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -1585,19 +913,19 @@ public virtual ArmOperation Update(WaitUntil waitUntil,
}
///
- /// Rotate the vCenter password
+ /// List the admin credentials for the private cloud
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateVcenterPassword
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/listAdminCredentials
///
/// -
/// Operation Id
- /// PrivateClouds_RotateVcenterPassword
+ /// PrivateClouds_ListAdminCredentials
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -1605,19 +933,15 @@ public virtual ArmOperation Update(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 cancellation token to use.
- public virtual async Task RotateVCenterPasswordAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default)
+ public virtual async Task> GetAdminCredentialsAsync(CancellationToken cancellationToken = default)
{
- using var scope = _avsPrivateCloudPrivateCloudsClientDiagnostics.CreateScope("AvsPrivateCloudResource.RotateVCenterPassword");
+ using var scope = _avsPrivateCloudPrivateCloudsClientDiagnostics.CreateScope("AvsPrivateCloudResource.GetAdminCredentials");
scope.Start();
try
{
- var response = await _avsPrivateCloudPrivateCloudsRestClient.RotateVcenterPasswordAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
- var operation = new AvsArmOperation(_avsPrivateCloudPrivateCloudsClientDiagnostics, Pipeline, _avsPrivateCloudPrivateCloudsRestClient.CreateRotateVcenterPasswordRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location);
- if (waitUntil == WaitUntil.Completed)
- await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false);
- return operation;
+ var response = await _avsPrivateCloudPrivateCloudsRestClient.ListAdminCredentialsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
+ return response;
}
catch (Exception e)
{
@@ -1627,19 +951,19 @@ public virtual async Task RotateVCenterPasswordAsync(WaitUntil wai
}
///
- /// Rotate the vCenter password
+ /// List the admin credentials for the private cloud
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateVcenterPassword
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/listAdminCredentials
///
/// -
/// Operation Id
- /// PrivateClouds_RotateVcenterPassword
+ /// PrivateClouds_ListAdminCredentials
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -1647,19 +971,15 @@ public virtual async Task RotateVCenterPasswordAsync(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 cancellation token to use.
- public virtual ArmOperation RotateVCenterPassword(WaitUntil waitUntil, CancellationToken cancellationToken = default)
+ public virtual Response GetAdminCredentials(CancellationToken cancellationToken = default)
{
- using var scope = _avsPrivateCloudPrivateCloudsClientDiagnostics.CreateScope("AvsPrivateCloudResource.RotateVCenterPassword");
+ using var scope = _avsPrivateCloudPrivateCloudsClientDiagnostics.CreateScope("AvsPrivateCloudResource.GetAdminCredentials");
scope.Start();
try
{
- var response = _avsPrivateCloudPrivateCloudsRestClient.RotateVcenterPassword(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
- var operation = new AvsArmOperation(_avsPrivateCloudPrivateCloudsClientDiagnostics, Pipeline, _avsPrivateCloudPrivateCloudsRestClient.CreateRotateVcenterPasswordRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location);
- if (waitUntil == WaitUntil.Completed)
- operation.WaitForCompletionResponse(cancellationToken);
- return operation;
+ var response = _avsPrivateCloudPrivateCloudsRestClient.ListAdminCredentials(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
+ return response;
}
catch (Exception e)
{
@@ -1681,7 +1001,7 @@ public virtual ArmOperation RotateVCenterPassword(WaitUntil waitUntil, Cancellat
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -1723,7 +1043,7 @@ public virtual async Task RotateNsxtPasswordAsync(WaitUntil waitUn
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -1753,19 +1073,19 @@ public virtual ArmOperation RotateNsxtPassword(WaitUntil waitUntil, Cancellation
}
///
- /// List the admin credentials for the private cloud
+ /// Rotate the vCenter password
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/listAdminCredentials
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateVcenterPassword
///
/// -
/// Operation Id
- /// PrivateClouds_ListAdminCredentials
+ /// PrivateClouds_RotateVcenterPassword
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -1773,15 +1093,19 @@ public virtual ArmOperation RotateNsxtPassword(WaitUntil waitUntil, Cancellation
///
///
///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
/// The cancellation token to use.
- public virtual async Task> GetAdminCredentialsAsync(CancellationToken cancellationToken = default)
+ public virtual async Task RotateVCenterPasswordAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default)
{
- using var scope = _avsPrivateCloudPrivateCloudsClientDiagnostics.CreateScope("AvsPrivateCloudResource.GetAdminCredentials");
+ using var scope = _avsPrivateCloudPrivateCloudsClientDiagnostics.CreateScope("AvsPrivateCloudResource.RotateVCenterPassword");
scope.Start();
try
{
- var response = await _avsPrivateCloudPrivateCloudsRestClient.ListAdminCredentialsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
- return response;
+ var response = await _avsPrivateCloudPrivateCloudsRestClient.RotateVcenterPasswordAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
+ var operation = new AvsArmOperation(_avsPrivateCloudPrivateCloudsClientDiagnostics, Pipeline, _avsPrivateCloudPrivateCloudsRestClient.CreateRotateVcenterPasswordRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
}
catch (Exception e)
{
@@ -1791,19 +1115,19 @@ public virtual async Task> GetAdminCredentialsAsync(C
}
///
- /// List the admin credentials for the private cloud
+ /// Rotate the vCenter password
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/listAdminCredentials
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateVcenterPassword
///
/// -
/// Operation Id
- /// PrivateClouds_ListAdminCredentials
+ /// PrivateClouds_RotateVcenterPassword
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -1811,15 +1135,19 @@ public virtual async Task> GetAdminCredentialsAsync(C
///
///
///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
/// The cancellation token to use.
- public virtual Response GetAdminCredentials(CancellationToken cancellationToken = default)
+ public virtual ArmOperation RotateVCenterPassword(WaitUntil waitUntil, CancellationToken cancellationToken = default)
{
- using var scope = _avsPrivateCloudPrivateCloudsClientDiagnostics.CreateScope("AvsPrivateCloudResource.GetAdminCredentials");
+ using var scope = _avsPrivateCloudPrivateCloudsClientDiagnostics.CreateScope("AvsPrivateCloudResource.RotateVCenterPassword");
scope.Start();
try
{
- var response = _avsPrivateCloudPrivateCloudsRestClient.ListAdminCredentials(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
- return response;
+ var response = _avsPrivateCloudPrivateCloudsRestClient.RotateVcenterPassword(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
+ var operation = new AvsArmOperation(_avsPrivateCloudPrivateCloudsClientDiagnostics, Pipeline, _avsPrivateCloudPrivateCloudsRestClient.CreateRotateVcenterPasswordRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletionResponse(cancellationToken);
+ return operation;
}
catch (Exception e)
{
@@ -1841,7 +1169,7 @@ public virtual Response GetAdminCredentials(CancellationToken
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -1903,7 +1231,7 @@ public virtual async Task> AddTagAsync(string
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -1965,7 +1293,7 @@ public virtual Response AddTag(string key, string value
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -2022,7 +1350,7 @@ public virtual async Task> SetTagsAsync(IDicti
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -2079,7 +1407,7 @@ public virtual Response SetTags(IDictionary
///
-
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -2139,7 +1467,7 @@ public virtual async Task> RemoveTagAsync(stri
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ExpressRouteAuthorizationCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ExpressRouteAuthorizationCollection.cs
index 7b58de2e5a23..b430c3f597fc 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ExpressRouteAuthorizationCollection.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ExpressRouteAuthorizationCollection.cs
@@ -52,7 +52,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
}
///
- /// Create or update an ExpressRoute Circuit Authorization in a private cloud
+ /// Create a ExpressRouteAuthorization
///
/// -
/// Request Path
@@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -73,8 +73,8 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
///
/// 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.
- /// Name of the ExpressRoute Circuit Authorization in the private cloud.
- /// An ExpressRoute Circuit Authorization.
+ /// Name of the ExpressRoute Circuit Authorization.
+ /// Resource create parameters.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// or is null.
@@ -88,7 +88,7 @@ public virtual async Task> Creat
try
{
var response = await _expressRouteAuthorizationAuthorizationsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationName, data, cancellationToken).ConfigureAwait(false);
- var operation = new AvsArmOperation(new ExpressRouteAuthorizationOperationSource(Client), _expressRouteAuthorizationAuthorizationsClientDiagnostics, Pipeline, _expressRouteAuthorizationAuthorizationsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationName, data).Request, response, OperationFinalStateVia.Location);
+ var operation = new AvsArmOperation(new ExpressRouteAuthorizationOperationSource(Client), _expressRouteAuthorizationAuthorizationsClientDiagnostics, Pipeline, _expressRouteAuthorizationAuthorizationsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
if (waitUntil == WaitUntil.Completed)
await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
return operation;
@@ -101,7 +101,7 @@ public virtual async Task> Creat
}
///
- /// Create or update an ExpressRoute Circuit Authorization in a private cloud
+ /// Create a ExpressRouteAuthorization
///
/// -
/// Request Path
@@ -113,7 +113,7 @@ public virtual async Task> Creat
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -122,8 +122,8 @@ public virtual async Task> Creat
///
///
/// 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.
- /// Name of the ExpressRoute Circuit Authorization in the private cloud.
- /// An ExpressRoute Circuit Authorization.
+ /// Name of the ExpressRoute Circuit Authorization.
+ /// Resource create parameters.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// or is null.
@@ -137,7 +137,7 @@ public virtual ArmOperation CreateOrUpdate(Wa
try
{
var response = _expressRouteAuthorizationAuthorizationsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationName, data, cancellationToken);
- var operation = new AvsArmOperation(new ExpressRouteAuthorizationOperationSource(Client), _expressRouteAuthorizationAuthorizationsClientDiagnostics, Pipeline, _expressRouteAuthorizationAuthorizationsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationName, data).Request, response, OperationFinalStateVia.Location);
+ var operation = new AvsArmOperation(new ExpressRouteAuthorizationOperationSource(Client), _expressRouteAuthorizationAuthorizationsClientDiagnostics, Pipeline, _expressRouteAuthorizationAuthorizationsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
if (waitUntil == WaitUntil.Completed)
operation.WaitForCompletion(cancellationToken);
return operation;
@@ -150,7 +150,7 @@ public virtual ArmOperation CreateOrUpdate(Wa
}
///
- /// Get an ExpressRoute Circuit Authorization by name in a private cloud
+ /// Get a ExpressRouteAuthorization
///
/// -
/// Request Path
@@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(Wa
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -170,7 +170,7 @@ public virtual ArmOperation CreateOrUpdate(Wa
///
///
///
- /// Name of the ExpressRoute Circuit Authorization in the private cloud.
+ /// Name of the ExpressRoute Circuit Authorization.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -195,7 +195,7 @@ public virtual async Task> GetAsync(
}
///
- /// Get an ExpressRoute Circuit Authorization by name in a private cloud
+ /// Get a ExpressRouteAuthorization
///
/// -
/// Request Path
@@ -207,7 +207,7 @@ public virtual async Task> GetAsync(
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -215,7 +215,7 @@ public virtual async Task> GetAsync(
///
///
///
- /// Name of the ExpressRoute Circuit Authorization in the private cloud.
+ /// Name of the ExpressRoute Circuit Authorization.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -240,7 +240,7 @@ public virtual Response Get(string authorizat
}
///
- /// List ExpressRoute Circuit Authorizations in a private cloud
+ /// List ExpressRouteAuthorization resources by PrivateCloud
///
/// -
/// Request Path
@@ -252,7 +252,7 @@ public virtual Response Get(string authorizat
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -270,7 +270,7 @@ public virtual AsyncPageable GetAllAsync(Canc
}
///
- /// List ExpressRoute Circuit Authorizations in a private cloud
+ /// List ExpressRouteAuthorization resources by PrivateCloud
///
/// -
/// Request Path
@@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Canc
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationTo
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -320,7 +320,7 @@ public virtual Pageable GetAll(CancellationTo
///
///
///
- /// Name of the ExpressRoute Circuit Authorization in the private cloud.
+ /// Name of the ExpressRoute Circuit Authorization.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string authorizationName,
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string authorizationName,
///
///
///
- /// Name of the ExpressRoute Circuit Authorization in the private cloud.
+ /// Name of the ExpressRoute Circuit Authorization.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -398,7 +398,7 @@ public virtual Response Exists(string authorizationName, CancellationToken
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -406,7 +406,7 @@ public virtual Response Exists(string authorizationName, CancellationToken
///
///
///
- /// Name of the ExpressRoute Circuit Authorization in the private cloud.
+ /// Name of the ExpressRoute Circuit Authorization.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -443,7 +443,7 @@ public virtual async Task> G
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -451,7 +451,7 @@ public virtual async Task> G
///
///
///
- /// Name of the ExpressRoute Circuit Authorization in the private cloud.
+ /// Name of the ExpressRoute Circuit Authorization.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ExpressRouteAuthorizationData.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ExpressRouteAuthorizationData.cs
index a9465eeb9a11..44fde78ecc03 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ExpressRouteAuthorizationData.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ExpressRouteAuthorizationData.cs
@@ -61,7 +61,7 @@ public ExpressRouteAuthorizationData()
/// The name.
/// The resourceType.
/// The systemData.
- /// The state of the ExpressRoute Circuit Authorization provisioning.
+ /// The state of the ExpressRoute Circuit Authorization provisioning.
/// The ID of the ExpressRoute Circuit Authorization.
/// The key of the ExpressRoute Circuit Authorization.
/// The ID of the ExpressRoute Circuit.
@@ -75,7 +75,7 @@ internal ExpressRouteAuthorizationData(ResourceIdentifier id, string name, Resou
_serializedAdditionalRawData = serializedAdditionalRawData;
}
- /// The state of the ExpressRoute Circuit Authorization provisioning.
+ /// The state of the ExpressRoute Circuit Authorization provisioning.
public ExpressRouteAuthorizationProvisioningState? ProvisioningState { get; }
/// The ID of the ExpressRoute Circuit Authorization.
public ResourceIdentifier ExpressRouteAuthorizationId { get; }
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ExpressRouteAuthorizationResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ExpressRouteAuthorizationResource.cs
index e7eca098535c..82f3991609a0 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ExpressRouteAuthorizationResource.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ExpressRouteAuthorizationResource.cs
@@ -89,7 +89,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
}
///
- /// Get an ExpressRoute Circuit Authorization by name in a private cloud
+ /// Get a ExpressRouteAuthorization
///
/// -
/// Request Path
@@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -129,7 +129,7 @@ public virtual async Task> GetAsync(
}
///
- /// Get an ExpressRoute Circuit Authorization by name in a private cloud
+ /// Get a ExpressRouteAuthorization
///
/// -
/// Request Path
@@ -141,7 +141,7 @@ public virtual async Task> GetAsync(
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -169,7 +169,7 @@ public virtual Response Get(CancellationToken
}
///
- /// Delete an ExpressRoute Circuit Authorization in a private cloud
+ /// Delete a ExpressRouteAuthorization
///
/// -
/// Request Path
@@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -211,7 +211,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell
}
///
- /// Delete an ExpressRoute Circuit Authorization in a private cloud
+ /// Delete a ExpressRouteAuthorization
///
/// -
/// Request Path
@@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -253,7 +253,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
}
///
- /// Create or update an ExpressRoute Circuit Authorization in a private cloud
+ /// Create a ExpressRouteAuthorization
///
/// -
/// Request Path
@@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -274,7 +274,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
///
///
/// 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.
- /// An ExpressRoute Circuit Authorization.
+ /// Resource create parameters.
/// The cancellation token to use.
/// is null.
public virtual async Task> UpdateAsync(WaitUntil waitUntil, ExpressRouteAuthorizationData data, CancellationToken cancellationToken = default)
@@ -286,7 +286,7 @@ public virtual async Task> Updat
try
{
var response = await _expressRouteAuthorizationAuthorizationsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false);
- var operation = new AvsArmOperation(new ExpressRouteAuthorizationOperationSource(Client), _expressRouteAuthorizationAuthorizationsClientDiagnostics, Pipeline, _expressRouteAuthorizationAuthorizationsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location);
+ var operation = new AvsArmOperation(new ExpressRouteAuthorizationOperationSource(Client), _expressRouteAuthorizationAuthorizationsClientDiagnostics, Pipeline, _expressRouteAuthorizationAuthorizationsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
if (waitUntil == WaitUntil.Completed)
await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
return operation;
@@ -299,7 +299,7 @@ public virtual async Task> Updat
}
///
- /// Create or update an ExpressRoute Circuit Authorization in a private cloud
+ /// Create a ExpressRouteAuthorization
///
/// -
/// Request Path
@@ -311,7 +311,7 @@ public virtual async Task> Updat
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -320,7 +320,7 @@ public virtual async Task> Updat
///
///
/// 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.
- /// An ExpressRoute Circuit Authorization.
+ /// Resource create parameters.
/// The cancellation token to use.
/// is null.
public virtual ArmOperation Update(WaitUntil waitUntil, ExpressRouteAuthorizationData data, CancellationToken cancellationToken = default)
@@ -332,7 +332,7 @@ public virtual ArmOperation Update(WaitUntil
try
{
var response = _expressRouteAuthorizationAuthorizationsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken);
- var operation = new AvsArmOperation(new ExpressRouteAuthorizationOperationSource(Client), _expressRouteAuthorizationAuthorizationsClientDiagnostics, Pipeline, _expressRouteAuthorizationAuthorizationsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location);
+ var operation = new AvsArmOperation(new ExpressRouteAuthorizationOperationSource(Client), _expressRouteAuthorizationAuthorizationsClientDiagnostics, Pipeline, _expressRouteAuthorizationAuthorizationsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
if (waitUntil == WaitUntil.Completed)
operation.WaitForCompletion(cancellationToken);
return operation;
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/AvsExtensions.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/AvsExtensions.cs
index f2e3da6b282e..50ae0b65f1ce 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/AvsExtensions.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/AvsExtensions.cs
@@ -52,6 +52,63 @@ public static AvsPrivateCloudResource GetAvsPrivateCloudResource(this ArmClient
return GetMockableAvsArmClient(client).GetAvsPrivateCloudResource(id);
}
+ ///
+ /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
+ /// You can use to create an from its components.
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static AvsPrivateCloudAddonResource GetAvsPrivateCloudAddonResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableAvsArmClient(client).GetAvsPrivateCloudAddonResource(id);
+ }
+
+ ///
+ /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
+ /// You can use to create an from its components.
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static ExpressRouteAuthorizationResource GetExpressRouteAuthorizationResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableAvsArmClient(client).GetExpressRouteAuthorizationResource(id);
+ }
+
+ ///
+ /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
+ /// You can use to create an from its components.
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static AvsCloudLinkResource GetAvsCloudLinkResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableAvsArmClient(client).GetAvsCloudLinkResource(id);
+ }
+
///
/// Gets an object representing an along with the instance operations that can be performed on it but with no data.
/// You can use to create an from its components.
@@ -91,41 +148,41 @@ public static AvsPrivateCloudDatastoreResource GetAvsPrivateCloudDatastoreResour
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static HcxEnterpriseSiteResource GetHcxEnterpriseSiteResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static PlacementPolicyResource GetPlacementPolicyResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableAvsArmClient(client).GetHcxEnterpriseSiteResource(id);
+ return GetMockableAvsArmClient(client).GetPlacementPolicyResource(id);
}
///
- /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
- /// You can use to create an from its components.
+ /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
+ /// You can use to create an from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static ExpressRouteAuthorizationResource GetExpressRouteAuthorizationResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static AvsPrivateCloudClusterVirtualMachineResource GetAvsPrivateCloudClusterVirtualMachineResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableAvsArmClient(client).GetExpressRouteAuthorizationResource(id);
+ return GetMockableAvsArmClient(client).GetAvsPrivateCloudClusterVirtualMachineResource(id);
}
///
@@ -148,136 +205,136 @@ public static GlobalReachConnectionResource GetGlobalReachConnectionResource(thi
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static WorkloadNetworkResource GetWorkloadNetworkResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static HcxEnterpriseSiteResource GetHcxEnterpriseSiteResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableAvsArmClient(client).GetWorkloadNetworkResource(id);
+ return GetMockableAvsArmClient(client).GetHcxEnterpriseSiteResource(id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
+ /// You can use to create an from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static WorkloadNetworkSegmentResource GetWorkloadNetworkSegmentResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static IscsiPathResource GetIscsiPathResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableAvsArmClient(client).GetWorkloadNetworkSegmentResource(id);
+ return GetMockableAvsArmClient(client).GetIscsiPathResource(id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static WorkloadNetworkDhcpResource GetWorkloadNetworkDhcpResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static ScriptExecutionResource GetScriptExecutionResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableAvsArmClient(client).GetWorkloadNetworkDhcpResource(id);
+ return GetMockableAvsArmClient(client).GetScriptExecutionResource(id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static WorkloadNetworkGatewayResource GetWorkloadNetworkGatewayResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static ScriptPackageResource GetScriptPackageResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableAvsArmClient(client).GetWorkloadNetworkGatewayResource(id);
+ return GetMockableAvsArmClient(client).GetScriptPackageResource(id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static WorkloadNetworkPortMirroringProfileResource GetWorkloadNetworkPortMirroringProfileResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static ScriptCmdletResource GetScriptCmdletResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableAvsArmClient(client).GetWorkloadNetworkPortMirroringProfileResource(id);
+ return GetMockableAvsArmClient(client).GetScriptCmdletResource(id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static WorkloadNetworkVmGroupResource GetWorkloadNetworkVmGroupResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static WorkloadNetworkResource GetWorkloadNetworkResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableAvsArmClient(client).GetWorkloadNetworkVmGroupResource(id);
+ return GetMockableAvsArmClient(client).GetWorkloadNetworkResource(id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static WorkloadNetworkVirtualMachineResource GetWorkloadNetworkVirtualMachineResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static WorkloadNetworkDhcpResource GetWorkloadNetworkDhcpResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableAvsArmClient(client).GetWorkloadNetworkVirtualMachineResource(id);
+ return GetMockableAvsArmClient(client).GetWorkloadNetworkDhcpResource(id);
}
///
@@ -319,155 +376,117 @@ public static WorkloadNetworkDnsZoneResource GetWorkloadNetworkDnsZoneResource(t
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
- /// -
- /// Mocking
- /// To mock this method, please mock instead.
- ///
- ///
- /// The instance the method will execute against.
- /// The resource ID of the resource to get.
- /// is null.
- /// Returns a object.
- public static WorkloadNetworkPublicIPResource GetWorkloadNetworkPublicIPResource(this ArmClient client, ResourceIdentifier id)
- {
- Argument.AssertNotNull(client, nameof(client));
-
- return GetMockableAvsArmClient(client).GetWorkloadNetworkPublicIPResource(id);
- }
-
- ///
- /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
- /// You can use to create an from its components.
- /// -
- /// Mocking
- /// To mock this method, please mock instead.
- ///
- ///
- /// The instance the method will execute against.
- /// The resource ID of the resource to get.
- /// is null.
- /// Returns a object.
- public static AvsCloudLinkResource GetAvsCloudLinkResource(this ArmClient client, ResourceIdentifier id)
- {
- Argument.AssertNotNull(client, nameof(client));
-
- return GetMockableAvsArmClient(client).GetAvsCloudLinkResource(id);
- }
-
- ///
- /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
- /// You can use to create an from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static AvsPrivateCloudAddonResource GetAvsPrivateCloudAddonResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static WorkloadNetworkGatewayResource GetWorkloadNetworkGatewayResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableAvsArmClient(client).GetAvsPrivateCloudAddonResource(id);
+ return GetMockableAvsArmClient(client).GetWorkloadNetworkGatewayResource(id);
}
///
- /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
- /// You can use to create an from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static AvsPrivateCloudClusterVirtualMachineResource GetAvsPrivateCloudClusterVirtualMachineResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static WorkloadNetworkPortMirroringProfileResource GetWorkloadNetworkPortMirroringProfileResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableAvsArmClient(client).GetAvsPrivateCloudClusterVirtualMachineResource(id);
+ return GetMockableAvsArmClient(client).GetWorkloadNetworkPortMirroringProfileResource(id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static PlacementPolicyResource GetPlacementPolicyResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static WorkloadNetworkPublicIPResource GetWorkloadNetworkPublicIPResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableAvsArmClient(client).GetPlacementPolicyResource(id);
+ return GetMockableAvsArmClient(client).GetWorkloadNetworkPublicIPResource(id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static ScriptPackageResource GetScriptPackageResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static WorkloadNetworkSegmentResource GetWorkloadNetworkSegmentResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableAvsArmClient(client).GetScriptPackageResource(id);
+ return GetMockableAvsArmClient(client).GetWorkloadNetworkSegmentResource(id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static ScriptCmdletResource GetScriptCmdletResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static WorkloadNetworkVirtualMachineResource GetWorkloadNetworkVirtualMachineResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableAvsArmClient(client).GetScriptCmdletResource(id);
+ return GetMockableAvsArmClient(client).GetWorkloadNetworkVirtualMachineResource(id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static ScriptExecutionResource GetScriptExecutionResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static WorkloadNetworkVmGroupResource GetWorkloadNetworkVmGroupResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableAvsArmClient(client).GetScriptExecutionResource(id);
+ return GetMockableAvsArmClient(client).GetWorkloadNetworkVmGroupResource(id);
}
///
@@ -488,7 +507,7 @@ public static AvsPrivateCloudCollection GetAvsPrivateClouds(this ResourceGroupRe
}
///
- /// Get a private cloud
+ /// Get a PrivateCloud
///
/// -
/// Request Path
@@ -500,7 +519,7 @@ public static AvsPrivateCloudCollection GetAvsPrivateClouds(this ResourceGroupRe
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -526,7 +545,7 @@ public static async Task> GetAvsPrivateCloudAs
}
///
- /// Get a private cloud
+ /// Get a PrivateCloud
///
/// -
/// Request Path
@@ -538,7 +557,7 @@ public static async Task> GetAvsPrivateCloudAs
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -564,137 +583,137 @@ public static Response GetAvsPrivateCloud(this Resource
}
///
- /// Return trial status for subscription by region
+ /// Return quota for subscription by region
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkTrialAvailability
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkQuotaAvailability
///
/// -
/// Operation Id
- /// Locations_CheckTrialAvailability
+ /// Locations_CheckQuotaAvailability
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
- /// Azure region.
- /// The sku to check for trial availability.
+ /// The name of the Azure region.
/// The cancellation token to use.
/// is null.
- public static async Task> CheckAvsTrialAvailabilityAsync(this SubscriptionResource subscriptionResource, AzureLocation location, AvsSku sku = null, CancellationToken cancellationToken = default)
+ public static async Task> CheckAvsQuotaAvailabilityAsync(this SubscriptionResource subscriptionResource, AzureLocation location, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
- return await GetMockableAvsSubscriptionResource(subscriptionResource).CheckAvsTrialAvailabilityAsync(location, sku, cancellationToken).ConfigureAwait(false);
+ return await GetMockableAvsSubscriptionResource(subscriptionResource).CheckAvsQuotaAvailabilityAsync(location, cancellationToken).ConfigureAwait(false);
}
///
- /// Return trial status for subscription by region
+ /// Return quota for subscription by region
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkTrialAvailability
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkQuotaAvailability
///
/// -
/// Operation Id
- /// Locations_CheckTrialAvailability
+ /// Locations_CheckQuotaAvailability
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
- /// Azure region.
- /// The sku to check for trial availability.
+ /// The name of the Azure region.
/// The cancellation token to use.
/// is null.
- public static Response CheckAvsTrialAvailability(this SubscriptionResource subscriptionResource, AzureLocation location, AvsSku sku = null, CancellationToken cancellationToken = default)
+ public static Response CheckAvsQuotaAvailability(this SubscriptionResource subscriptionResource, AzureLocation location, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
- return GetMockableAvsSubscriptionResource(subscriptionResource).CheckAvsTrialAvailability(location, sku, cancellationToken);
+ return GetMockableAvsSubscriptionResource(subscriptionResource).CheckAvsQuotaAvailability(location, cancellationToken);
}
///
- /// Return quota for subscription by region
+ /// Return trial status for subscription by region
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkQuotaAvailability
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkTrialAvailability
///
/// -
/// Operation Id
- /// Locations_CheckQuotaAvailability
+ /// Locations_CheckTrialAvailability
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
- /// Azure region.
+ /// The name of the Azure region.
+ /// Optionally, check for a specific SKU.
/// The cancellation token to use.
/// is null.
- public static async Task> CheckAvsQuotaAvailabilityAsync(this SubscriptionResource subscriptionResource, AzureLocation location, CancellationToken cancellationToken = default)
+ public static async Task> CheckAvsTrialAvailabilityAsync(this SubscriptionResource subscriptionResource, AzureLocation location, AvsSku sku = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
- return await GetMockableAvsSubscriptionResource(subscriptionResource).CheckAvsQuotaAvailabilityAsync(location, cancellationToken).ConfigureAwait(false);
+ return await GetMockableAvsSubscriptionResource(subscriptionResource).CheckAvsTrialAvailabilityAsync(location, sku, cancellationToken).ConfigureAwait(false);
}
///
- /// Return quota for subscription by region
+ /// Return trial status for subscription by region
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkQuotaAvailability
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkTrialAvailability
///
/// -
/// Operation Id
- /// Locations_CheckQuotaAvailability
+ /// Locations_CheckTrialAvailability
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
- /// Azure region.
+ /// The name of the Azure region.
+ /// Optionally, check for a specific SKU.
/// The cancellation token to use.
/// is null.
- public static Response CheckAvsQuotaAvailability(this SubscriptionResource subscriptionResource, AzureLocation location, CancellationToken cancellationToken = default)
+ public static Response CheckAvsTrialAvailability(this SubscriptionResource subscriptionResource, AzureLocation location, AvsSku sku = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
- return GetMockableAvsSubscriptionResource(subscriptionResource).CheckAvsQuotaAvailability(location, cancellationToken);
+ return GetMockableAvsSubscriptionResource(subscriptionResource).CheckAvsTrialAvailability(location, sku, cancellationToken);
}
///
- /// List private clouds in a subscription
+ /// List PrivateCloud resources by subscription ID
///
/// -
/// Request Path
@@ -706,7 +725,7 @@ public static Response CheckAvsQuotaAvai
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -730,7 +749,7 @@ public static AsyncPageable GetAvsPrivateCloudsAsync(th
}
///
- /// List private clouds in a subscription
+ /// List PrivateCloud resources by subscription ID
///
/// -
/// Request Path
@@ -742,7 +761,7 @@ public static AsyncPageable GetAvsPrivateCloudsAsync(th
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/MockableAvsArmClient.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/MockableAvsArmClient.cs
index 21a9502f6117..daf42488f4d4 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/MockableAvsArmClient.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/MockableAvsArmClient.cs
@@ -46,6 +46,42 @@ public virtual AvsPrivateCloudResource GetAvsPrivateCloudResource(ResourceIdenti
return new AvsPrivateCloudResource(Client, id);
}
+ ///
+ /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
+ /// You can use to create an from its components.
+ ///
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual AvsPrivateCloudAddonResource GetAvsPrivateCloudAddonResource(ResourceIdentifier id)
+ {
+ AvsPrivateCloudAddonResource.ValidateResourceId(id);
+ return new AvsPrivateCloudAddonResource(Client, id);
+ }
+
+ ///
+ /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
+ /// You can use to create an from its components.
+ ///
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual ExpressRouteAuthorizationResource GetExpressRouteAuthorizationResource(ResourceIdentifier id)
+ {
+ ExpressRouteAuthorizationResource.ValidateResourceId(id);
+ return new ExpressRouteAuthorizationResource(Client, id);
+ }
+
+ ///
+ /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
+ /// You can use to create an from its components.
+ ///
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual AvsCloudLinkResource GetAvsCloudLinkResource(ResourceIdentifier id)
+ {
+ AvsCloudLinkResource.ValidateResourceId(id);
+ return new AvsCloudLinkResource(Client, id);
+ }
+
///
/// Gets an object representing an along with the instance operations that can be performed on it but with no data.
/// You can use to create an from its components.
@@ -71,27 +107,27 @@ public virtual AvsPrivateCloudDatastoreResource GetAvsPrivateCloudDatastoreResou
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The resource ID of the resource to get.
- /// Returns a object.
- public virtual HcxEnterpriseSiteResource GetHcxEnterpriseSiteResource(ResourceIdentifier id)
+ /// Returns a object.
+ public virtual PlacementPolicyResource GetPlacementPolicyResource(ResourceIdentifier id)
{
- HcxEnterpriseSiteResource.ValidateResourceId(id);
- return new HcxEnterpriseSiteResource(Client, id);
+ PlacementPolicyResource.ValidateResourceId(id);
+ return new PlacementPolicyResource(Client, id);
}
///
- /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
- /// You can use to create an from its components.
+ /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
+ /// You can use to create an from its components.
///
/// The resource ID of the resource to get.
- /// Returns a object.
- public virtual ExpressRouteAuthorizationResource GetExpressRouteAuthorizationResource(ResourceIdentifier id)
+ /// Returns a object.
+ public virtual AvsPrivateCloudClusterVirtualMachineResource GetAvsPrivateCloudClusterVirtualMachineResource(ResourceIdentifier id)
{
- ExpressRouteAuthorizationResource.ValidateResourceId(id);
- return new ExpressRouteAuthorizationResource(Client, id);
+ AvsPrivateCloudClusterVirtualMachineResource.ValidateResourceId(id);
+ return new AvsPrivateCloudClusterVirtualMachineResource(Client, id);
}
///
@@ -107,87 +143,87 @@ public virtual GlobalReachConnectionResource GetGlobalReachConnectionResource(Re
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The resource ID of the resource to get.
- /// Returns a object.
- public virtual WorkloadNetworkResource GetWorkloadNetworkResource(ResourceIdentifier id)
+ /// Returns a object.
+ public virtual HcxEnterpriseSiteResource GetHcxEnterpriseSiteResource(ResourceIdentifier id)
{
- WorkloadNetworkResource.ValidateResourceId(id);
- return new WorkloadNetworkResource(Client, id);
+ HcxEnterpriseSiteResource.ValidateResourceId(id);
+ return new HcxEnterpriseSiteResource(Client, id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
+ /// You can use to create an from its components.
///
/// The resource ID of the resource to get.
- /// Returns a object.
- public virtual WorkloadNetworkSegmentResource GetWorkloadNetworkSegmentResource(ResourceIdentifier id)
+ /// Returns a object.
+ public virtual IscsiPathResource GetIscsiPathResource(ResourceIdentifier id)
{
- WorkloadNetworkSegmentResource.ValidateResourceId(id);
- return new WorkloadNetworkSegmentResource(Client, id);
+ IscsiPathResource.ValidateResourceId(id);
+ return new IscsiPathResource(Client, id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The resource ID of the resource to get.
- /// Returns a object.
- public virtual WorkloadNetworkDhcpResource GetWorkloadNetworkDhcpResource(ResourceIdentifier id)
+ /// Returns a object.
+ public virtual ScriptExecutionResource GetScriptExecutionResource(ResourceIdentifier id)
{
- WorkloadNetworkDhcpResource.ValidateResourceId(id);
- return new WorkloadNetworkDhcpResource(Client, id);
+ ScriptExecutionResource.ValidateResourceId(id);
+ return new ScriptExecutionResource(Client, id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The resource ID of the resource to get.
- /// Returns a object.
- public virtual WorkloadNetworkGatewayResource GetWorkloadNetworkGatewayResource(ResourceIdentifier id)
+ /// Returns a object.
+ public virtual ScriptPackageResource GetScriptPackageResource(ResourceIdentifier id)
{
- WorkloadNetworkGatewayResource.ValidateResourceId(id);
- return new WorkloadNetworkGatewayResource(Client, id);
+ ScriptPackageResource.ValidateResourceId(id);
+ return new ScriptPackageResource(Client, id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The resource ID of the resource to get.
- /// Returns a object.
- public virtual WorkloadNetworkPortMirroringProfileResource GetWorkloadNetworkPortMirroringProfileResource(ResourceIdentifier id)
+ /// Returns a object.
+ public virtual ScriptCmdletResource GetScriptCmdletResource(ResourceIdentifier id)
{
- WorkloadNetworkPortMirroringProfileResource.ValidateResourceId(id);
- return new WorkloadNetworkPortMirroringProfileResource(Client, id);
+ ScriptCmdletResource.ValidateResourceId(id);
+ return new ScriptCmdletResource(Client, id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The resource ID of the resource to get.
- /// Returns a object.
- public virtual WorkloadNetworkVmGroupResource GetWorkloadNetworkVmGroupResource(ResourceIdentifier id)
+ /// Returns a object.
+ public virtual WorkloadNetworkResource GetWorkloadNetworkResource(ResourceIdentifier id)
{
- WorkloadNetworkVmGroupResource.ValidateResourceId(id);
- return new WorkloadNetworkVmGroupResource(Client, id);
+ WorkloadNetworkResource.ValidateResourceId(id);
+ return new WorkloadNetworkResource(Client, id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The resource ID of the resource to get.
- /// Returns a object.
- public virtual WorkloadNetworkVirtualMachineResource GetWorkloadNetworkVirtualMachineResource(ResourceIdentifier id)
+ /// Returns a object.
+ public virtual WorkloadNetworkDhcpResource GetWorkloadNetworkDhcpResource(ResourceIdentifier id)
{
- WorkloadNetworkVirtualMachineResource.ValidateResourceId(id);
- return new WorkloadNetworkVirtualMachineResource(Client, id);
+ WorkloadNetworkDhcpResource.ValidateResourceId(id);
+ return new WorkloadNetworkDhcpResource(Client, id);
}
///
@@ -215,99 +251,75 @@ public virtual WorkloadNetworkDnsZoneResource GetWorkloadNetworkDnsZoneResource(
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
- ///
- /// The resource ID of the resource to get.
- /// Returns a object.
- public virtual WorkloadNetworkPublicIPResource GetWorkloadNetworkPublicIPResource(ResourceIdentifier id)
- {
- WorkloadNetworkPublicIPResource.ValidateResourceId(id);
- return new WorkloadNetworkPublicIPResource(Client, id);
- }
-
- ///
- /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
- /// You can use to create an from its components.
- ///
- /// The resource ID of the resource to get.
- /// Returns a object.
- public virtual AvsCloudLinkResource GetAvsCloudLinkResource(ResourceIdentifier id)
- {
- AvsCloudLinkResource.ValidateResourceId(id);
- return new AvsCloudLinkResource(Client, id);
- }
-
- ///
- /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
- /// You can use to create an from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The resource ID of the resource to get.
- /// Returns a object.
- public virtual AvsPrivateCloudAddonResource GetAvsPrivateCloudAddonResource(ResourceIdentifier id)
+ /// Returns a object.
+ public virtual WorkloadNetworkGatewayResource GetWorkloadNetworkGatewayResource(ResourceIdentifier id)
{
- AvsPrivateCloudAddonResource.ValidateResourceId(id);
- return new AvsPrivateCloudAddonResource(Client, id);
+ WorkloadNetworkGatewayResource.ValidateResourceId(id);
+ return new WorkloadNetworkGatewayResource(Client, id);
}
///
- /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
- /// You can use to create an from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The resource ID of the resource to get.
- /// Returns a object.
- public virtual AvsPrivateCloudClusterVirtualMachineResource GetAvsPrivateCloudClusterVirtualMachineResource(ResourceIdentifier id)
+ /// Returns a object.
+ public virtual WorkloadNetworkPortMirroringProfileResource GetWorkloadNetworkPortMirroringProfileResource(ResourceIdentifier id)
{
- AvsPrivateCloudClusterVirtualMachineResource.ValidateResourceId(id);
- return new AvsPrivateCloudClusterVirtualMachineResource(Client, id);
+ WorkloadNetworkPortMirroringProfileResource.ValidateResourceId(id);
+ return new WorkloadNetworkPortMirroringProfileResource(Client, id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The resource ID of the resource to get.
- /// Returns a object.
- public virtual PlacementPolicyResource GetPlacementPolicyResource(ResourceIdentifier id)
+ /// Returns a object.
+ public virtual WorkloadNetworkPublicIPResource GetWorkloadNetworkPublicIPResource(ResourceIdentifier id)
{
- PlacementPolicyResource.ValidateResourceId(id);
- return new PlacementPolicyResource(Client, id);
+ WorkloadNetworkPublicIPResource.ValidateResourceId(id);
+ return new WorkloadNetworkPublicIPResource(Client, id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The resource ID of the resource to get.
- /// Returns a object.
- public virtual ScriptPackageResource GetScriptPackageResource(ResourceIdentifier id)
+ /// Returns a object.
+ public virtual WorkloadNetworkSegmentResource GetWorkloadNetworkSegmentResource(ResourceIdentifier id)
{
- ScriptPackageResource.ValidateResourceId(id);
- return new ScriptPackageResource(Client, id);
+ WorkloadNetworkSegmentResource.ValidateResourceId(id);
+ return new WorkloadNetworkSegmentResource(Client, id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The resource ID of the resource to get.
- /// Returns a object.
- public virtual ScriptCmdletResource GetScriptCmdletResource(ResourceIdentifier id)
+ /// Returns a object.
+ public virtual WorkloadNetworkVirtualMachineResource GetWorkloadNetworkVirtualMachineResource(ResourceIdentifier id)
{
- ScriptCmdletResource.ValidateResourceId(id);
- return new ScriptCmdletResource(Client, id);
+ WorkloadNetworkVirtualMachineResource.ValidateResourceId(id);
+ return new WorkloadNetworkVirtualMachineResource(Client, id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The resource ID of the resource to get.
- /// Returns a object.
- public virtual ScriptExecutionResource GetScriptExecutionResource(ResourceIdentifier id)
+ /// Returns a object.
+ public virtual WorkloadNetworkVmGroupResource GetWorkloadNetworkVmGroupResource(ResourceIdentifier id)
{
- ScriptExecutionResource.ValidateResourceId(id);
- return new ScriptExecutionResource(Client, id);
+ WorkloadNetworkVmGroupResource.ValidateResourceId(id);
+ return new WorkloadNetworkVmGroupResource(Client, id);
}
}
}
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/MockableAvsResourceGroupResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/MockableAvsResourceGroupResource.cs
index bdd8a6252570..13641e496b0f 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/MockableAvsResourceGroupResource.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/MockableAvsResourceGroupResource.cs
@@ -41,7 +41,7 @@ public virtual AvsPrivateCloudCollection GetAvsPrivateClouds()
}
///
- /// Get a private cloud
+ /// Get a PrivateCloud
///
/// -
/// Request Path
@@ -53,7 +53,7 @@ public virtual AvsPrivateCloudCollection GetAvsPrivateClouds()
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
@@ -72,7 +72,7 @@ public virtual async Task> GetAvsPrivateCloudA
}
///
- /// Get a private cloud
+ /// Get a PrivateCloud
///
/// -
/// Request Path
@@ -84,7 +84,7 @@ public virtual async Task> GetAvsPrivateCloudA
///
/// -
/// Default Api Version
- /// 2023-03-01
+ /// 2023-09-01
///
/// -
/// Resource
diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/MockableAvsSubscriptionResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/MockableAvsSubscriptionResource.cs
index 08c2a8bda6ec..343d2169e16b 100644
--- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/MockableAvsSubscriptionResource.cs
+++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/MockableAvsSubscriptionResource.cs
@@ -47,32 +47,31 @@ private string GetApiVersionOrNull(ResourceType resourceType)
}
///
- /// Return trial status for subscription by region
+ /// Return quota for subscription by region
///